Unable to install the connector

Bug #985728 reported by David
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
Fix Released
Undecided
Mathieu Vatel - Julius Network Solutions

Bug Description

Environment Information :
System : Linux-3.0.0-17-generic-pae-i686-with-Ubuntu-11.10-oneiric
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release : 3.0.0-17-generic-pae
Operating System Version : #30-Ubuntu SMP Thu Mar 8 17:53:35 UTC 2012
Operating System Architecture : 32bit
Operating System Locale : ca_ES.UTF-8
Python Version : 2.7.2+
OpenERP-Client Version : 6.1.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/src/openerp-6.1-1/openerp/service/netrpc_server.py", line 64, in run
    result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
  File "/usr/local/src/openerp-6.1-1/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/local/src/openerp-6.1-1/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/src/openerp-6.1-1/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/src/openerp-6.1-1/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/local/src/openerp-6.1-1/openerp/modules/registry.py", line 160, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/local/src/openerp-6.1-1/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/local/src/openerp-6.1-1/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/usr/local/src/openerp-6.1-1/openerp/modules/loading.py", line 192, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/usr/local/src/openerp-6.1-1/openerp/modules/loading.py", line 90, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/usr/local/src/openerp-6.1-1/openerp/modules/loading.py", line 132, in _load_data
    tools.convert_csv_import(cr, module_name, pathname, fp.read(), idref, mode, noupdate)
  File "/usr/local/src/openerp-6.1-1/openerp/tools/convert.py", line 970, in convert_csv_import
    result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/orm.py", line 1412, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/orm.py", line 1371, in process_liness
    res = _get_id(relation, line[i], current_module, mode)
  File "/usr/local/src/openerp-6.1-1/openerp/osv/orm.py", line 1268, in _get_id
    record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
  File "/usr/local/src/openerp-6.1-1/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/usr/local/src/openerp-6.1-1/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/usr/local/src/openerp-6.1-1/openerp/addons/base/ir/ir_model.py", line 640, in _get_id
    raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))
ValueError: No such external ID currently defined in the system: base_sale_multichannels.ecommerce

I can't install the connector with the dependences say in the branch

===========
= Dependency =
===========
The dependency are here :
https://launchpad.net/openobject-extension
https://code.launchpad.net/e-commerce-addons

What's go wrong?

Related branches

Revision history for this message
NightHawk (nighthawk-nhdnet) wrote :

Same here

Changed in prestashoperpconnect:
assignee: nobody → Mathieu Vatel (mathieu-julius)
Revision history for this message
Mathieu Vatel - Julius Network Solutions (mathieu-julius) wrote :

There is a missing record value in the 'external.referential.category' table with ID base_sale_multichannels.ecommerce this needs to be fixed

Revision history for this message
Carlos Miras (carlos-miras) wrote :

We have installed successful the connector without specify the CSV files in __openerp__.py, but we don't know if this works well yet.

Revision history for this message
David (dhecar) wrote :

Can I install the connector like Carlos say or is better to wait for an update?

Thanks.

Revision history for this message
Mathieu Vatel - Julius Network Solutions (mathieu-julius) wrote :

Hello I've fixed it there:
https://code.launchpad.net/~mathieu-julius/prestashoperpconnect/prestashoperpconnect_bug_985728

I've also propose for merging into the main project.

Revision history for this message
Babacar DIENE (sakababs89) wrote : Re: [Bug 985728] Re: Unable to install the connector
Download full text (4.2 KiB)

Le 25/04/2012 16:33, Mathieu Vatel a écrit :
> Hello I've fixed it there:
> https://code.launchpad.net/~mathieu-julius/prestashoperpconnect/prestashoperpconnect_bug_985728
>
> I've also propose for merging into the main project.
>
i tried to install your module but i got this error

Client Traceback (most recent call last):
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 180, in dispatch
     response["result"] = method(controller, self, **self.params)
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1047, in call_button
     action = self.call_common(req, model, method, args, domain_id, context_id)
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 991, in call_common
     return self._call_kw(req, model, method, args, {})
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
     return getattr(req.session.model(model), method)(*args, **kwargs)
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
     args, kw)
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
     result = self.connector.send(self.service_name, method, *args)
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 611, in send
     raise fault

Server Traceback (most recent call last):
   File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 592, in send
     result = openerp.netsvc.dispatch_rpc(service_name, method, args)
   File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
     result = ExportService.getService(service_name).dispatch(method, params)
   File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 586, in dispatch
     res = fn(db, uid, *params)
   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
     return self.execute(db, uid, obj, method, *args, **kw or {})
   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
     return f(self, dbname, *args, **kwargs)
   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
   File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
     return getattr(object, method)(cr, uid, *args, **kw)
   File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
     _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
   File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 39, in restart_pool
     registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
   File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 202, in new
     openerp.modules.load_modules(registry.db, force_demo, status, update_module)
   File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 338, in load_modules
     processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
   File "/usr/lib/...

Read more...

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

Hi,

I merged the Mathieu's fix.

Guewen

Changed in prestashoperpconnect:
status: New → Fix Released
Revision history for this message
David (dhecar) wrote :
Download full text (3.2 KiB)

With a fresh install and the update of the module i receive new error

Traceback (most recent call last):
  File "/usr/local/src/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/src/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/src/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/src/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/src/server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/local/src/server/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/local/src/server/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/local/src/server/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/usr/local/src/server/openerp/modules/loading.py", line 192, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/usr/local/src/server/openerp/modules/loading.py", line 90, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/usr/local/src/server/openerp/modules/loading.py", line 132, in _load_data
    tools.convert_csv_import(cr, module_name, pathname, fp.read(), idref, mode, noupdate)
  File "/usr/local/src/server/openerp/tools/convert.py", line 970, in convert_csv_import
    result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)
  File "/usr/local/src/server/openerp/osv/orm.py", line 1412, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
  File "/usr/local/src/server/openerp/osv/orm.py", line 1371, in process_liness
    res = _get_id(relation, line[i], current_module, mode)
  File "/usr/local/src/server/openerp/osv/orm.py", line 1268, in _get_id
    record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
  File "/usr/local/src/server/openerp/tools/cache.py", line 18, in lookup
    r = self.lookup(self2, cr, *args)
  File "/usr/local/src/server/openerp/tools/cache.py", line 46, in lookup
    value = d[args] = self.method(self2, cr, *args)
  File "/usr/local/src/server/openerp/addons/base/ir/ir_model.py", line 647, in _get_id
    raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id))
ValueError: No such external ID currently defined in the system: base_sale_multichannels.model_base_sale_payment_type
2012-04-25 16:11:08,844 9901 ERROR bodega openerp.netsvc: No such external ID currently defined in the system: base_sale_multichan...

Read more...

David (dhecar)
Changed in prestashoperpconnect:
status: Fix Released → New
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hi,

This is not the same issue, please open a new bug report.

Guewen

Changed in prestashoperpconnect:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions