Skip to Content
Menu
This question has been flagged
5 Replies
92367 Views

Im trying to debug OpenERP v.7 in Eclipse in Windows Environment

When execute openerp-server in Debug mode it throws below error:

pydev debugger: starting Traceback (most recent call last): File "D:\eclipse\plugins\org.python.pydev_2.8.2.2013090511\pysrc\pydevd.py", line 1446, in <module> debugger.run(setup['file'], None, None) File "D:\eclipse\plugins\org.python.pydev_2.8.2.2013090511\pysrc\pydevd.py", line 1092, in run pydev_imports.execfile(file, globals, locals) #execute the script File "D:\OpenERP 7.0-20130701-231330\svn\openerp-server", line 2, in <module> import openerp File "D:\OpenERP 7.0-20130701-231330\svn\openerp__init__.py", line 39, in <module> import addons File "D:\OpenERP 7.0-20130701-231330\svn\openerp\addons__init__.py", line 38, in <module> from openerp.modules import get_module_resource, get_module_path File "D:\OpenERP 7.0-20130701-231330\svn\openerp\modules__init__.py", line 27, in <module> from . import db, graph, loading, migration, module, registry File "D:\OpenERP 7.0-20130701-231330\svn\openerp\modules\graph.py", line 32, in <module> import openerp.osv as osv File "D:\OpenERP 7.0-20130701-231330\svn\openerp\osv__init__.py", line 22, in <module> import osv File "D:\OpenERP 7.0-20130701-231330\svn\openerp\osv\osv.py", line 28, in <module> from psycopg2 import IntegrityError, OperationalError, errorcodes ImportError: No module named psycopg2

How do i resolve and how do success with debug in eclipse?

Avatar
Discard

follow this link "http://stackoverflow.com/questions/8301424/no-module-named-psycopg2" to solve your problem.

Author

Installed psycopg2 package after debug throws some more packages ., like babel installed and win32service module. How do i get what are module packages required for debug in eclipse in Windows Environment

Best Answer

You need to install the psycopg2 module.

On Ubuntu:

$ sudo apt-get install python3-pip python-distribute python-dev

$ easy_install psycopg2

Site: http://initd.org/psycopg/install/

Avatar
Discard
Best Answer

this working ...

sudo apt-get install libpq-dev

pip install psycopg2

sudo apt-get install build-dep python-psycopg2

pip3 install psycopg2

Avatar
Discard
Best Answer

try this...

python -m pip install psycopg2

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 15
4947
4
Mar 23
16569
2
Jul 19
2265
0
Jun 15
4146
0
Oct 21
3690