[MS4W-Users] error with command line tools after MS4W installation

michael michael.kleih at neplan.ch
Thu Feb 9 05:16:30 EST 2017


Dear MS4W users,

I just downloaded MS4W.
I would like to use the tool gdal2tiles.py .

After having installed MS4W and ActiveState-Perl 3.5 I did the following 
in a command shell:

- cd C:\ms4w

- sentenv.bat

- gdal_merge.py

The result is below. Have I done wrong something? Do I need to set other 
environment variables?

Thanks a lot!

Michael

Error message:

Traceback (most recent call last):
   File "C:\ms4w\gdalbindings\python\gdal\gdal_merge.py", line 37, in 
<module>
     from osgeo import gdal
   File "C:\ms4w\gdalbindings\python\gdal\osgeo\__init__.py", line 21, 
in <module>
     _gdal = swig_import_helper()
   File "C:\ms4w\gdalbindings\python\gdal\osgeo\__init__.py", line 17, 
in swig_import_helper
     _mod = imp.load_module('_gdal', fp, pathname, description)
   File "C:\Python35\lib\imp.py", line 242, in load_module
     return load_dynamic(name, filename, file)
   File "C:\Python35\lib\imp.py", line 342, in load_dynamic
     return _load(spec)
ImportError: DLL load failed: %1 is not a valid Win32 application.






More information about the MS4W-Users mailing list