简体   繁体   English

Seahub 无法通过 ModuleNotFoundError 运行初始启动

[英]Seahub fails to run initial start with ModuleNotFoundError

I'm currently trying to install seafile 7.1.4 on a Raspberry Pi 4 following the official guide ( https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md ).我目前正在尝试按照官方指南( https://download.seafile.com/published/seafile-manual/deploy/using_mysql.md )在 Raspberry Pi 4 上安装 seafile 7.1.4。 The setup went smoothly, but when I try to start the seahub (./seahub start) for the first time I get the following error:设置进行得很顺利,但是当我第一次尝试启动 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'

I've been on google for the past two hours, but can't find a solution to this problem.过去两个小时我一直在谷歌上,但找不到解决这个问题的方法。 What am I doing wrong?我究竟做错了什么?

I ran into the same issue.我遇到了同样的问题。 There's a bug in the 7.1.4 package. 7.1.4 package 中有一个错误。 Seafile uses some local site packages. Seafile 使用一些本地站点包。 They (apparently) used to be under ${INSTALLPATH}/seafile/lib/python 3.6 /site-packages, now the are under ${INSTALLPATH}/seafile/lib/python 3.7 /site-packages它们(显然)曾经位于 ${INSTALLPATH}/seafile/lib/python 3.6 /site-packages 下,现在位于 ${INSTALLPATH}/seafile/lib/python 3.7 /site-packages 下

To fix: open seahub.sh in the editor of your choice.修复:在您选择的编辑器中打开 seahub.sh。
find the line that says:找到写着:

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

change it to read:将其更改为:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM