-
Notifications
You must be signed in to change notification settings - Fork 11
Errors and Solutions
lnksz edited this page Sep 6, 2017
·
1 revision
Surfacing problems and their possible solutions.
Encountered as
from fiona import compat
ImportError: cannot import name 'compat'
or
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The specified module could not be found.
or
from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: libicui18n.so.56: cannot open shared object file: No such file or directory
Create a clean, new conda env for rivus. This can resolve multiple channel issues.
If that did not help install geopandas with pip (and do not install fiona with conda). (See the envirnment.yml in repo-root)
See example
Encountered as:
File "fiona/ogrext.pyx", line 394, in fiona.ogrext.Session.start (fiona/ogrext2.c:8430)
File "fiona/_err.pyx", line 183, in fiona._err.GDALErrCtxManager.__exit__ (fiona/_err.c:1809)
File "fiona/_err.pyx", line 58, in fiona._err.CPLE_BaseError.__init__ (fiona/_err.c:1242)
TypeError: __init__() takes exactly 4 positional arguments (2 given)
Solution: check the contents of your shapefile.cpg! It is highly probable that it should state "UTF-8" correctly and nothing else.