7.1.5清理sessions报错


#1

运行./seahub.sh python-env seahub/manage.py clearsessions后报下面的错,直接启动python然后import configparser是没问题的。

Traceback (most recent call last):
File “seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/management/init.py”, line 308, in execute
settings.INSTALLED_APPS
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/conf/init.py”, line 56, in getattr
self._setup(name)
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/conf/init.py”, line 41, in _setup
self._wrapped = Settings(settings_module)
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/conf/init.py”, line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/seahub/init.py”, line 6, in
from .handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb,
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/seahub/handlers.py”, line 4, in
from . import settings
File “/home/spark/seafile/seafile-pro-server-7.1.5/seahub/seahub/settings.py”, line 9, in
from seaserv import FILE_SERVER_ROOT, FILE_SERVER_PORT, SERVICE_URL
File “/home/spark/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/seaserv/init.py”, line 1, in
from . import service
File “/home/spark/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/seaserv/service.py”, line 6, in
import configparser
ImportError: No module named configparser


#2

发现实际现在不用./seahub.sh python-env seahub/manage.py clearsessions这样写,直接写./seahub.sh clearsessions就可以了,文档里没的更新,程序的usage也没写,不过在读入参数的case中写了。