【ARM64-Seafile v6.3.4】编译成功,无法运行。


#1

我手里有一个64位的arm开发板,打算编译一个Seafile用。
按照官网及论坛【国际】给出的教程帖子,跨过无数大坑,终于编译成功【v6.3.4-server版本,不是pro】,结果却不能运行。
教程如下:


https://manual.seafile.com/build_seafile/rpi.html

问题描述:
1、./seafile.sh start ; ./seahub.sh start //服务启动成功,无任何报错。
2、浏览器访问网站,显示“Internal Server Error”。
3、跟踪日志:tail -f /opt/seafile/logs/seahub.log

2019-01-02 08:49:09,580 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/core/handlers/base.py”, line 244, in _legacy_get_response
response = middleware_method(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/middleware/locale.py”, line 24, in process_request
i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/lru_cache.py”, line 100, in wrapper
result = user_function(*args, **kwds)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/conf/urls/i18n.py”, line 29, in is_language_prefix_patterns_used
for url_pattern in get_resolver(urlconf).url_patterns:
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/urls/resolvers.py”, line 407, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/urls/resolvers.py”, line 400, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/utils/rooturl.py”, line 41, in
url(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/conf/urls/init.py”, line 50, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/urls.py”, line 8, in
from seahub.views.sysadmin import *
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/views/sysadmin.py”, line 89, in
from seahub.utils.two_factor_auth import has_two_factor_auth
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/utils/two_factor_auth.py”, line 5, in
from seahub.two_factor.views.login import (
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/two_factor/views/init.py”, line 2, in
from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/two_factor/views/core.py”, line 31, in
from seahub.auth.forms import AuthenticationForm
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/auth/forms.py”, line 17, in
from captcha.fields import CaptchaField
ImportError: No module named fields
2019-01-02 08:49:11,024 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /favicon.ico
Traceback (most recent call last):
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/core/handlers/base.py”, line 244, in _legacy_get_response
response = middleware_method(request)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/middleware/locale.py”, line 24, in process_request
i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/lru_cache.py”, line 100, in wrapper
result = user_function(*args, **kwds)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/conf/urls/i18n.py”, line 29, in is_language_prefix_patterns_used
for url_pattern in get_resolver(urlconf).url_patterns:
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/urls/resolvers.py”, line 407, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/urls/resolvers.py”, line 400, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/utils/rooturl.py”, line 41, in
url(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/Django-1.11.15-py2.7.egg/django/conf/urls/init.py”, line 50, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/urls.py”, line 8, in
from seahub.views.sysadmin import *
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/views/sysadmin.py”, line 89, in
from seahub.utils.two_factor_auth import has_two_factor_auth
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/utils/two_factor_auth.py”, line 5, in
from seahub.two_factor.views.login import (
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/two_factor/views/init.py”, line 2, in
from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/two_factor/views/core.py”, line 31, in
from seahub.auth.forms import AuthenticationForm
File “/opt/seafile/seafile-server-6.3.4/seahub/seahub/auth/forms.py”, line 17, in
from captcha.fields import CaptchaField
ImportError: No module named fields

4、“captcha.fields”这是什么鬼? 我对比了官方的树莓派(seafile-server_6.3.4_stable_pi.tar.gz)的内容。它的第三方库里面也没有“fields”这个文件啊。

请知道的版主或朋友告知下解决办法。


#2

【已解决】经过一番摸索,已经成功编译并运行,特来结贴。