Seahub stopped working (Ubuntu 20)

Hi,
I rebooted my machine today (Ubuntu 20) and seahub won’t start anymore.
Seafiles starts ok.

Here is the output of my ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
/srv/seafile/seahub/thirdpart/requests/init.py:102: RequestsDependencyWarning: urllib3 (1.26.13) 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 "
Traceback (most recent call last):
File “/srv/seafile/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/srv/seafile/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 67, in run
WSGIApplication(”%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/srv/seafile/seahub/thirdpart/gunicorn/app/base.py”, line 231, in run
super().run()
File “/srv/seafile/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/srv/seafile/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/srv/seafile/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/srv/seafile/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/srv/seafile/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in load
return self.load_wsgiapp()
File “/srv/seafile/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File “/srv/seafile/seahub/thirdpart/gunicorn/util.py”, line 359, in import_app
mod = importlib.import_module(module)
File “/usr/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/srv/seafile/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/srv/seafile/seahub/thirdpart/django/core/wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “/srv/seafile/seahub/thirdpart/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/srv/seafile/seahub/thirdpart/django/apps/registry.py”, line 114, in populate
app_config.import_models()
File “/srv/seafile/seahub/thirdpart/django/apps/config.py”, line 301, in import_models
self.models_module = import_module(models_module_name)
File “/usr/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 848, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/srv/seafile/seahub/seahub/avatar/models.py”, line 28, in
from seahub.avatar.util import invalidate_cache, get_avatar_file_storage
File “/srv/seafile/seahub/seahub/avatar/util.py”, line 8, in
from seahub.avatar.settings import AVATAR_DEFAULT_URL, AVATAR_CACHE_TIMEOUT,
File “/srv/seafile/seahub/seahub/avatar/settings.py”, line 25, in
AVATAR_RESIZE_METHOD = getattr(settings, ‘AVATAR_RESIZE_METHOD’, Image.ANTIALIAS)
AttributeError: module ‘PIL.Image’ has no attribute ‘ANTIALIAS’
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

Here is my pip list:

Package Version


acme 1.1.0
aggdraw 1.3.16
asgiref 3.7.2
attrs 23.2.0
Automat 0.8.0
backports.zoneinfo 0.2.1
blinker 1.4
captcha 0.5.0
certbot 0.40.0
certbot-nginx 0.40.0
certifi 2019.11.28
chardet 5.0.0
charset-normalizer 2.0.12
Click 7.0
cloud-init 23.3.3
colorama 0.4.3
command-not-found 0.3
ConfigArgParse 0.13.0
configobj 5.0.6
constantly 15.1.0
cryptography 2.8
dbus-python 1.2.16
distro 1.4.0
distro-info 0.23+ubuntu1.1
Django 4.2.9
django-pylibmc 0.6.1
django-ranged-response 0.2.0
django-simple-captcha 0.6.0
docopt 0.6.2
entrypoints 0.3
future 0.18.2
greenlet 3.0.3
httplib2 0.14.0
hyperlink 19.0.0
idna 2.8
imageio 2.34.0
importlib-metadata 1.5.0
incremental 16.10.1
Jinja2 2.10.1
josepy 1.2.0
jsonpatch 1.22
jsonpointer 2.0
jsonschema 3.2.0
keyring 18.0.1
language-selector 0.1
launchpadlib 1.10.13
lazr.restfulclient 0.14.2
lazr.uri 1.0.3
lazy_loader 0.3
MarkupSafe 1.1.0
mock 3.0.5
more-itertools 4.2.0
mysqlclient 1.4.4
netifaces 0.10.4
networkx 3.1
numpy 1.24.4
oauthlib 3.1.0
olefile 0.46
packaging 24.0
parsedatetime 2.4
pbr 5.4.5
pexpect 4.6.0
pillow 10.2.0
pip 24.0
psd-tools 1.9.31
pyasn1 0.4.2
pyasn1-modules 0.2.1
PyGObject 3.36.0
PyHamcrest 1.9.0
PyICU 2.4.2
PyJWT 1.7.1
pylibmc 1.6.3
pymacaroons 0.13.0
PyNaCl 1.3.0
pyOpenSSL 19.0.0
pyparsing 2.4.6
pyRFC3339 1.1
pyrsistent 0.15.5
pyserial 3.4
python-apt 2.0.1+ubuntu0.20.4.1
python-debian 0.1.36+ubuntu1.1
python-ldap 3.2.0
python-memcached 1.58
python3-ldap 0.9.8.4
pytz 2019.3
PyWavelets 1.4.1
PyYAML 5.3.1
requests 2.31.0
requests-toolbelt 0.8.0
requests-unixsocket 0.2.0
scikit-image 0.21.0
scipy 1.10.1
SecretStorage 2.3.1
service-identity 18.1.0
setuptools 45.2.0
simplejson 3.16.0
six 1.14.0
sos 4.5.6
SQLAlchemy 2.0.25
sqlparse 0.4.4
ssh-import-id 5.10
systemd-python 234
tifffile 2023.7.10
Twisted 18.9.0
typing_extensions 4.9.0
ubuntu-advantage-tools 8001
ufw 0.36
unattended-upgrades 0.1
urllib3 1.26.13
wadllib 1.3.3
wheel 0.34.2
zipp 1.0.0
zope.component 4.3.0
zope.event 4.4
zope.hookable 5.0.0
zope.interface 4.7.1

I also tried starting on another random port.

Don’t understand what is wrong.

Thank you!