OpenLabs connector Magento OpenERP 7.0
<p>I'm trying to connect my OpenERP 7.0 to my Magento webSite 1.9.</p>

<p>I'm using the connector developed by openLabs <a href="https://github.com/openlabs/magento_integration" rel="nofollow">https://github.com/openlabs/magento_integration</a></p>

<p>I follow the instructions of <a href="https://openerp-magento-connector.readthedocs.io/en/develop/introduction.html#installation" rel="nofollow">https://openerp-magento-connector.readthedocs.io/en/develop/introduction.html#installation</a></p>

<p>But after 3 restores of my OpenERP, I still have an error when I tried to update my modules to get my Magento module.</p>

<blockquote>
  <p>File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/base/module/module.py", line 617, in update_list
      handler.load_addons()
    File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/web/http.py", line 580, in load_addons
      m = <strong>import</strong>('openerp.addons.' + module)
    File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/modules/module.py", line 133, in load_module
      mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
    File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/magento_integration-develop/<strong>init</strong>.py", line 9, in 
      import magento_
    File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/magento_integration-develop/magento_.py", line 17, in 
      import magento
  ImportError: No module named magento</p>
</blockquote>

<p>I'm thinking this module isn't stable but when I read on forums, I saw people saying it works.</p>

<p>Some of this people or someone else can explain to me how they did ? Or another solution ? I'm open to multiple ways as it works. (But I haven't the possibility to upgrade my OpenERP in 8.0 or 9.0).</p>

<p>Thanks</p>

<p>EDIT : To @CZoellner</p>

<p>First, thx for your helpful answers</p>

<p>Ok, I solve the problem, my python lib was installed but my openERP installer didn't find it. So I modify the script to add the way of my module in sys.path. This error is resolved.</p>

<p>But now, I have another error seems the first</p>

<blockquote>
  <p>File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/magento_integration-develop/<strong>init</strong>.py", line 10, in 
      import country
    File "/opt/openerp/davidts/appserver-dts/parts/openerp-7.0-20140124-002431/openerp/addons/magento_integration-develop/country.py", line 18, in 
      import pycountry
  ImportError: No module named pycountry</p>
</blockquote>

<p>and the sys.path has already the good way </p>

<blockquote>
  <p>[...
   '/usr/local/lib/python2.7/dist-packages/pycountry-1.20-py2.7.egg',
  ...]</p>
</blockquote>

<p>I never develop in python so I certainly missed something</p>

<p>Ok, So I again restoring my snapshot ...</p>

<p>But now, instead using the installer, I downloaded the library manually and install it one by one.</p>

<p>So I install, pycountry lib and magento lib. I update the file "magento_.py" and "pycountry.py" of openLab connector to add the path of my library on sys.path.</p>

<p>Something like that </p>

<blockquote>
  <p>import sys
  sys.path.append("/usr/local/lib/python2.7/dist-packages/pycountry-1.20-py2.7.egg/")</p>
</blockquote>

<p>I run the setup of openLabs connector and after I launch update of openERP.</p>

<p>And it finally works ! whew !</p>

<p>Anyway thx for your useful answers !</p>

python magento openerp magento-1.9 openerp-7