콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5111 화면

I am running odoo17 CE on windows 11 with PyCharm. I have installed all the requirements.

The below packages i downgraded from the latest version just to check the result:

"Werkzeug==2.0.2
"Jinja2==3.1.2

The below is last trace: 

 

"File "-----odoo17\odoo\addons\base\models\ir_qweb.py", line 765, in _generate_code
    raise QWebException("Error occurred while compiling the xml template",
odoo.addons.base.models.ir_qweb.QWebException: Error occurred while compiling the xml template
ValueError: forbidden opcode(s) found in 'True': RETURN_CONST
Template: database_manager
Path: /html/body/div/div[4]/div/div/form/div[1]/t[1]
Node:

아바타
취소

Please try with Jinja2==2.11.3.

작성자

Hi Kaushik,
Thank you for your quick response.
I uninstalled Jinja2, and installed Jina2==2.11.3

The below import error is shown:
File "C:\Program Files\Python312\Lib\site-packages\jinja2\filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Program Files\Python312\Lib\site-packages\markupsafe\__init__.py)

작성자 베스트 답변

When Odoo encounters a False expression during evaluation, it may throw a forbidden opcode error (from safe_eval.py) due to the newly introduced opcode in Python 3.12: RETURN_CONST. To resolve this issue, you can consider downgrading the Python version to 3.11. 

Thank you to everyone for your valuable support and guidance.

아바타
취소
관련 게시물 답글 화면 활동
4
5월 25
2048
2
5월 25
5357
1
3월 25
1297
4
3월 25
4077
3
2월 25
4985