How to get into the python shell within Odoo 8 environment?
<p>I would like to use the Odoo Framework from the shell.</p>

<p>I installed the module <a href="https://www.odoo.com/apps/modules/8.0/shell/" rel="nofollow">"Shell command backport"</a> (technical name: <code>shell</code>), but I couldn't make it work.</p>

<pre><code>$ ./odoo.py shell --addons-path=/opt/odoo_8/src/linked-addons -d database_name
Traceback (most recent call last):
  File "./odoo.py", line 160, in &lt;module&gt;
    main()
  File "./odoo.py", line 157, in main
    openerp.cli.main()
  File "/opt/odoo_8/src/OCA/OCB/openerp/cli/__init__.py", line 58, in main
    for m in module.get_modules():
  File "/opt/odoo_8/src/OCA/OCB/openerp/modules/module.py", line 351, in get_modules
    plist.extend(listdir(ad))
  File "/opt/odoo_8/src/OCA/OCB/openerp/modules/module.py", line 346, in listdir
    return map(clean, filter(is_really_module, os.listdir(dir)))
OSError: [Errno 2] No such file or directory: '/opt/odoo8/openerp/addons'
</code></pre>

<p>Where is defined the path <code>/opt/odoo8/openerp/addons</code>? I checked <a href="http://stackoverflow.com/questions/28054026/where-openerp-odoo-finds-the-modules-path">this similar question</a> as well. </p>

<p>If I don't write the addons path in the command the error appears again.</p>

<p>I read the answer of <a href="http://stackoverflow.com/questions/34293139/how-to-parse-odoo-in-python-console/34293569">this other question</a>, I tried the module and the script option but they didn't work. What should I do to make it work? Any hint would help.</p>

<p>Check your <code>.opererp_serverrc</code> for the user you are executing the command as. In the users home directory you will find this file. There may be reference to the <code>addons_path</code>. The path it appears to be looking for <code>/opt/odoo8/openerp/addons</code> differs from what you have specified in your command. I would check your config files.</p>

python shell path odoo-8