-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Some GDAL Functions not working via QGIS interface 3.4.14 Win10 #33386
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
Comments
Same issue reported on the QGIS-User ML from another user and another one on StackExchange: |
It seems the PYTHONPATH environmental variable is not properly set. |
There is something wrong with the most recent installers, QGIS-OSGeo4W-3.4.13-2-Setup-x86_64.exe 11-Nov-2019 16:37 455M while QGIS-OSGeo4W-3.4.13-3-Setup-x86_64.exe 05-Dec-2019 22:06 452M @jef-n any idea? |
PS no issues on the latest 3.10 |
I have just installed QGIS ver 3.10.1 but it spits out the same error when I try and run gdal_merge from the GUI. I have set the PYTHONPATH as The gdal_merge.py (among other gdal modules) are in this folder though ( I wonder whether it's because I should have installed it via OSGEO4W and point QGIS to those folders instead of the native QGIS ones |
This is strange... both the user on the QGIS-User ML and the user on StackExchange have solved the problem [1][2] properly setting the PYTHONPATH environmental variable. |
I got the same error, and like a virus, it happened on all the computers in my office. I even installed 3.4 on a brand new computer and got the same error. I clearly remember that it worked well last week. It took me a whole day. |
Fixed in OSGeo4W |
The problem was solved by following this procedure:
|
Hi Giovanni,
In my case I have tried to follow those instructions, however I have
noticed that it wouldn't prepend the string unless the semi-column was put
at the end (separator), which ultimately worked for me.
Cheers
Davide
…On Fri, 27 Dec 2019 at 9:04 am, Giovanni ***@***.***> wrote:
The problem was solved by following this procedure:
- search, in the QGIS installation directory, for the folder where the
gdal_merge.py, gdal_polygonize.py, etc. files are present. In your case it
could be: G: \ QGIS3 ~ 1.10 \ apps \ Python37 \ Scripts
- in the QGIS window from the Settings / Options ... / System menu you
must insert a new row in the "Environment" box, with the value "Overwrite"
(or "Prepend") in the first column ("Apply"), the value " PYTHONPATH "in
the second column (" Variable "), and in the third column (" Value ") the
path of the above folder.
[image: Annotazione 2019-12-26 213901]
<https://user-images.githubusercontent.com/22433856/71491942-02497380-2834-11ea-90b9-4268ee1a3517.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33386?email_source=notifications&email_token=AKOFQ56HGVZNGHS7NZDWUATQ2US6BA5CNFSM4J2N5UNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHWGKFQ#issuecomment-569140502>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKOFQ52F7GJRST72PHJ47ETQ2US6BANCNFSM4J2N5UNA>
.
|
Now, after the latest fix, it should be sufficient to update python3-core to python3-core-3.7.0-4 via OSGeo4W setup to solve the issue. |
To avoid to set variables in QGIS or in the OS, you should better set the missing variables in the The main advantage is to be able to patch all computers with the same issue by copying the file instead of setting the fix manually for each one. See selected part in the attached image below (PS: do not copy the other lines as they may be specific to my QGIS version). You may need to change |
Hi, certain GDAL tools are not working via QGIS Desktop 3.4.14 on Windows 10
For instance, GDAL Polygonise and GDAL Merge do not work
I receive the errors:
It is effecting all PCs in the office running this version and is reproducible on all raster datasets we have attempted to run.
Tool fails instantly
Believe it is something to do with the way QGIS is trying to call/run the command. Here's the initial part of the console call QGIS creates:
Other GDAL tools, susch as GDAL Raster Calculator, work with no issues. Here is and example of the console call for calc:
QGIS and OS versions
QGIS version 3.4.14-Madeira
QGIS code revision
QGIS code revision
Compiled against Qt 5.11.2
Running against Qt 5.11.2
Compiled against GDAL/OGR 2.4.3
Running against GDAL/OGR 2.4.3
Compiled against GEOS 3.8.0-CAPI-1.13.1
Running against GEOS 3.8.0-CAPI-1.13.1
PostgreSQL Client Version 11.5
SpatiaLite Version 4.3.0
QWT Version 6.1.3
QScintilla2 Version 2.10.8
Compiled against PROJ 5.2.0
Running against PROJ Rel. 5.2.0, September 15th, 2018
Windows 10 Pro
The text was updated successfully, but these errors were encountered: