[osgeo4w-dev] GDAL tools that are Python scripts still need Python2 in OSGeo4W

Jürgen E. Fischer jef at norbit.de
Wed Nov 20 17:39:46 PST 2019


Hi Pedro,

On Wed, 20. Nov 2019 at 16:19:20 +0000, Pedro Venâncio wrote:
> I've a clean OSGeo4W install and I was trying to use some GDAL tools like
> gdal2xyz or rgb2pct, but I was getting an error of missing module in
> Python3:
> 
> python3 -m rgb2pct -n 2 -of GTiff D:\orto_teste.tif D:/orto_teste_pct.tif
> GDAL command output:
> C:\OSGEO4~1\bin\python3.exe: No module named rgb2pct

Did you run call py3_env.bat upfront?


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20191121/caaf17d1/attachment.sig>


More information about the osgeo4w-dev mailing list