gpt4 book ai didi

python - Odoo12 ./odoo-bin run ,第一次安装 OSX Traceback (最近一次调用最后一次) : File "./odoo-bin",

转载 作者:行者123 更新时间:2023-12-01 07:57:44 25 4
gpt4 key购买 nike

这是我第一次使用 Odoo,我使用 MacOS。 Python 3.7 和 Odoo12。我按照步骤操作,安装 pip3 install -rrequirements.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

最佳答案

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

导出 LC_ALL=en_US.UTF-8

导出 LANG=en_US.UTF-8

关于python - Odoo12 ./odoo-bin run ,第一次安装 OSX Traceback (最近一次调用最后一次) : File "./odoo-bin",,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55880420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com