[mapserver-users] asking help about importing gdal librarie in apache python
CASTRO, Emmanuel
emmanuel.castro at capgemini.com
Mon Sep 27 07:13:38 PDT 2021
I seldom use MS4W. On Windows I’d rather use Conda Python distribution which comes with GDAL binding for Python (cf. https://gdal.org/download.html#windows).
However four you MS4W installation, you can test this, from the MS4W doc : https://www.ms4w.com/README_INSTALL.html#gdal-bindings
I think that you are missing an environment variable; maybe you should put the GDAL DLL explicitly in the PATH.
Good luck
Emmanuel
De : MapServer-users <mapserver-users-bounces at lists.osgeo.org> De la part de Boubacar Bah
Envoyé : samedi 25 septembre 2021 17:50
À : mapserver-users at lists.osgeo.org
Objet : [mapserver-users] asking help about importing gdal librarie in apache python
This mail has been sent from an external source
hello everyone ; i work with mapserver apache ; now i want to work with gdal library if l try to import the gdal this in python they send me an error this is the error message below:
>>> from osgeo import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\ms4w\Python\lib\site-packages\osgeo\__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "c:\ms4w\Python\lib\site-packages\osgeo\__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "c:\ms4w\Python\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "c:\ms4w\Python\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed while importing _gdal: Le module spécifié est introuvable.
if someone can fix this l will please.
thank advance.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20210927/51ee18de/attachment.htm>
More information about the MapServer-users
mailing list