在openerp-server.conf中正确运行Bitnami Odoo Stack中的odoo.py插件的路径不正确

时间:2016-10-25 15:31:07

标签: odoo-8 bitnami

我试图运行~/ERP/bitnami-odoo/python/bin/python ~/ERP/bitnami-odoo/apps/odoo/bin/odoo.py help,现在我收到此错误:

~/ERP/bitnami-odoo/python/lib/python2.7/site-packages/setuptools-20.9.0-py2.7.egg/pkg_resources/__init__.py:1268: UserWarning: ~/ERP/bitnami-odoo/.tmp is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
Traceback (most recent call last):
  File "~/ERP/bitnami-odoo/apps/odoo/bin/odoo.py", line 4, in <module>
    __import__('pkg_resources').run_script('odoo==8.0.post20151126', 'odoo.py')
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 719, in run_script

  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1504, in run_script

  File "~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/EGG-INFO/scripts/odoo.py", line 160, in <module>
    main()
  File "~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/EGG-INFO/scripts/odoo.py", line 157, in main
    openerp.cli.main()
  File "~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/openerp/cli/__init__.py", line 58, in main
    for m in module.get_modules():
  File "~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/openerp/modules/module.py", line 351, in get_modules
    plist.extend(listdir(ad))
  File "~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/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: '~/ERP/odoo/openerp/addons'

这个目录(显然)不正确,但我无法找到它的定义位置。完整路径应为~/ERP/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/openerp/addons,如果没有/bitnami-odoo/apps/odoo/lib/odoo-8.0.post20151126-py2.7.egg/

,此错误会显示错误的路径

我已尝试将路径传递给openerp-server.conf ~/ERP/bitnami-odoo/python/bin/python ~/ERP/bitnami-odoo/apps/odoo/bin/odoo.py help -c ~/ERP/bitnami-odoo/apps/odoo/conf/openerp-server.conf,其中插件路径正确,但错误仍在继续。这是一个bitnami错误?如果不是,我在哪里可以解决这个问题。

注意:我使用〜/来不暴露整个路径。 ; - )

1 个答案:

答案 0 :(得分:0)

~/.openerp_server.rc中有一个默认配置文件 您可以使用addons_path =设置插件文件。