包引入错误from captcha.fields import CaptchaField

访问页面报错:Internal Server Error
查看日志主要是引入包问题:

  > File "/opt/seafile/seafile-server-7.1.3/seahub/seahub/auth/forms.py", line 17, in <module>
from captcha.fields import CaptchaField

ImportError: cannot import name ‘CaptchaField’

但是django-simple-captcha (0.5.12)和captcha两个包我都装了,有谁知道吗?

on CentOS 8

yum install python3 python3-setuptools python3-pip python3-ldap -y

pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy psd-tools \

django-pylibmc django-simple-captcha

你的问题我碰到过,在安装Seafile 7.1.3时,后来运行官方说的这个运行完就可以。

谢谢你的解答,我已重新部署,官方的部署手册指导有点摸不着头脑