The _name attribute openerp-connector.installed is not valid

Bug #1269208 reported by Mike Lindsay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector
Invalid
Undecided
Unassigned

Bug Description

Fresh install of OpenERP 7 from LP. Accidentally installed this connector first; https://code.launchpad.net/openerp-connector . Uninstalled from database using the OpenERP tool, then deleted directory on server. Followed the guide here for install: http://openerp-magento-connector.com/guides/installation_guide.html. When I tried to install the openerp-connector module, I get the following error:

ValueError

The _name attribute openerp-connector.installed is not valid.

I tried creating a new database, resetting permissions on the dev server, all ended with the same error.

I believe the version of the connect I am using is the following: 602 launchpad_translations_on_behalf_of_openerp-connector-core-editors-20140108054157-1ibqtd893iqce9kl

Here is the traceback:

The _name attribute openerp-connector.installed is not valid.
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/openerp/addons/base/module/module.py", line 424, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/opt/openerp/server/openerp/addons/base/module/module.py", line 475, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/opt/openerp/server/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/registry.py", line 219, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 354, in load_modules
    loaded_modules, update_module)
  File "/opt/openerp/server/openerp/modules/loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/openerp/server/openerp/modules/loading.py", line 165, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/opt/openerp/server/openerp/modules/module.py", line 374, in init_module_models
    result = obj._auto_init(cr, {'module': module_name})
  File "/opt/openerp/server/openerp/osv/orm.py", line 2987, in _auto_init
    raise_on_invalid_object_name(self._name)
  File "/opt/openerp/server/openerp/osv/orm.py", line 231, in raise_on_invalid_object_name
    raise except_orm('ValueError', msg)
except_osv: ('ValueError', 'The _name attribute openerp-connector.installed is not valid.')
2014-01-15 00:48:32,510 1300 INFO magetest werkzeug: 192.168.1.81 - - [15/Jan/2014 00:48:32] "POST /web/dataset/call_button HTTP/1.1" 200 -

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

You have got this error because you renamed the directory of the module to 'openerp-connector'.
The name of the module is 'connector' and should never be modified (this is a general rule with OpenERP modules).

Changed in openerp-connector:
status: New → Invalid
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Thanks for your report.
Considering my last comment, I set this bug as invalid.

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.