Odoo Help

Welcome!

This community 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.

0

ImportError: No module named psycopg2

By
Silviaa
on 12/16/13, 4:32 AM 8,393 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.

Pragmatic
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

Silviaa
on 12/16/13, 7:44 AM
1
jamesbale
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/

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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