← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 793481] Re: "Open Magento Fields" fails

 

All right, so I think I messed some things up pretty good in the
installation:

I was using "trunk" version, instead of the recommended "stable" series.

Additionally, I was trying to use the plugin on a database with demo
data - is that even possible?

AND I didn't complete the "mandatory" steps, i.e. I didn't run "2 -
Synchronize Referential Settings"

Had I done so in the first place, I would have started this bug with the
following Error, which no occurs when I try to run said step:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/magentoerpconnect.zip/magentoerpconnect/magerp_core.py", line 64, in core_sync
    self.pool.get('external.shop.group').mage_import_base(cr, uid,core_imp_conn, inst.id, defaults={'referential_id':inst.id})
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/magentoerpconnect.zip/magentoerpconnect/magerp_osv.py", line 227, in mage_import_base
    data = conn.call(list_method, context['ids_or_filter'])
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/magentoerpconnect.zip/magentoerpconnect/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 3: 'Invalid api path.'>

'Invalid api path' sounds to me as if there is some problem accessing magento...
However, mandatory step one ("1 - Reload Referential Mapping Templates") runs smoothly...

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/793481

Title:
  "Open Magento Fields" fails

Status in Magento Open ERP Connector:
  New

Bug description:
  Software Versions:
  OpenERP: 6.0.2
  Magento: 1.5.1.0
  magentoerpconnect: 6.0.1.0

  Clicking on "Open Magento Field" in Product form view, I get the
  following error:

  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/magentoerpconnect.zip/magentoerpconnect/product.py", line 641, in open_magento_fields
      set_id = self.read(cr, uid, ids, fields=['set'], context=context)[0]['set'][0]
  TypeError: 'bool' object is unsubscriptable


References