Icepyx import error coming from fiona

I’m getting this error when importing icepyx, coming from a fiona import:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jovyan/users_conda_envs/icepyx/lib/python3.9/site-packages/icepyx/", line 1, in <module>
    from icepyx.core.query import Query, GenQuery
  File "/home/jovyan/users_conda_envs/icepyx/lib/python3.9/site-packages/icepyx/core/", line 14, in <module>
    import icepyx.core.APIformatting as apifmt
  File "/home/jovyan/users_conda_envs/icepyx/lib/python3.9/site-packages/icepyx/core/", line 8, in <module>
    import fiona
  File "/home/jovyan/users_conda_envs/icepyx/lib/python3.9/site-packages/fiona/", line 86, in <module>
    from fiona.collection import BytesCollection, Collection
  File "/home/jovyan/users_conda_envs/icepyx/lib/python3.9/site-packages/fiona/", line 11, in <module>
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: cannot open shared object file: No such file or directory

To reproduce the error:

conda create -n icepyx
conda activate icepyx
conda install icepyx

Then, from a python command line:

import icepyx

I did some Google searching to see if there was an easy way to debug this but couldn’t find anything quickly so I wanted to post here, in case others had come across this.

1 Like

I could not reproduce this with a new environment with icepyx v0.6.3, can you upload the output of the following commands? (with the new environment activated)

conda list
conda info