OpenERP Connector - Magento conflict with the base module

Bug #1337067 reported by Learshelfy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
New
Undecided
Unassigned

Bug Description

Sometimes,when my OpenERP Connector is running,the OpenERP 7.0 log will show the base module error.Then my OpenERP Connector will did not work,all the jobs status are always in pending,Could you help me?

Hi,the log show:
Exception in thread openerp.service.cron.cron1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/opt/openerp/server/openerp/service/cron.py", line 71, in target
    cron_runner(i)
  File "/opt/openerp/server/openerp/service/cron.py", line 50, in cron_runner
    base = sys.modules['addons.base']
KeyError: 'addons.base'

When I uninstall OpenERP Connector - Magento and reinstall OpenERP Connector - Magento,it can back to work,Otherwise all the jobs status are always in pending

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 1337067] [NEW] OpenERP Connector - Magento conflict with the base module

Hi,

What does mean "the base module error"? Can you attach a log?

description: updated
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

It could be a more general issue as well, like a setup problem (check --addons-path), an issue caused by another installed addon.
It will be difficult to solve this problem since we can't reproduce it.

Revision history for this message
Learshelfy (1243099585-n) wrote :

How can I solve this problem ? How I can know what another installed addon can be caused this issue?

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

You will need to get your hands dirty. Use "pdb" on /opt/openerp/server/openerp/service/cron.py to find why it can't find 'addons.base' in sys.modules.

Revision history for this message
Learshelfy (1243099585-n) wrote :

thank you very much I will do it,OpenERP Connector - Magento is a good thing for me

Revision history for this message
David BEAL (ak) (davidbeal) wrote :

I have the same exception

Exception in thread openerp.service.cron.cron1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/dav/dvp/7/OCB/openerp/service/cron.py", line 73, in target
    cron_runner(i)
  File "/home/dav/dvp/7/OCB/openerp/service/cron.py", line 52, in cron_runner
    base = sys.modules['addons.base']
KeyError: 'addons.base'

in my case 'addons.base' in not in sys.modules
Instead there is 'openerp.addons.base' key

Here is an extract of sys.modules list
..., 'connector.collections', 'openerp.report.int_to_text', 'base.module.re', 'openerp.addons.procurement.wizard.openerp', 'openerp.addons.product_custom_attributes.openerp', 'openerp.addons.crm.report.crm_lead_report', 'pychart.line_plot', 'openerp.addons.stock.wizard.stock_inventory_merge', 'mail.controllers.base64', 'openerp.addons.portal.logging', 'pychart.area_doc', 'osv.pytz', 'hr_timesheet_sheet.report.hr_timesheet_report', 'openerp.addons.project.report.project_report', 'openerp.addons.base', 'openerp.addons.point_of_sale.report.pos_sales_user', 'openerp.addons.base_setup.res_config', 'psutil', 'OpenSSL.crypto', 'openerp.addons.crm_claim_rma.stock', 'openerp.datetime', 'openerp.addons.l10n_in_hr_payroll.report.datetime', 'babel.localtime.subprocess', 'sale_exceptions.sale', 'openerp.addons.web.cli.test_js', 'openerp.addons.base.res.datetime', 'base.ir.ir_ui_menu', 'PIL._binary', 'openerp.addons.base.ir.wizard.wizard_menu', 'openerp.addons.base.res.locale', 'docutils', 'math', 'report_webkit.os', 'workflow', 'fetchmail.base64', ...

When crons are deactivate, the exception is yet raised

It happens in 2 of our clients with magento connector.
No case up to now with other install than magento

Seems the question is known by OpenERP
https://github.com/odoo/odoo/blob/7.0/openerp/service/cron.py#L48

Revision history for this message
Learshelfy (1243099585-n) wrote : 回复:[Bug 1337067] Re: OpenERP Connector - Magento conflict with the basemodule
Download full text (3.6 KiB)

Thank you very much!

------------------ 原始邮件 ------------------
发件人: "David BEAL (ak)";<email address hidden>;
发送时间: 2014年10月20日(星期一) 晚上11:34
收件人: "Amatsukaz"<email address hidden>;

主题: [Bug 1337067] Re: OpenERP Connector - Magento conflict with the basemodule

I have the same exception

