[gdal-dev] Compyle gdal >=3.7: lib2to3 error

Even Rouault even.rouault at spatialys.com
Mon Feb 5 15:09:28 PST 2024


Andrea,

Cf related https://github.com/OSGeo/gdal/pull/9174 that has been 
backported in 3.8 branch (not in release yet) and which will completely 
remove the use of lib2to3 in preparation of python 3.13 which will no 
longer provide it.

But you should probably be able to solve your issue by just installing 
the appropriate package which conveys lib2to3 since it is still part of 
python 3.9. This is dependent of your distro. On Debian, it is called 
"python3-lib2to3"

Een

Le 06/02/2024 à 00:00, andy via gdal-dev a écrit :
> Hi,
> I compile gdal 3.7 in this way:
>
> mkdir -p build
> cd build
> cmake -D GDAL_USE_GEOS=ON -D OGR_ENABLE_DRIVER_PARQUET:BOOL=OFF -D 
> OGR_ENABLE_DRIVER_ARROW:BOOL=OFF ..
> cmake --build .
> sudo cmake --build . --target install
>
> When I run "cmake --build ." I have this error:
>
> Deprecated command line option: -py3. Ignored, this option is no 
> longer supported.
> /usr/bin/python3.9: No module named lib2to3
>
> How to solve this problem?
>
> Thank you
>
> -- 
> ___________________
>
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___________________
>
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240206/87db0d2a/attachment.htm>


More information about the gdal-dev mailing list