Module installation problem: base_sale_multichannels and product_m2mcategories

Asked by Quentin Peyramale (ADN)

Hello

First, when i import this two modules in OpenERP, this don't work

Second, I extracted the zip files into server/addons and OpenERP finds them but when I want to installed them it gives this error for both:

Environment Information :
System : Windows-XP-5.1.2600-SP3
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.9
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 245, in dispatch
  File "netsvc.pyo", line 74, in __call__
  File "service\web_services.pyo", line 632, in execute
  File "service\web_services.pyo", line 612, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 73, in execute_cr
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 740, in load_modules
  File "addons\__init__.pyo", line 581, in load_module_graph
  File "addons\__init__.pyo", line 409, in register_class
ZipImportError: can't find module 'base_sale_multichannels'

or

ZipImportError: can't find module 'product_m2mcategories' (for the other)

I can't find a solution on the others posts.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Magento OpenERP Connector Edit question
Assignee:
No assignee Edit question
Solved by:
Quentin Peyramale (ADN)
Solved:
Last query:
Last reply:
Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#1

Create a new database and the issue may not be there.

Revision history for this message
Quentin Peyramale (ADN) (peyramale-q) said :
#2

The error still there with product_m2mcategories

but base_sale_multichannels give me: ImportError: cannot import name external_osv

Thanks

Revision history for this message
Quentin Peyramale (ADN) (peyramale-q) said :
#3

base_sale_multichannels give me now: ZipImportError: bad local file header in C:\Program Files\OpenERP AllInOne\Server\addons\base_sale_multichannels.zip

Revision history for this message
Quentin Peyramale (ADN) (peyramale-q) said :
#4

I retry with Ubuntu 9.10 and it give me the same error as I say in the first post.
I do not know what to do.

Thanks if someone have an idea...

Revision history for this message
Quentin Peyramale (ADN) (peyramale-q) said :
#5

Hi everyone,

Finaly the issue was a bad reference of the external_osv.py located in base_external_referentials.
In sale.py of base_sale_multichannels, I change the line 23:
from base_external_referentials import external_osv
by
from addons.base_external_referentials import external_osv

This solved my problem and this is the same issue with magentoerpconnect installation.

Thanks

Revision history for this message
marc (barlot-marc) said :
#6

Hello all,

Exactly the same problem here :

Environment Information :
System : Windows-32bit-SP1
OS Name : nt
Operating System Release :
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.10
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 245, in dispatch
  File "netsvc.pyo", line 74, in __call__
  File "service\web_services.pyo", line 632, in execute
  File "service\web_services.pyo", line 612, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 73, in execute_cr
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 740, in load_modules
  File "addons\__init__.pyo", line 581, in load_module_graph
  File "addons\__init__.pyo", line 409, in register_class
ZipImportError: can't find module 'base_sale_multichannels'

the issue below doesn't work for me
Any idea ?

Thanks

Revision history for this message
Conny (presta) said :
#7

for me to:

Environment Information :
System : Windows-Vista-6.0.6002-SP2
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.0.6002
Operating System Architecture : 32bit
Operating System Locale : de_AT.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.12
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 247, in dispatch
  File "netsvc.pyo", line 76, in __call__
  File "service\web_services.pyo", line 633, in execute
  File "service\web_services.pyo", line 613, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 73, in execute_cr
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 741, in load_modules
  File "addons\__init__.pyo", line 581, in load_module_graph
  File "addons\__init__.pyo", line 409, in register_class
ZipImportError: can't find module 'base_sale_multichannels'

What ist wrong ???

Revision history for this message
Roger Lam (rogerlam1) said :
#8

Still doesn't work.

I went into sales.py and edited this line:
from base_external_referentials import external_osv
To: from addons.base_external_referentials import external_osv

Placed it back into the package, imported and still gave me the same error: can't find module 'base_sale_multichannels'

I downloaded the module from here: http://openlabs.co.uk/openerp/repositories/extra-50/base_sale_multichannels/
(BTW this package would not import using module import in OpenERP, unless you create a folder "base_sale_multichannels" to contain all the files)

Revision history for this message
Rajarshi (z-raj-q) said :
#9

Inspite ofseeing this: Can not create the module file: /opt/openerp/server/bin/addons/base_sale_multichannels/wizard.zip !

I went ahed and manually copied the directory to the addons folder and tried to install it. After installing it and getting a confirmation the State still remains : "To be installed"

Revision history for this message
Quentin Peyramale (ADN) (peyramale-q) said :
#10

I think it is a mistake, but the module is not wizard.zip, it is base_sale_multichannels.zip. Maybe you don't extract the entire module which contains:
- i18n (directory)
- security (directory)
-wizard (directory)
-__init__.py
- __openerp__.py
- delivery.py
-delivery_view.xml
-report.py
-report_view.xml
-sale.py
-sale_view.xml
-stock.py

Revision history for this message
Rajarshi (z-raj-q) said :
#11

Ya I am not sure why its happening - I tried to upload base_sale_multichannels.zip as I downloaded from http://apps.openerp.com/addon/1615?filter={%22order_by%22%3A+%22click_counter+desc%22%2C+%22text_search%22%3A+%22base_sale_multichannels%22}&page=0 for Open ERP version 6.0

I have the right zip file and the structure inside it.