Technical mailing list archives


Re: Start Odoo community version 11

- 2018年08月01日 14时09分57秒
Yes, it is the problem of Python version. I solved it. Thanks a lot! 

On Tue, Jul 31, 2018 at 8:58 PM, Tom Luo <> wrote:
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/", line 84, in <module>
    from . import modules
  File "/var/www/odoo/odoo/odoo/modules/", line 8, in <module>
    from . import db, graph, loading, migration, module, registry
  File "/var/www/odoo/odoo/odoo/modules/", line 10, in <module>
    import as tools
  File "/var/www/odoo/odoo/odoo/tools/", line 10, in <module>
    from .convert import *
  File "/var/www/odoo/odoo/odoo/tools/", line 22, in <module>
    from .yaml_import import convert_yaml_import
  File "/var/www/odoo/odoo/odoo/tools/", line 23, in <module>
    from .safe_eval import safe_eval
  File "/var/www/odoo/odoo/odoo/tools/", line 21, in <module>
    from psycopg2 import OperationalError
  File "/usr/lib/python3/dist-packages/psycopg2/", line 104
    connection_factory=None, cursor_factory=None, async=False, **kwargs):
SyntaxError: invalid syntax

Does anyone here know why?


Tom Luo