Odoo Help

0

Odoo V8 Error after Compilation in Eclipse

By
rachid
on 10/1/14, 6:47 AM 1,431 views

Hi Everybody;

I'm a newbie in OpenERP, I want to setup the environment development in Eclipse.

After getting Odoo V8 from Git and create project and then compile the project; i'm getting this error: 

Traceback (most recent call last):
  File "C:\Users\user1\git\odoo\openerp-server.py", line 2, in <module>
    import openerp
  File "C:\Users\user1\git\odoo\openerp\__init__.py", line 70, in <module>
    import conf
ImportError: No module named 'conf'

NB: I'm using python V3.4

Any help plz ?!

2
Martin Temmink
On 10/1/14, 9:44 AM

I have stuggled with this today also, and I was able to solve it, but you need python 2.7 for odoo v8.

 

In Eclipse you have to set some variables before you can correctly run the odoo sever, typically you have to set some variables to the correct value. Like in this case it seams your odoo-server cannot find the modules, because you don't have the add-on locations passed to the server.

like for example the following command parameters:
-c /etc/odoo-server.conf --logfile=LOGFILE  --addons-path=ADDONS_PATH

Within eclipse you have to find the run-configurations and you have to enter the variables on the second tab of that screen.
I suggest you take a look at how to configure eclipse for python, especially how to pas some command line parameters to the python file.

 

if you find this information usefull, please give me a thumbs-up vote!


 

 

 

 

But what did you got in the end, by configuring eclipse?

John Doe (jd)
on 10/2/14, 11:44 AM
0

Ludo - Neobis

--Ludo - Neobis--
2417
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 10/1/14, 9:32 AM

Uhm, I think you confused some things there. You do not need to compile OpenERP. Just running the the right python file (openerp-server.py) will get you compiled files for what is needed.

Secondly, OpenERP runs on Python version 2.7+, but I believe (I could be wrong here) that it must be at least a python 2 version, not version 3. 

It must be at least a Python 2 version? In the OP Microsoft system? In the OP Linux distribution?

John Doe (jd)
on 10/2/14, 11:42 AM

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.

Register

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

1 follower(s)

Stats

Asked: 10/1/14, 6:47 AM
Seen: 1431 times
Last updated: 3/16/15, 8:10 AM