Ubuntu20.04安装Seafile10.0.1,启动seahub失败

Ubuntu20.04安装Seafile10.0.1,最后一步启动seahub失败。

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 67, in run
WSGIApplication(“%(prog)s [OPTIONS] [APP_MODULE]”).run()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/base.py”, line 231, in run
super().run()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in load
return self.load_wsgiapp()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File “/opt/seafile/seafile-server-10.0.1/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 “/opt/seafile/seafile-server-10.0.1/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/django/core/wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/opt/seafile/seafile-server-10.0.1/seahub/thirdpart/django/apps/registry.py”, line 114, in populate
app_config.import_models()
File “/opt/seafile/seafile-server-10.0.1/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 “/opt/seafile/seafile-server-10.0.1/seahub/seahub/avatar/models.py”, line 28, in
from seahub.avatar.util import invalidate_cache, get_avatar_file_storage
File “/opt/seafile/seafile-server-10.0.1/seahub/seahub/avatar/util.py”, line 8, in
from seahub.avatar.settings import AVATAR_DEFAULT_URL, AVATAR_CACHE_TIMEOUT,
File “/opt/seafile/seafile-server-10.0.1/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’

失败之后,看了下错误应该是类错了。于是我就改了类把ANTIALIAS改成了LANCZOS,再重新尝试,没有报错提醒了,但是也没提醒运行成功。

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
[2024-03-21 09:39:23 +0800] [42412] [INFO] Starting gunicorn 20.1.0
[2024-03-21 09:39:23 +0800] [42412] [INFO] Listening at: http://127.0.0.1:8000 (42412)
[2024-03-21 09:39:23 +0800] [42412] [INFO] Using worker: sync
[2024-03-21 09:39:23 +0800] [42415] [INFO] Booting worker with pid: 42415
[2024-03-21 09:39:23 +0800] [42416] [INFO] Booting worker with pid: 42416
[2024-03-21 09:39:23 +0800] [42417] [INFO] Booting worker with pid: 42417
[2024-03-21 09:39:23 +0800] [42418] [INFO] Booting worker with pid: 42418
[2024-03-21 09:39:23 +0800] [42419] [INFO] Booting worker with pid: 42419

就没法继续了,是什么原因。有大佬帮看下吗

建议您使用docker 部署,这样不会有环境依赖的问题