错误:no module named seaserv


#1

我在window7部署seaserv成功运行。但是我想新增一个app,在seahub运行cmd,输入manage.py startapp test 报错如下:
Traceback (most recent call last):
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\manage.py”, line 10, i
n
execute_from_command_line(sys.argv)
File “C:\Python27\lib\site-packages\django\core\management_init_.py”, line
338, in execute_from_command_line
utility.execute()
File “C:\Python27\lib\site-packages\django\core\management_init_.py”, line
303, in execute
settings.INSTALLED_APPS
File “C:\Python27\lib\site-packages\django\conf_init_.py”, line 48, in ge
tattr

self.setup(name)
File "C:\Python27\lib\site-packages\django\conf_init
.py", line 44, in set
up
self.wrapped = Settings(settings_module)
File "C:\Python27\lib\site-packages\django\conf_init
.py", line 92, in in
it

mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Python27\lib\importlib_init
.py", line 37, in import_module
import(name)
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub_init_.py”, l
ine 3, in
from handlers import repo_created_cb, repo_deleted_cb
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub\handlers.py”, l
ine 4, in
import settings
File “C:\Users\ouf4\Desktop\seafile-server-6.0.7\seahub\seahub\settings.py”, l
ine 9, in
from seaserv import FILE_SERVER_ROOT, FILE_SERVER_PORT, SERVICE_URL
ImportError: No module named seaserv

思路:
1,是环境变量没有配置好吗?
2,还是需要配置什么文件?


#2

请问 你最后这个问题解决了没,我也碰到类似的问题了


#3

你好,没有解决,放弃了。
可能在django上又封装了其它的东西进去。


#4

应该是server模块没编译好。我也遇到了,server模块重新编译过,就OK了