Technical mailing list archives

technical@mail.odoo.com

Avatar

Start Odoo community version 11

by
mariolzx@gmail.com
- 2018年07月31日 20时58分43秒
Hi, all,

I just installed all requirements. Then, when I run

sudo python3 odoo-bin -w odoo -r odoo --addons-path=addons,../mymodules --db-filter=mydb$


I saw:

Traceback (most recent call last):
  File "odoo-bin", line 5, in <module>
    import odoo
  File "/var/www/odoo/odoo/odoo/__init__.py", line 84, in <module>
    from . import modules
  File "/var/www/odoo/odoo/odoo/modules/__init__.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/var/www/odoo/odoo/odoo/modules/graph.py", line 10, in <module>
    import odoo.tools as tools
  File "/var/www/odoo/odoo/odoo/tools/__init__.py", line 10, in <module>
    from .convert import *
  File "/var/www/odoo/odoo/odoo/tools/convert.py", line 22, in <module>
    from .yaml_import import convert_yaml_import
  File "/var/www/odoo/odoo/odoo/tools/yaml_import.py", line 23, in <module>
    from .safe_eval import safe_eval
  File "/var/www/odoo/odoo/odoo/tools/safe_eval.py", line 21, in <module>
    from psycopg2 import OperationalError
  File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 104
    connection_factory=None, cursor_factory=None, async=False, **kwargs):
                                                      ^
SyntaxError: invalid syntax


Does anyone here know why?

Thanks,

Tom Luo

Follow-Ups