Error after upgrade Seafile PRO 9.0.13 RequestsDependencyWarning

Hi,
After a upgrade to latest version of Seafile Pro 9.0.13 i have a error in seahub_email_sender.

@seafile /opt/seafile/logs - [] # tail -f seahub_email_sender.log.1
/opt/seafile/seafile-pro-server-9.0.13/seahub/thirdpart/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn’t match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn’t match a supported "
/opt/seafile/seafile-pro-server-9.0.13/seahub/thirdpart/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn’t match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn’t match a supported "
/opt/seafile/seafile-pro-server-9.0.13/seahub/thirdpart/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn’t match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn’t match a supported "
/opt/seafile/seafile-pro-server-9.0.13/seahub/thirdpart/requests/init.py:102: =

Have you a solution ?

Thanks

1 Like

Same issue here

Same issue here
https://forum.seafile.com/t/urllib3-and-chardet-versions/17355

I have the same issue with seafile pro 9.0.12.
Seafile is running, but it generates lots of useless logs.

I looked into seahub/thirdpart/requests/__init__.py:

There is a function check_compatibility which checks for:
# urllib3 >= 1.21.1, <= 1.26
# chardet_version >= 3.0.2, < 5.0.0
# charset_normalizer >= 2.0.0 < 3.0.0

$USER@$HOST:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
$USER@$HOST:~$ pip3 list -v | egrep ‘urllib|chardet|charset_normalizer’
chardet 3.0.4 /usr/lib/python3/dist-packages
urllib3 1.25.8 /usr/lib/python3/dist-packages

So this works for me. You might try:
pip3 install urllib3==1.25.* chardet==3.0.*

I was able to fix this by running this on Ubuntu 22.04 LTS

python3 -m pip install --force-reinstall --upgrade --target /opt/seafile/seafile-pro-server-9.0.13/seahub/thirdpart cffi==1.14.6