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

Odoo V 11.0

Ubunutu 16.04

----

Error:

Uncaught SyntaxError: Unexpected token T in JSON at position 0

http://localhost/web#view_type=pivot&model=report.project.task.user&menu_id=134&action=186:1

Traceback:

SyntaxError: Unexpected token T in JSON at position 0

at JSON.parse (<anonymous>)

at HTMLIFrameElement.<anonymous> (http://localhost/web/content/733-f442617/web.assets_common.js:3848:379)

at HTMLIFrameElement.dispatch (http://localhost/web/content/733-f442617/web.assets_common.js:892:451)

at HTMLIFrameElement.elemData.handle (http://localhost/web/content/733-f442617/web.assets_common.js:865:173)

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

Solved:

cd /opt/odoo

sudo pip3 install -r requirements.txt

คำตอบที่ดีที่สุด


Ensure that all Xls dependencies are installed. Such as XlsxWriter,  xlwt, xlrd  etc


Thanks !


iWesabe


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

Is there a list of such dependencies somewhere - so that one can install them all in one go?

~# pip install -r requirements.txt

ผู้เขียน

Successfully installed PyPDF2-1.26.0 PyYAML-3.12 Werkzeug-0.11.11 XlsxWriter-0.9.3 pyldap-2.4.28 pyserial-3.1.1 python-dateutil-2.5.3 python-stdnum-1.8.1 pyusb-1.0.0 qrcode-5.3 reportlab-3.3.0 suds-jurko-0.6 vatnumber-1.2 vobject-0.9.3 xlrd-1.0.0 xlwt-1.3.0

The error still persists...

ผู้เขียน

Solved it - using "pip3 install -r requirements.txt" instead of "pip install -r requirements.txt"

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 23
3
2
ก.พ. 24
1368
0
ม.ค. 22
4083
0
ต.ค. 23
5
0
ก.พ. 22
45