Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
13300 มุมมอง

Hello everybody!!

Need your help  please.

When i want to start the service odoo i got this error:

root@rihano-SATELLITE-L850-1X4:/opt/odoo/odoo# ./odoo-bin 

Traceback (most recent call last):

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

    import odoo

  File "/opt/odoo/odoo/odoo/__init__.py", line 84, 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 29, in <module>

    from lxml import etree

ImportError: cannot import name 'etree'

Would anyone help me.
Thanks a lot in advance.
Best regards.    
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

hello 

install using below command

=> sudo apt-get install python3-lxml

or
install the requirements.txt file so it will take automatically the package version as your needs.
=> sudo pip3 install -r requirements.txt
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Are all the dependencies for Odoo installed?

Try:

sudo apt-get install python-lxml

If this library is not installed, check which others are also not installed before proceeding.

https://github.com/odoo/odoo/blob/11.0/requirements.txt

อวตาร
ละทิ้ง
ผู้เขียน

i have two versions of python 2.7 and 3.5 and i think thats the big prblem bacause when i run odoo11 i use python3.5 and when i install i use python2.7.5 would you help please

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 24
2621
1
มิ.ย. 24
5092
1
ต.ค. 23
10781
1
ต.ค. 23
98
413 Request Entity Too Large แก้ไขแล้ว
1
ส.ค. 23
2193