Timeline for GDAL Python bindings not picking up OGR PostgreSQL driver
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 19, 2011 at 12:32 | comment | added | fod | thanks so much for your help - that did trick (For the record I got ogr_PG.dll from one of the -sdk archives at vbkto.dyndns.org/sdk --- the regular packages don't have it). | |
Aug 19, 2011 at 12:28 | vote | accept | fod | ||
Aug 18, 2011 at 17:02 | comment | added | geographika | @fod - grab a MapServer package and take the ogr_pg.dll file from it. All seems to work with this in place. | |
Aug 18, 2011 at 17:01 | history | edited | geographika | CC BY-SA 3.0 |
added 441 characters in body
|
Aug 18, 2011 at 16:46 | comment | added | fod | Ok I have a libpq.dll in both my GDAL folder and in C:\Python27\Lib\site-packages\osgeo --- but here's something strange I just discovered: If I remove (i.e. uninstall) GDAL but leave the Python bindings in place then I can still get all the drivers I was already getting from the Python shell. So it looks like Python isn't even talking to my system GDAL and the bindings installer is just installing soem of its drivers itself. Also I have no ogr_PG.dll anywhere... | |
Aug 18, 2011 at 16:30 | comment | added | geographika | @fod also try moving ogr_PG.dll to your PATH | |
Aug 18, 2011 at 16:29 | history | edited | geographika | CC BY-SA 3.0 |
added 89 characters in body
|
Aug 18, 2011 at 16:18 | comment | added | geographika | @fod - it should be in the GDAL folder. Try a Windows search. If it is not in a folder on your path then add this folder to the path also. | |
Aug 18, 2011 at 16:16 | history | edited | geographika | CC BY-SA 3.0 |
added 370 characters in body
|
Aug 18, 2011 at 16:16 | comment | added | fod | Unfortunately this is a development server that I've been grudgingly allowed to use by my employers to develop a proof-of-concept application. It has no internet connectivity and I have to jump through a lot of hoops every time I want something added to my stack, so its not easy for me to get, for instance, dependency walker installed. I think you might be onto something with the PostgreSQL version but note that the driver is there and works fine when accessed directly, and only fails to appear when attempting access via the Python bindings. | |
Aug 18, 2011 at 15:55 | history | edited | geographika | CC BY-SA 3.0 |
added 481 characters in body
|
Aug 18, 2011 at 15:37 | comment | added | fod | Thanks for the response but no, I'd already tried rebooting. I did try your suggestion re defining the path directly from Python too but no success I'm afraid. | |
Aug 18, 2011 at 15:27 | history | answered | geographika | CC BY-SA 3.0 |