[英]Odoo13 error after installation on mac mojave
I get the following error on odoo 13 startup after fresh installation on mojave.在 mojave 上全新安装后,我在 odoo 13 启动时收到以下错误。
brew fresh install of python, virtualenv, and $PATH is correct brew 全新安装 python、virtualenv 和 $PATH 是正确的
Traceback (most recent call last):
File "/usr/local/bin/odoo", line 4, in <module>
__import__('pkg_resources').run_script('odoo==13.0.post20191002', 'odoo')
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1462, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/EGG-INFO/scripts/odoo", line 5, in <module>
import odoo
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/odoo/__init__.py", line 108, in <module>
from . import modules
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/odoo/modules/__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/odoo/modules/graph.py", line 10, in <module>
import odoo.tools as tools
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/odoo/tools/__init__.py", line 13, in <module>
from .sql import *
File "/usr/local/lib/python3.7/site-packages/odoo-13.0.post20191002-py3.7.egg/odoo/tools/sql.py", line 5, in <module>
import psycopg2
File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 50, in <module>
from psycopg2._psycopg import ( # noqa
ImportError: dlopen(/usr/local/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so, 2): Library not loaded: libssl.1.0.0.dylib
Referenced from: /usr/local/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so
Reason: image not found
server does not start.服务器没有启动。
After some trial and error, I was able to get it to work.经过一些试验和错误,我能够让它工作。 I had installed the dependencies psycopg2 and werkzeug in /usr/local/lib/python3.7/site-packages/ but the virtualenv in odoo does not recognize that for some reason.我已经在 /usr/local/lib/python3.7/site-packages/ 中安装了依赖项 psycopg2 和 werkzeug,但 odoo 中的 virtualenv 由于某种原因无法识别。 The solution is to run pip to install these dependencies in the virtualenv for odoo.解决方案是运行 pip 以在 odoo 的 virtualenv 中安装这些依赖项。
Just make sure that you have created a db with a user and a pwd before you run odoo for the first time.在第一次运行 odoo 之前,请确保您已经创建了一个包含用户和密码的数据库。 Then you can run odoo and initialize the DB with the following cmd:然后您可以运行 odoo 并使用以下 cmd 初始化 DB:
odoo -i base -d dbname -r dbusername -w dbpwd odoo -i base -d dbname -r dbusername -w dbpwd
and voila!瞧! You have odoo 13 running on mojave!你有 odoo 13 在 mojave 上运行!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.