[osgeo4w-dev] [osgeo4w] #656: Missing DLL when importing Fiona, Geopandas or rasterio within QGIS

OSGeo4W trac_osgeo4w at osgeo.org
Sun Jan 10 19:27:39 PST 2021


#656: Missing DLL when importing Fiona, Geopandas or rasterio within QGIS
----------------------+-------------------------------------
Reporter:  cratcliff  |      Owner:  osgeo4w-dev@…
    Type:  defect     |     Status:  new
Priority:  major      |  Component:  Package
 Version:             |   Keywords:  fiona geopanda rasterio
----------------------+-------------------------------------
 Hi,

 Since the release of **QGIS 3.16.2-Hannover** or **3.10.13-A Coruña** on
 Windows 10 I have been getting errors (see below) when trying to import
 fiona, geopandas and rasterio.

 I have installed fiona, geopandas and rasterio using the OSGeo4w.

 How do I go about fixing this issue for this release while not breaking
 older releases?

 Is there a way to configure these packages to work with QGIS without
 having to request a rebuild/fix every time a new version of QGIS is
 released?

 Thanks in Advance.
 Christina

 {{{
 import geopandas
 Traceback (most recent call last):
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\code.py", line 90, in
 runcode
     exec(code, self.locals)
   File "<input>", line 1, in <module>
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-
 packages\geopandas\__init__.py", line 5, in <module>
     from geopandas.io.file import read_file  # noqa
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-
 packages\geopandas\io\file.py", line 6, in <module>
     import fiona
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-
 packages\fiona\__init__.py", line 84, in <module>
     from fiona.collection import BytesCollection, Collection
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-
 packages\fiona\collection.py", line 9, in <module>
     from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
 ImportError: DLL load failed: The specified module could not be found.
 }}}

 {{{
 import rasterio
 Traceback (most recent call last):
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\code.py", line 90, in
 runcode
     exec(code, self.locals)
   File "<input>", line 1, in <module>
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
   File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-
 packages\rasterio\__init__.py", line 22, in <module>
     from rasterio._base import gdal_version
   File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line
 792, in _import
     mod = _builtin_import(name, globals, locals, fromlist, level)
 ImportError: DLL load failed: The specified module could not be found.
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/656>
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