Skip to content Skip to sidebar Skip to footer

Error: 'ogr2ogr' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File When Running Ogr2ogr In Python Script

I get an error when trying to run ogr2ogr thru subprocess but I am able to run it using just the windows command prompt. The script will be part of a series of processes that start

Solution 1:

REINSTALLING the python bindings resolved my issue. I don't see GDAL on the paths below but its working now. Is it supposed to be there so since its not, I might probably have another round of GDAL head scratching in the future?

::::::::::::::::::::::::::::::::::::::: THIS is what I currently have when I type in sys.path on python:

Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\User>python Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import sys sys.path ['', 'C:\windows\SYSTEM32\python27.zip', 'C:\Python27\DLLs', 'C:\Python27\lib', 'C:\Python27 \lib\plat-win', 'C:\Python27\lib\lib-tk', 'C:\Python27', 'C:\Python27\lib\site-packages', ' C:\Python27\lib\site-packages\wx-3.0-msw']

Post a Comment for "Error: 'ogr2ogr' Is Not Recognized As An Internal Or External Command, Operable Program Or Batch File When Running Ogr2ogr In Python Script"