我正在尝试在Windows上安装pysftp,因为我的odoo服务器在Windows上,我在我的模块中使用了pysftp。
首先,它给了我一个错误No module named pysftp
。我使用pip install pysftp
安装了它
然后系统给我同样的错误,如paramiko,payn1,cryptography
等不同的依赖关系。但最后,它给我一个错误No module named bcrypt
所以我尝试使用pip安装它并成功安装。但是当我运行应用程序时,它会给我以下错误。
Traceback (most recent call last):
File "werkzeug\serving.py", line 177, in run_wsgi
File "werkzeug\serving.py", line 165, in execute
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\server.py", line 246, in app
return self.app(e, s)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\service\wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 1307, in __call__
self.load_addons()
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\http.py", line 1328, in load_addons
m = __import__('odoo.addons.' + module)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\modules\module.py", line 81, in load_module
execfile(modfile, new_mod.__dict__)
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\__init__.py", line 4, in <module>
from . import models
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\models\__init__.py", line 3, in <module>
from . import customer
File "D:\Program Files (x86)\Odoo 10.0e\server\odoo\addons\amgl\models\customer.py", line 8, in <module>
import pysftp
File "D:\Program Files (x86)\Odoo 10.0e\server\pysftp\__init__.py", line 12, in <module>
import paramiko
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\transport.py", line 57, in <module>
from paramiko.ed25519key import Ed25519Key
File "D:\Program Files (x86)\Odoo 10.0e\server\paramiko\ed25519key.py", line 17, in <module>
import bcrypt
File "D:\Program Files (x86)\Odoo 10.0e\server\bcrypt\__init__.py", line 25, in <module>
from bcrypt import _bcrypt
ImportError: DLL load failed: The specified module could not be found.
我的点数版本为9.0.1
,python版本为3.5.4
答案 0 :(得分:0)
似乎你没有使用odoo10正确的python版本并获得包错误。检查odoo10的documentation是否有正确的python版本。使用python 2.7.9 for windows运行odoo 10,如documentation中所述。
要安装python 2.7.9软件包,请使用pip
命令。要安装python3软件包,请使用pip3
命令。
pysftp包还有一件事。您可能会收到这些错误,因为python 3.5版本不支持pysftp包。查看pysftp文档以获取支持的python版本。
我希望这会对你有所帮助!