openlabs / magento

Python API for Magento
Other
136 stars 82 forks source link

Magento_integration problems #18

Closed ghost closed 11 years ago

ghost commented 11 years ago

I've now reinstalled magento_integration on another server - in another location.

It seems that OpenERP only looks for python modules in /usr/lib/pymodules/python2.6/openerp/addons. That's where I've put magento_integration and the required python modules such as magento, pycountry, ...

When I now try to update the module list, I get the following error: ... File "/usr/lib/pymodules/python2.6/openerp/addons/magento/init.py", line 19, in from .api import API ImportError: cannot import name API

What am I doing wrong?

sharoonthomas commented 11 years ago

The dependencies are meant to be installed in python site packages and the openerp modules into the openerp addons path.

Closing the bug.

ghost commented 11 years ago

That is where thexy were - but then I got the following error: ImportError: No module named magento

But when I opened the python console and ran help("modules") the magento module is in the list.

sharoonthomas commented 11 years ago

@fosstux first of all you are reporting the issue on the wrong github project. This is the python magento api project. You should report OpenERP magento connector issues in the issues tracker for that project which is https://github.com/openlabs/magento_integration/issues

The issues you are facing seem to be due to a lack of familiarity with python and openerp stack. The installation is well explained in the documentation of that project too.