Odoo Help

0

Problem with OpenERP 7.0 magento connector while using multiprocessing.

By
Nishant Jogi
on 5/15/15, 3:34 AM 1,026 views

Hello Guys,

Accept Greetings from Nishant.

Actually I stuck at one problem regarding OpenERP 7.0 magento connector while using --workers.

Here, Enque Job scheduler is not executing properly because of dead Workers.

I have refered following link to resolve this problem but not succed yet.

http://odoo-connector.com/guides/multiprocessing.html

I always get an error :

Traceback (most recent call last):

File "openerp-connector-worker", line 13, in <module>

import openerp.service.workers as workers

ImportError: No module named workers

It will be great if someone helps me out.

Thanks.

0
Nishant Jogi
On 5/15/15, 6:24 AM

Hello,

Thanks for reply.

I have openerp => server => openerp = > service => workers.py file available.

Actually I have followed following steps to do it.

1. set opener/server path as PYTHONPATH

2. start server by following command:

PYTHONPATH=/home/my_system/workspace/openerp-magento-connector/openerp-connector/connector/openerp-connector-worker --config /home/my_system/Desktop/openerp-server.conf --workers=5 --logfile=/tmp/openerp-connector.log

Please correct me if I am wrong.

Thanks.

`/home/my_system/workspace/openerp-magento-connector/openerp-connector/connector/openerp-connector-worker` is in PYTHONPATH instead of the openerp server

Camptocamp SA, Guewen Baconnier - Software Developer, Camptocamp
on 5/22/15, 3:41 AM
0

Hi,

just have a look in your OpenERP structure as like below is available or not.

openerp => server => openerp = > service => workers.py

or you have as like below.

openerp => server => openerp = > service => server.py

If you have server.py instead of workers.py then you just need to change one line in file "openerp-connector-worker" as like below.

import openerp.service.server as workers. thats it.

I hope you will resolve this issue.

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: 5/15/15, 3:34 AM
Seen: 1026 times
Last updated: 5/15/15, 6:24 AM