我试图在我的macOS上安装Odoo。但是,当我尝试在Eclipse中运行odoo-bin文件时,它显示为 ValueError:未知语言环境:UTF-8 。但是使用终端可以正常工作。我也试过了,但没有为日食工作。
sr/local/lib/python3.7/site-packages/psycopg2/__init__.py:144:
UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
Traceback (most recent call last):
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo-bin", line 8, in <module>
odoo.cli.main()
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo/cli/command.py", line 60, in main
o.run(args)
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo__WorkSpace/odoo_v12/odoo/odoo/cli/server.py", line 176, in run
main(args)
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo__WorkSpace/odoo_v12/odoo/odoo/cli/server.py", line 124, in main
odoo.tools.config.parse_config(args)
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo/tools/config.py", line 344, in parse_config
odoo.netsvc.init_logger()
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo/netsvc.py", line 134, in init_logger
resetlocale()
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo/tools/translate.py", line 1204, in resetlocale
for ln in get_locales():
File "/Users/harshittrivedi/Desktop/Odoo_Ec_Worksplace/Odoo_WorkSpace/odoo_v12/odoo/odoo/tools/translate.py", line 1173, in get_locales
lang = locale.getdefaultlocale()[0]
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/locale.py", line 568, in getdefaultlocale
return _parse_localename(localename)
File "/usr/local/Cellar/python/3.7.4/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
也尝试过
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8