我在另一台机器上再次安装了我的 openerp 项目并将 pydev 添加到 eclipse 然后当我要运行下面的 openerp-server 文件时出现错误。安装过程似乎缺少一些东西。请帮我解决这个问题
pydev debugger: starting
Traceback (most recent call last):
File "/home/priyan/Softwares/eclipse/dropins/PyDev 2.7.3/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 1397, in <module>
debugger.run(setup['file'], None, None)
File "/home/priyan/Softwares/eclipse/dropins/PyDev 2.7.3/plugins/org.python.pydev_2.7.3.2013031601/pysrc/pydevd.py", line 1090, in run
pydev_imports.execfile(file, globals, locals) #execute the script
File "/home/priyan/Softwares/openerp-7.0/openerp-server.py", line 2, in <module>
import openerp
File "/home/priyan/Softwares/openerp-7.0/openerp/__init__.py", line 39, in <module>
import addons
File "/home/priyan/Softwares/openerp-7.0/openerp/addons/__init__.py", line 38, in <module>
from openerp.modules import get_module_resource, get_module_path
File "/home/priyan/Softwares/openerp-7.0/openerp/modules/__init__.py", line 27, in <module>
from . import db, graph, loading, migration, module, registry
File "/home/priyan/Softwares/openerp-7.0/openerp/modules/graph.py", line 32, in <module>
import openerp.osv as osv
File "/home/priyan/Softwares/openerp-7.0/openerp/osv/__init__.py", line 22, in <module>
import osv
File "/home/priyan/Softwares/openerp-7.0/openerp/osv/osv.py", line 28, in <module>
from psycopg2 import IntegrityError, OperationalError, errorcodes
ImportError: No module named psycopg2
当我使用 apt get 通过终端安装它时,错误如下所示
root@priyan-pc:~# sudo apt-get install python-psycopg2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-psycopg2
root@priyan-pc:~#