Skip to Content
Menu
This question has been flagged
1 Reply
26312 Views

fisrt install Odoo 12

/opt/odoo/odoo$ ./odoo-bin

/opt/odoo/odoo/odoo/tools/misc.py:1151: SyntaxWarning: "is not" with a literal. Did you mean "!="?

  if not digits and digits is not 0:

Traceback (most recent call last):

  File "./odoo-bin", line 5, in <module>

    import odoo

  File "/opt/odoo/odoo/odoo/__init__.py", line 125, in <module>

    from . import modules

  File "/opt/odoo/odoo/odoo/modules/__init__.py", line 8, in <module>

    from . import db, graph, loading, migration, module, registry

  File "/opt/odoo/odoo/odoo/modules/graph.py", line 10, in <module>

    import odoo.tools as tools

  File "/opt/odoo/odoo/odoo/tools/__init__.py", line 9, in <module>

    from .misc import *

  File "/opt/odoo/odoo/odoo/tools/misc.py", line 30, in <module>

    from lxml import etree

ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3/dist-packages/lxml/__init__.py)

Avatar
Discard
Best Answer

Hello Herry,

First can you please update your requirement.txt file. 

To update requirement :- sudo python3 -m pip install --upgrade --force-reinstall -r requirements.txt

Can you please check the library version/updates , you can refer below 2 links :- 

1. https://stackoverflow.com/questions/53406638/importerror-cannot-import-name-etree-on-python-3-6

2. https://stackoverflow.com/questions/16296050/error-using-etree-in-lxml/27187436

Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Discard