Odoo 14 and python 3.10.9

speedup your buisness
 

Why python 3.10.9

3.11.3 not started((

My odoo community 14 instance worked on python 3.7.7 and there were no problems, but as we know python is improving and accelerating, so I decided what if I use the new version. I tried 3.11.3 and 3.10.9, these are the two latest versions of 11 and 10 releases. But for some reason 3.11 didn't start, it looks like it's not supported on odoo 14 and 15 because https://github.com/odoo/odoo/blob/16.0/odoo/tools/safe_eval .py has not been changed for 14 and 15. I tried to copy this file to odoo 14, but it doesn't work, because it also most likely needs to change part of the rendering of qweb, and I think it won't work with python 3.11 without many changes in the kernel code. 

How migrate to 3.10.9

Freeze old package

I made a freeze of my packages with the command:
D:\odoo\python>python.exe -m pip freeze > requirements2.txt
And then compiled a list based on python 3.10.9
correspondences and here is my file
(it contains a few extra libs for my site)
but in general it is very informative and working.
Next , I installed all these modules with the command :
D:\Python\Python310>python.exe -m pip install -r requirements2.txt

That's all. After
that I just replaced the path to odoo in my server since I work
in windows I did this and restart service
D:\odoo\nssm\win64>nssm.exe edit odoo-server-14.0-fast

Now my odoo 14 work on python 3.10.9:)


and...my end requirements2.txt

Babel==2.9.1

cachetools==4.2.2

chardet==3.0.4
cryptography==40.0.2
cssselect==1.1.0
decorator==4.3.0
docutils==0.14
docxtpl==0.11.3
ebaysdk==2.1.5
freezegun==0.3.15
gast==0.2.2
geojson==2.5.0
gevent==21.8.0
google-api-core==2.10.2
google-api-python-client==2.65.0
google-auth==2.14.0
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.7.1
google-pasta==0.2.0
googleapis-common-protos==1.56.4
greenlet==1.1.2
idna==2.6
Jinja2==3.1.2
libsass==0.20.1
lxml==4.6.5
num2words==0.5.6
numpy==1.23.5
ofxparse==0.21
opencv-python==4.7.0.72
openpyxl==3.0.7
passlib==1.7.4
Pillow==9.0.1
polib==1.1.0
protobuf==4.21.9
psutil==5.8.0
psycopg2==2.9.5
pydot==1.4.2
pyOpenSSL==21.0.0
PyPDF2==1.26.0
pyproj==3.5.0
pyserial==3.5
pytesseract==0.3.8
python-dateutil==2.8.1
python-stdnum==1.16
pytz==2023.3
pyusb==1.0.2
qrcode==6.1
reportlab==3.5.59
requests==2.25.1
rsa==4.9
scipy==1.10.1
Shapely==2.0.1
simplejson==3.19.1
six==1.15.0
soupsieve==2.0.1
sqlite-bro==0.9.1
tensorflow==2.12.0
termcolor==1.1.0
toml==0.10.2
tqdm==4.60.0
typing-extensions==3.7.4.3
uritemplate==4.1.1
urllib3==1.26.5
vobject==0.9.6.1
watchdog==1.0.2
webp==0.1.6
Werkzeug==2.3.4
wrapt==1.12.1
xlrd==1.2.0
XlsxWriter==1.1.2
xlwt==1.3.0
zeep==4.0.0
pywin32
pdf2image
html2text

Sign in to leave a comment
Migrate code 16 to 17.
Technical details.