Install error on centos

Bug #490022 reported by Vadim - Enapps LTD
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Fix Released
Undecided
Sharoon Thomas http://openlabs.co.in

Bug Description

Hi,
Sorry I am all new to this. I installer Open ERP on Centos and everything is running well so far. I am having problems installing some modules and the magento connectors is one of them. I managed to install dependencies with no problems, but this is what I get when i try to install magento module. Please note the server is running centos and I am trying to install this from within windows client. Many thanks.

Environment Information :
System : Windows-Vista-6.1.7100
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7100
Operating System Architecture : 32bit
Operating System Locale : en_GB.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.4/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.4/site-packages/openerp-server/service/web_services.py", line 639, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/lib/python2.4/site-packages/openerp-server/service/web_services.py", line 619, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/lib/python2.4/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/lib/python2.4/site-packages/openerp-server/wizard/__init__.py", line 74, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/python2.4/site-packages/openerp-server/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/lib/python2.4/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/__init__.py", line 728, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/__init__.py", line 578, in load_module_graph
    register_class(package.name)
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/__init__.py", line 400, in register_class
    imp.load_module(m, *fm)
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/magentoerpconnect/__init__.py", line 18, in ?
    import magerp_core
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/magentoerpconnect/magerp_core.py", line 23, in ?
    import magerp_osv
  File "/usr/lib/python2.4/site-packages/openerp-server/addons/magentoerpconnect/magerp_osv.py", line 11
    class Connection():
                     ^
SyntaxError: invalid syntax

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

Just do add, this is working fine on the windows all in one server.

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Hi Vadim,

Can you try changing line 11 in magerp_osv

Currently: 'class Connection():'

Change to 'class Connection(object):'

Changed in magentoerpconnect:
assignee: nobody → Sharoon Thomas (sharoonthomas)
status: New → Incomplete
Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

that fixed the issue, thanks

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Thanks for the report, applied patch on commit #267

Changed in magentoerpconnect:
status: Incomplete → Fix Released
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.