-
-
Notifications
You must be signed in to change notification settings - Fork 426
[Bug] locale: codecs.open() deprecated with Python 3.14 #7062
Copy link
Copy link
Closed
Labels
backport to 8.5PR needs to be backported to release branch 8.5PR needs to be backported to release branch 8.5bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Building with Python 3.14, the following warnings are issued:
[3566/3567] cd /dev/grass/locale && /opt/local/bin/cmake -E env PATH=/dev/grassbuild_ninja/output/lib/grass86/bin:/dev/grassbuild_ninja/output/lib/grass86/scripts:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql17/bin:/opt/local/lib/proj9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Applications/Little\ Snitch.app/Contents/Components:/dev/scripts PYTHONPATH=/dev/grassbuild_ninja/output/lib/grass86/etc/python:/dev/grassbuild_ninja/output/lib/grass86/gui/wxpython: LD_LIBRARY_PATH=/dev/grassbuild_ninja/output/lib/grass86/lib: GISBASE=/dev/grassbuild_ninja/output/lib/grass86 GISRC=/dev/grassbuild_ninja/output/lib/grass86/demolocation/.grassrc86 LC_ALL=C LANG=C ARCH=x86_64 ARCH_DISTDIR=/dev/grassbuild_ninja/output/lib/grass86 LANGUAGE=C MODULE_TOPDIR=/dev/grass HTMLDIR=/dev/grassbuild_ninja/output/lib/grass86/docs/html VERSION_NUMBER="8.6.0dev" VERSION_DATE="2026" /opt/local/bin/python3 /dev/grass/locale/grass_po_stats.py
/dev/grass/locale/grass_po_stats.py:78: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
with codecs.open(fil, encoding="utf-8", errors="replace", mode="r") as f:
/dev/grass/locale/grass_po_stats.py:78: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
with codecs.open(fil, encoding="utf-8", errors="replace", mode="r") as f:
...
See: codecs.open()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
backport to 8.5PR needs to be backported to release branch 8.5PR needs to be backported to release branch 8.5bugSomething isn't workingSomething isn't working