Odoo12 ./odoo-bin运行,首次安装OSX Traceback(最近一次调用):文件“ ./odoo-bin”,

时间:2019-04-27 12:10:51

标签: python odoo

这是我第一次在Odoo中使用MacOS。 Python 3.7和Odoo12。我按照步骤操作,在安装pip3 install -r requirements.txt之后,我使用./odoo-bin 但我失败了它显示

 Traceback (most recent call last):
  File "./odoo-bin", line 8, in <module>
    odoo.cli.main()
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/cli/command.py", line 60, in main
    o.run(args)
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/cli/server.py", line 176, in run
    main(args)
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/cli/server.py", line 124, in main
    odoo.tools.config.parse_config(args)
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/tools/config.py", line 337, in parse_config
    odoo.netsvc.init_logger()
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/netsvc.py", line 133, in init_logger
    resetlocale()
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/tools/translate.py", line 1201, in resetlocale
    for ln in get_locales():
  File "/Users/Zubaer/.odoo.env/odoo/odoo/odoo/tools/translate.py", line 1170, in get_locales
    lang = locale.getdefaultlocale()[0]
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 568, in getdefaultlocale
    return _parse_localename(localename)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 495, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

1 个答案:

答案 0 :(得分:1)

尝试将以下内容导出到您的〜/ .bash_profile。

export LC_ALL = zh_CN.UTF-8

export LANG = zh_CN.UTF-8