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

OpenERP in eclipse error [Closed]

By
priyankahdp
on 5/22/13, 7:00 AM 2,184 views

The Question has been closed

by
Sudhir Arya (SA)
on 05/22/2013 07:25:46

I installed again my openerp project in another machine and added pydev to eclipse then when i going to run openerp-server file below error has come.seems something missing with installing procedure. please help me to sort out this issue

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

terminal view

3

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 5/22/13, 7:11 AM

It seems psycopg2 is not installed in your system. First install psycopg2 and then run OpenERP server.

Command to install psycopg2:

sudo apt-get install python-psycopg2

or

sudo easy_install psycopg2

or

You can download latest package (tar.gz) from Download pysycopg2. After that extract it, open terminal and run setup.py file.

sudo python setup.py install
3

Remya

--Remya--
5813
| 7 8 8
Thiruvananthapuram, India
--Remya--

Working as an Senior ODOO developer. http://in.linkedin.com/pub/remya-r/69/a23/298

Remya
On 5/22/13, 7:05 AM

Please install module psycopg2.

easy_install psycopg2(in linux)

thanks Remya. Post updated with error

priyankahdp
on 5/22/13, 7:20 AM

ok. please close the answer.

Remya
on 5/22/13, 7:22 AM
1

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 5/22/13, 7:05 AM

Hi, install psycopg2 dependance.

Thanks Borni post updated

priyankahdp
on 5/22/13, 7:20 AM

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 5/22/13, 7:00 AM
Seen: 2184 times
Last updated: 3/16/15, 8:10 AM