Odoo Help


ImportError: No module named psycopg2

on 12/16/13, 4:32 AM 13,186 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?

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

on 12/16/13, 7:18 AM

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

on 12/16/13, 7:44 AM
On 12/16/13, 4:43 AM

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/

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 12/16/13, 4:32 AM
Seen: 13186 times
Last updated: 3/16/15, 8:10 AM