Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13] Odoo incompatible with Python 3.8 #40303

Closed
grzekru opened this issue Nov 14, 2019 · 2 comments
Closed

[13] Odoo incompatible with Python 3.8 #40303

grzekru opened this issue Nov 14, 2019 · 2 comments

Comments

@grzekru
Copy link
Contributor

grzekru commented Nov 14, 2019

Impacted versions:

Odoo 13
Python 3.8
Tested on Arch Linux and Debian, default python version on arch linux, and compiled from source on Debian

Steps to reproduce:

Run odoo using python 3.8

Current behavior:

Traceback (most recent call last):
  File "/home/gk/odoo/odoo/addons/base/models/qweb.py", line 314, in compile
    unsafe_eval(compile(astmod, '<template>', 'exec'), ns)
TypeError: required field "posonlyargs" missing from arguments

Error when compiling AST
TypeError: required field "posonlyargs" missing from arguments
Template: web.webclient_bootstrap
Path: /t/t/t[3]
Node: <t t-set="body_classname" t-value="'o_web_client'"/> - - -

Expected behavior:

Odoo works with newest stable python release

@pedrobaeza
Copy link
Collaborator

Duplicate of #40232

No P3.8 compatibility yet, so closing.

@tanvirahmedkhan74
Copy link

It took me sometimes but i was able to run it with python 3.8

I changed the requirment.txt file a bit, And watch my github link -

https://github.com/tanvirahmedkhan74/Installing-Odoo13-on-Ubuntu20.04-with-Python-3.8.git

Replace the requirments.txt file with the given one on the github

AdanCortes added a commit to AdanCortes/odoo that referenced this issue Sep 22, 2020
…"posonlyargs" missing from arguments when running with Python 3.8 and above.

Python 3.8 introduced a new *mandatory* argument "posonlyargs" when creating ast.arguments instances (See https://greentreesnakes.readthedocs.io/en/latest/nodes.html#arguments)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants