I got this error when starting Seahub:
Starting seahub at port 8000 ...
Traceback (most recent call last):
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/bin/gunicorn", line 8, in <module>
sys.exit(run())
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/base.py", line 231, in run
super().run()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/arbiter.py", line 58, in __init__
self.setup(app)
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/arbiter.py", line 118, in setup
self.app.wsgi()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/gunicorn/util.py", line 359, in import_app
mod = importlib.import_module(module)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/opt/seafile/seafile-server-9.0.0/seahub/seahub/wsgi.py", line 25, in <module>
application = get_wsgi_application()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/django/core/wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/django/apps/config.py", line 301, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/captcha/models .py", line 4, in <module>
from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/opt/seafile/seafile-server-9.0.0/seahub/thirdpart/django/utils/encoding.py)
I’m on Debian 11 - unsupported, I know - and haven’t checked for outdated python libraries yet. Just wanted to leave this as a reference if someone is experiencing the same. Will investigate further.
8.0.7 is running flawlessly on the very same server.