tracker
tracker copied to clipboard
EspoCRM & others: inithook will stop working once the deprecated crypt module is removed in Python 3.13
On booting EspoCRM, the following warning is displayed in the system logs:
[444092.044400] inithooks[2568]: /usr/lib/inithooks/bin/espocrm.py:13: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
The current version of Python installed in the appliance as of TKL v18.0 is 3.11.2.
Apparently new minor versions of Python are released annually. Python 3.11 was released on 24.10.2022 and 3.12 was released on 02.10.2023. So, we have time until Oct 2024 (+ the time it takes for the new Python version to get to Debian repos, but I would not rely on that) to fix this.
The simplest fix is replacing this use of crypt
with a more modern alternative like bcrypt
or calling the provided library function to hash the password and set it via PHP instead.
More detail about the crypt
deprecation here.
Thanks man. FWIW 3.12 is making it's way through Debian testing
now, but I'd imagine that we'll be up to 3.13 by the time that Trixie is stable (super vague ETA of ~mid next year (2025).
I did a quick grep through the app build code and added a few more that are affected. Hopefully that should be it, although there is a slim chance I've missed one.