New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Python ver. with GDAL Merge tool in QGIS 3 #26302
Comments
Author Name: Joe Krienert (Joe Krienert) Error output:
|
Author Name: Giovanni Manghi (@gioman) So the error does not seems related to the python version, right?
|
Author Name: Joe Krienert (Joe Krienert) Should GDAL be using Python version 3.6 in QGIS 3? If so, then the Python version might be the problem. If not, then there might be something astray in the basic OSGeo4W64 installer? |
Author Name: Giovanni Manghi (@gioman) Joe Krienert wrote:
yes, qgis 3 uses python 3. |
Author Name: Joe Krienert (Joe Krienert) When opening the Python terminal plugin in QGIS 3 desktop and import/calling print (sys.version), the ver. stated is Python 3. |
Author Name: Joe Krienert (Joe Krienert)
Does this code snippet from the GDAL merge tool log suggest a conflict between the library (Python36) and active Python version (2.7.5)? Seems anomolous that the Python plugin terminal tells Python 3 as the active version, but the processing tool call to GDAL states ver 2.7.5. Does GDAL not support Python 3? |
Author Name: Joe Krienert (Joe Krienert) This test suggest that GDAL is switching the active python version from v. 3.6 to 2.7. From a freshly opened (as admin) OSGeo4W shell... Check the current ver. of Python in use:
Oddly set to ver. 2.7.5, update to ver. 3 environment:
Verify environment ver. changed:
Attempt GDAL merge:
Double check Python environment ver:
Why would calling GDAL merge reset the python environment ver? |
Author Name: Jürgen Fischer (@jef-n)
python --version ... to the gdal_merge.bat indicates it is trying to use 2.7.5. to Used OSGeo4W64 installer for QGIS 3 and friends. Made sure GDAL libs were included. python --version ... to the gdal_merge.bat indicates it is trying to use 2.7.5. |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Nyall Dawson (@nyalldawson) This was fixed upstream in osgeo4w
|
Author Name: Joe Krienert (Joe Krienert)
Original Redmine Issue: 18413
Affected QGIS version: 3.0.0
Redmine category:processing/gdal
Assignee: Joe Krienert
Used OSGeo4W64 installer for QGIS 3 and friends. Made sure GDAL libs were included.
When running GDAL Merge tool an error is raised similar to #17298
Adding...
... to the gdal_merge.bat indicates it is trying to use 2.7.5.
Related issue(s): #25196 (duplicates)
Redmine related issue(s): 17298
The text was updated successfully, but these errors were encountered: