0

我目前正在尝试按照官方指南(https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md)在 Raspberry Pi 4 上安装 seafile 7.1.4。设置进行得很顺利,但是当我第一次尝试启动 seahub (./seahub start) 时,出现以下错误:

Traceback (most recent call last):
  File "check_init_admin.py", line 351, in <module>
    rpc = RPC()
  File "check_init_admin.py", line 284, in __init__
    import ccnet
ModuleNotFoundError: No module named 'ccnet'

过去两个小时我一直在谷歌上,但找不到解决这个问题的方法。我究竟做错了什么?

4

1 回答 1

1

我遇到了同样的问题。7.1.4 包中有一个错误。Seafile 使用一些本地站点包。它们(显然)曾经位于 ${INSTALLPATH}/seafile/lib/python 3.6 /site-packages 下,现在位于 ${INSTALLPATH}/seafile/lib/python 3.7 /site-packages下

修复:在您选择的编辑器中打开 seahub.sh。
找到写着:

export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.6/site-packages:${INSTALLPATH}/seafile/lib64/python3.6/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH

将其更改为:

export PYTHONPATH=${INSTALLPATH}/seafile/lib/python3.7/site-packages:${INSTALLPATH}/seafile/lib64/python3.7/site-packages:${INSTALLPATH}/seahub:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH

于 2020-06-22T04:25:35.080 回答