تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
13 الردود
9123 أدوات العرض

Hey i installed odoo12 on my system and is giving me this error  ValueError: Name node can't be used with 'None' constant. I dont know whats wrong with it as i have tried it two three times using linuxize blog and cybrosis blog but after resolvinf all the dependencies issue i get stuck here, Kindly help

الصورة الرمزية
إهمال

Hi, this is the issue with python 3.8 i think, try with python version below 3.8

الكاتب

Hey niyas i am using this command

sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less

and i think python 3 fetches the latest version. can you tell me how to specify the version here?

أفضل إجابة

Issue is with Python 3.8 ,Need to downgrade python to version 3.6 or above, as previous versions are not compatible with Odoo.12

https://gist.github.com/asadlive84/f1885edfc62c767a67807ca4b132cfee

الصورة الرمزية
إهمال
الكاتب

sir i tried it and now in pycharm i am setting 3.7 in preference but still python 3.8 is getting the preference and m getting error

أفضل إجابة

If you are installing in virtualenv, you can create your virtualenv with Python version below 3.8.4. The issue is with version 3.8.4 and above.

For an OS with Python 3.8.5 like Ubuntu, you can update your install with the latest nightly build for Odoo 12 which works with newer versions of Python 3.8 to fix your Odoo installation. No need for any database migrations.

https://nightly.odoo.com/12.0/nightly/src/


الصورة الرمزية
إهمال

The patch is only for v13 and not for the v12.

Yeah, but the changes are very similar on 12 if you are directly editing.

أفضل إجابة

Hello Abdullah
You are getting issue because of python version 3.8,so you need to downgrade your python version to 3.5 or 3.6 and set it to default version.

This artical will help you to downgrade and set default to python version 3.5.
https://hackersandslackers.com/multiple-versions-python-ubuntu/

Thanks and regards

الصورة الرمزية
إهمال
أفضل إجابة

@Abdullah

Use conda environment with odoo, You can install specific python version and needed dependencies in a isolated environment.

Thanks

الصورة الرمزية
إهمال
الكاتب

i am using conda 3.8 for data science but how can i use it for odoo env?

أفضل إجابة

Same problem here 

https://www.odoo.com/forum/help-1/question/can-t-log-in-to-odoo-11-database-odoo-addons-base-ir-ir-qweb-qweb-qwebexception-177793

And the solution is to downgrade python from 3.8 to 3.5

الصورة الرمزية
إهمال
الكاتب

Thanks for replying sir can u please tell how to do that because while installation we do not specify python version and when we install python3-pip it automatically fetches the latest version

@Abdullah

I hope this article helps you

https://hackersandslackers.com/multiple-versions-python-ubuntu/

And then I suggest you to use virtualenv with the specific python's version

like : virtualenv -p /usr/bin/python3.6 venv

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
ديسمبر 22
3632
12
يوليو 24
78755
2
أبريل 20
4557
1
أبريل 20
3532
2
سبتمبر 19
9122