Exception in thread openerp.service.cron.cron1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/dav/dvp/7/OCB/openerp/service/cron.py", line 73, in target
    cron_runner(i)
  File "/home/dav/dvp/7/OCB/openerp/service/cron.py", line 52, in cron_runner
    base = sys.modules['addons.base']
KeyError: 'addons.base'

in my case 'addons.base' in not in sys.modules
Instead there is 'openerp.addons.base' key

Here is an extract of sys.modules list
..., 'connector.collections', 'openerp.report.int_to_text', 'base.module.re', 'openerp.addons.procurement.wizard.openerp', 'openerp.addons.product_custom_attributes.openerp', 'openerp.addons.crm.report.crm_lead_report', 'pychart.line_plot', 'openerp.addons.stock.wizard.stock_inventory_merge', 'mail.controllers.base64', 'openerp.addons.portal.logging', 'pychart.area_doc', 'osv.pytz', 'hr_timesheet_sheet.report.hr_timesheet_report', 'openerp.addons.project.report.project_report', 'openerp.addons.base', 'openerp.addons.point_of_sale.report.pos_sales_user', 'openerp.addons.base_setup.res_config', 'psutil', 'OpenSSL.crypto', 'openerp.addons.crm_claim_rma.stock', 'openerp.datetime', 'openerp.addons.l10n_in_hr_payroll.report.datetime', 'babel.localtime.subprocess', 'sale_exceptions.sale', 'openerp.addons.web.cli.test_js', 'openerp.addons.base.res.datetime', 'base.ir.ir_ui_menu', 'PIL._binary', 'openerp.addons.base.ir.wizard.wizard_menu', 'openerp.addons.base.res.locale', 'docutils', 'math', 'report_webkit.os', 'workflow', 'fetchmail.base64', ...

When crons are deactivate, the exception is yet raised

It happens in 2 of our clients with magento connector.
No case up to now with other install than magento

Seems the question is known by OpenERP
https://github.com/odoo/odoo/blob/7.0/openerp/service/cron.py#L48

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1337067

Title:
  OpenERP Connector - Magento conflict with the base module

Status in OpenERP Connector - Magento:
  New

Bug description:
  Sometimes,when my OpenERP Connector is running,the OpenERP 7.0 log
  will show the base module error.Then my OpenERP Connector will did not
  work,all the jobs status are always in pending,Could you help me?

  Hi,the log show:
  Exception in thread openerp.service.cron.cron1:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
      self.run()
    File "/usr/lib/python2.7/threading.py", line 504, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/opt/openerp/server/openerp/service/cron.py", line 71, in target
      cron_runner(...

Read more...

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

This error sometimes happens when one (or several) of the module in the addons-path uses the syntax "import name_of_an_addons" instead of "import openerp.addons.name_of_an_addons".
You need to check for the addons with wrong imports and fix them.

Revision history for this message
Learshelfy (1243099585-n) wrote :

thank you

 ------------------ 原始邮件 ------------------
  发件人: "Bug 1337067";<email address hidden>;
 发送时间: 2014年10月22日(星期三) 晚上9:56
 收件人: "Amatsukaz"<email address hidden>;

 主题: [Bug 1337067] Re: OpenERP Connector - Magento conflict with the basemodule

This error sometimes happens when one (or several) of the module in the addons-path uses the syntax "import name_of_an_addons" instead of "import openerp.addons.name_of_an_addons".
You need to check for the addons with wrong imports and fix them.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1337067

Title:
  OpenERP Connector - Magento conflict with the base module

Status in OpenERP Connector - Magento:
  New

Bug description:
  Sometimes,when my OpenERP Connector is running,the OpenERP 7.0 log
  will show the base module error.Then my OpenERP Connector will did not
  work,all the jobs status are always in pending,Could you help me?

  Hi,the log show:
  Exception in thread openerp.service.cron.cron1:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
      self.run()
    File "/usr/lib/python2.7/threading.py", line 504, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/opt/openerp/server/openerp/service/cron.py", line 71, in target
      cron_runner(i)
    File "/opt/openerp/server/openerp/service/cron.py", line 50, in cron_runner
      base = sys.modules['addons.base']
  KeyError: 'addons.base'

  When I uninstall OpenERP Connector - Magento and reinstall OpenERP Connector - Magento,it can back to work,Otherwise all the jobs status are always in pending

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-connector-magento/+bug/1337067/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.