[postgis-users] Running PostGIS 2.0 on 64 bit machine

Joan wamaithajoan at gmail.com
Tue Jan 24 05:19:18 PST 2012


Hi,

I have been trying to set up PostGIS on a 64 bit machine running windows 7.
The installation was successful but when I run the raster2pgsql script I
get the following error.

Traceback (most recent call last):
  File "C:\Postgresql\bin\raster2pgsql.py", line 34, in <module>
    from osgeo import gdal
  File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 21, in
<module>
    _gdal = swig_import_helper()
  File "C:\Python27\lib\site-packages\osgeo\__init__.py", line 17, in
swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: DLL load failed: The operating system cannot run %1.

I have gdal in C:\Program Files (x86)\GDAL and C:\Program Files
(x86)\GDAL\gdal-data in the environmental variables


Any ideas??

Joan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120124/b69a0136/attachment.html>


More information about the postgis-users mailing list