安装odoo12社区后,我收到导入错误

时间:2019-11-22 05:42:04

标签: odoo python-3.5 odoo-12

https://www.odoo.yenthevg.com/installing-odoo-12-enterprise-ubuntu/在Ubuntu 16.04中安装Odoo 12社区之后

我遇到以下错误:

Traceback (most recent call last):
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo-bin", line 5, in <module>
    import odoo
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo/__init__.py", line 89, in <module>
    from . import modules
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo/modules/__init__.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo/modules/graph.py", line 10, in <module>
    import odoo.tools as tools
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo/tools/__init__.py", line 8, in <module>
    from .config import config
  File "/home/odoodev/NewOdoo12e/odoo_12.0+e.latest_all/data/usr/lib/python3/dist-packages/odoo/tools/config.py", line 18, in <module>
    from passlib.context import CryptContext
  File "/usr/local/lib/python3.5/dist-packages/passlib/context.py", line 20, in <module>
    from passlib.registry import get_crypt_handler, _validate_handler_name
  File "/usr/local/lib/python3.5/dist-packages/passlib/registry.py", line 11, in <module>
    from passlib.utils import is_crypt_handler
  File "/usr/local/lib/python3.5/dist-packages/passlib/utils/__init__.py", line 32, in <module>
    from passlib.utils.compat import add_doc, b, bytes, join_bytes, join_byte_values, \
ImportError: cannot import name 'b'

我已经拥有Odoo 12 Enterprise版本,但是在安装Odoo 12 Community之后,在Odoo 12 Enterprise中也出现了相同的错误。

1 个答案:

答案 0 :(得分:1)

请尝试这个。

sudo pip3 install passlib==1.6.5

sudo -H pip3 install --upgrade pip

sudo -H pip3 install pipenv