I am getting this error on running a subprocess.check_call that runs an ogr2ogr command.
I have put on error trapping but can't see the error details and the cmd window closes without me being able to see the problem.
How can I trace the problem?
The screen grab shows the working code (when typed in), the python script and the output of python shell.
One issue maybe the ' in the python generated code. The command is built based on https://gis.stackexchange.com/questions/154004/execute-ogr2ogr-from-python/246667 where each option is wrapped in "[OPTION]",
Figured it out with a colleague...
Needed to
Load this in a batch shell that had the paths to ogr
Trust that subprocess takes care of the extra "EPSG:23555" when required and not do "\"EPS...\"" to get the code to be the same as what runs in OSGEO4W Shell.
Running the .py file from powershell rather than IDLE/Pyscripter