+2 votes
82 views
in Cloud by

When I run the command below I get the error

seafile-pro-server-8.0.7# ./seahub.sh python-env python
seahub/manage.py check_user_quota

LC_ALL is not set in ENV, set to en_US.UTF-8
Traceback (most recent call last):
   File "seahub/manage.py", line 8, in <module>
     from django.core.management import execute_from_command_line
   File
"/opt/seafile/seafile-pro-server-8.0.7/seahub/thirdpart/django/__init__.py",
line 1, in <module>
     from django.utils.version import get_version
   File
"/opt/seafile/seafile-pro-server-8.0.7/seahub/thirdpart/django/utils/version.py",
line 71, in <module>
     @functools.lru_cache()
AttributeError: 'module' object has no attribute 'lru_cache'
Done.
++++++

1 Answer

+1 vote
by
You should run Seafile 8.0 with Python3.6+. At the same time, you need to check whether Django-2.2.14.dist-info exists in the seafile-server-latest/seahub/thirdpart directory, Django2.2.14 is already included in the Seafile installation package.

From the 7.1.0 version, Seafile will depend on Python 3 and is not compatible with Python 2, and Seafile 8.0 must be run using Django 2.2.x.
...