[osgeo4w-dev] [osgeo4w] #688: Fiona - DLL load failed while importing ogrext: The specified module could not be found. [AGAIN]

OSGeo4W trac_osgeo4w at osgeo.org
Sat Jul 24 01:10:23 PDT 2021


#688: Fiona - DLL load failed while importing ogrext: The specified module could
not be found. [AGAIN]
---------------------+---------------------------
Reporter:  ondrejsv  |      Owner:  osgeo4w-dev@…
    Type:  defect    |     Status:  new
Priority:  major     |  Component:  Package
 Version:            |   Keywords:
---------------------+---------------------------
 Importing the ''fiona'' package in the new clean OSGeo4W environment
 results in the error

 ''ImportError: DLL load failed while importing ogrext: The specified
 module could not be found.''

 This directly causes inability to use any other Python package that
 depends on the fiona, like geopackage.

 Simple reproduction steps on the clean install of the latest OSGeo4W 2
 with python3-fiona 1.8.17-3:


 {{{
 C:\app\OSGeo4W_2>python
 Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64
 bit (AMD64)] on win32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import fiona
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\app\OSGEO4~1\apps\Python39\lib\site-
 packages\fiona\__init__.py", line 86, in <module>
     from fiona.collection import BytesCollection, Collection
   File "C:\app\OSGEO4~1\apps\Python39\lib\site-
 packages\fiona\collection.py", line 11, in <module>
     from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
 ImportError: DLL load failed while importing ogrext: The specified module
 could not be found
 }}}

 Note that "workaround" with creating an empty ".lib" directory mentioned
 in the #649 does not help. Frankly, if you check the source code file
 _loading.py in the fiona, I don't know how it could help.

 Also the ".lib" folder is not present by default despite what is said in
 the #649 thread.

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/688>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list