Python KeyError

Robert Gliguroski robert.gliguroski at gmail.com
Thu Sep 5 04:37:51 EDT 2013


Dear Sirs,

I would like to ask a question that may seem a little off-topic but since it is related to Python and I really cannot solve it - I thought to try to ask for some help here.

I have installed OpenERP, an open source ERP software and then I installed an extension for connecting it to Magento. But when I configure it and try to connect them, I am getting and error that says:

"File "/opt/openerp/v7/server/openerp/modules/registry.py", line 102, in __getitem__
return self.models[model_name]
KeyError: u'magento.instance'"

This is the function in the registry.py file:

"def __getitem__(self, model_name):
""" Return a model for a given name or raise KeyError if it doesn't exist."""
return self.models[model_name]
"

Any help is appreciated, thanks



More information about the Python-list mailing list