The problem is that the *stand-alone* installation of QGS 3.10 (64 bit at least) doesn't set the PYTHONPATH environment variable, so the python interpreter can't find the module. However, the "*network installation*" of the same QGIS version do set the variable. And that version works without a hitch

If you add a custom variable *PYTHONPATH* with value *C:\PROGRA~1\QGIS3~1.10\apps\Python37;C:\PROGRA~1\QGIS3~1.10\apps\Python37\Scripts *to the stand-alone  version of QGIS 3.10 (and restart the program) the "polygonize (raster to vector)" works in this version too.

So I suspect we might have a packaging problem with with the stand-alone installation

--
Med venlig hilsen / Kind regards

Bo Victor Thomsen


Den 07-01-2020 kl. 10:08 skrev Luigi Pirelli:
do you have python_gdal installed and/or check that gdal_polygonize.py is available... a osgeo4w packaging problem can result in associate gdal_polygonize.py to a interpreter. In this case, just link or copy/remane gdal_polygonize.py as gdal_polygonize

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
* Hire a team: http://www.qcooperative.net
**************************************************************************************************


On Sun, 5 Jan 2020 at 21:43, Lene Fischer <l...@ign.ku.dk <mailto:l...@ign.ku.dk>> wrote:

    Hi
    I´m trying to run Vector to raster (polygonize)

    Suspect it´s the path to GDAL.
     I get this error message

    QGIS version: 3.10.1-A Coruña
    QGIS code revision: ef24c526da
    Qt version: 5.11.2
    GDAL version: 3.0.2
    GEOS version: 3.8.0-CAPI-1.13.1
    PROJ version: Rel. 6.2.1, November 1st, 2019
    Processing algorithm…
    Algorithm 'Polygonize (raster to vector)' starting…
    Input parameters:
    { 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD'
    : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' :
    'TEMPORARY_OUTPUT' }

    GDAL command:
    python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif
    
C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg
    -b 1 -f "GPKG" OUTPUT DN
    GDAL command output:
    '\\a00143.science.domain\dlt265\Documents'

    CMD.EXE was started with the above path as the current directory.

    UNC paths are not supported. Defaulting to Windows directory.

    C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named
    gdal_polygonize

    Execution completed in 0.33 seconds
    Results:
    {'OUTPUT':
    
'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}

    Loading resulting layers
    The following layers were not correctly
    
generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You
    can check the 'Log Messages Panel' in QGIS main window to find
    more information about the execution of the algorithm.

    Regards



    Lene Fischer
    Associate Professor

    University of Copenhagen
    Department of Geoscience and Natural Resource Management
    Forest and Landscape College
    Nødebovej 77a
    3480 Fredensborg
    Denmark


    MOB +45 40115084
    l...@ign.ku.dk <mailto:l...@ign.ku.dk>







    _______________________________________________
    Qgis-user mailing list
    Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
    List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
    Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to