RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.1.0)

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.2.4
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Since an update of my debian (i started the upgrade to Debian 12 until i’ve seen that v12 is not supported yet), I have issues in the Yunohost installation about wrong version of urllib3 or chardet

python3 -c 'import chardet; print(chardet)'
<module 'chardet' from '/usr/lib/python3/dist-packages/chardet/'>

pip3 list | grep chardet
chardet             5.1.0
python3 -c 'import urllib3; print(urllib3)'
<module 'urllib3' from '/usr/lib/python3/dist-packages/urllib3/'>

pip3 list | grep urllib3
urllib3             1.26.12

The issue is a problem because it leads to a crash of the update process in the front of yunohost and i could not add any new application from the catalog or from the cli

sudo yunohost app upgrade ttrss
/usr/lib/python3/dist-packages/requests/ RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.1.0) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Info: Now upgrading ttrss...
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
  File "/usr/lib/python3/dist-packages/yunohost/", line 41, in cli
    ret = moulinette.cli(
  File "/usr/lib/python3/dist-packages/moulinette/", line 110, in cli
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/", line 503, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python3/dist-packages/moulinette/", line 580, in process
    return func(**arguments)
  File "/usr/lib/python3/dist-packages/yunohost/", line 614, in app_upgrade
    app_dict = app_info(app_instance_name, full=True)
  File "/usr/lib/python3/dist-packages/yunohost/", line 159, in app_info
    ret["upgradable"] = _app_upgradable({**ret, "from_catalog": from_catalog})
  File "/usr/lib/python3/dist-packages/yunohost/", line 258, in _app_upgradable
    installed_version = version.parse(app_infos.get("version", "0~ynh0"))
  File "/usr/lib/python3/dist-packages/packaging/", line 52, in parse
    return Version(version)
  File "/usr/lib/python3/dist-packages/packaging/", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '20230630~ynh1'

Any idea how to come back to a stable situation to let the system update or install apps ?

Solved by downgrading chardet package from 5.1.0 to 4.0.0


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.