Skip to Content
Menu
This question has been flagged
2 Replies
3242 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.

Avatar
Discard
Author Best Answer

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.

Avatar
Discard

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

Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
4
Nov 16
7509
1
Aug 16
2494
3
Jun 16
7611
1
Mar 15
4313
3
Jan 24
11941