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

Jeff McKenna jmckenna at gatewaygeomatics.com
Thu Feb 9 11:01:57 EST 2017


Another note is that if you are testing the MS4W 4.0 alpha, be sure to 
install the win32 version of Python (which, could have something to do 
with your original error I believe).  Anyway, lots of options for you to 
try.  Thanks for using MS4W to share your spatial information! :)

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2017-02-09 6:16 AM, michael via MS4W-Users wrote:
> 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