Python KeyError

This is the place for queries that don't fit in any of the other categories.

Python KeyError

Postby thebloodycoon » Wed Sep 04, 2013 2:53 pm

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
thebloodycoon
 
Posts: 2
Joined: Wed Sep 04, 2013 1:13 pm

Re: Python KeyError

Postby vijaykumbhani » Fri Sep 13, 2013 5:58 am

keyError:

means 'magento.instance' key not found 'registry.py' in file

please download stable version magento if you install before check key found or not ?
[b][i]With Regards,
Vijay Kumbhani[/i][/b]
vijaykumbhani
 
Posts: 33
Joined: Wed Aug 14, 2013 4:26 am
Location: Surat, Gujarat, India

Re: Python KeyError

Postby thebloodycoon » Sun Sep 15, 2013 3:55 pm

vijaykumbhani wrote:keyError:

means 'magento.instance' key not found 'registry.py' in file

please download stable version magento if you install before check key found or not ?


Thank you for your reply. Can you please be a little bit more specific about your suggestion? I have already installed magento as an addon for OpenERP, but where exactly should I look if the key is present or not? In which file?


Thank you very much, regards
thebloodycoon
 
Posts: 2
Joined: Wed Sep 04, 2013 1:13 pm


Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], silas247 and 4 guests