我相信这个问题已经在各种论坛和这里得到解决。并且可接受的解决方案似乎是使用 web2py 的源版本。我正在使用它。我通过运行 setup-web2py-ubuntu.sh 在我的 ubuntu 机器上设置了 web2py。
版本
2.15.4-stable+timestamp.2017.09.02.04.02.22
(Running on Apache/2.4.18 (Ubuntu), Python 2.7.12)
但是当我尝试加载我的应用程序时,它使用了 paramiko 和其他 python 库的加载,我得到了这个错误。请帮忙。
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/www-data/web2py/applications/rip/models/scheduler.py", line 3, in <module>
import paramiko
File "/home/www-data/web2py/gluon/custom_import.py", line 104, in custom_importer
raise ImportError(e1, import_tb) # there an import error in the module
ImportError: (ImportError("Cannot import module 'applications.rip.modules.paramiko'",), <traceback object at 0xac07eb6c>)
PS:rip 是我的应用程序名称。