Lädt...


🔧 Install Odoo v 17 with Python 3.12 in MSWindows 11


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

If you're looking to set up Odoo 17 on a Windows 11 system with Python 3.12, you might face a few compatibility challenges with dependencies. This guide provides a custom requirements.txt tailored specifically for this configuration, along with solutions for common issues during installation.

Custom requirements.txt for Windows 11 with Python 3.12

Below is the custom requirements.txt file that ensures Odoo 17 works seamlessly on Windows 11 with Python 3.12. This file includes compatible versions of required packages and handles Windows-specific dependencies.

`# Windows 11 Compatible Requirements for Python 3.12

Babel==2.10.3

chardet==5.2.0

cryptography==42.0.8

decorator==5.1.1

docutils==0.20.1

ebaysdk==2.1.5

freezegun==1.2.1

geoip2==2.9.0

gevent==24.2.1 ; sys_platform == 'win32'

greenlet==3.0.3 ; sys_platform == 'win32'

idna==3.6

Jinja2==3.1.2

libsass==0.22.0 ; sys_platform == 'win32' # Prebuilt wheel available

lxml==5.2.1

lxml-html-clean ; python_version >= '3.12' # Required for HTML clean in Windows

MarkupSafe==2.1.5

num2words==0.5.13

ofxparse==0.21

passlib==1.7.4

Pillow==10.2.0

polib==1.1.1

psutil==5.9.8

psycopg2==2.9.9 ; sys_platform == 'win32'

pydot==1.4.2

pyopenssl==24.1.0

PyPDF2==2.12.1

pypiwin32 ; sys_platform == 'win32'

pyserial==3.5

python-dateutil==2.8.2

python-ldap==3.4.4 ; sys_platform == 'win32' # Prebuilt wheel required

python-stdnum==1.19

pytz

pyusb==1.2.1

qrcode==7.4.2

reportlab==4.1.0

requests==2.31.0

rjsmin==1.2.0

rl-renderPM==4.0.3 ; sys_platform == 'win32' # Needed by reportlab

urllib3==2.0.7

vobject==0.9.6.1

Werkzeug==3.0.1

xlrd==2.0.1

XlsxWriter==3.1.9

xlwt==1.3.0

zeep==4.2.1
`

Handling Common Installation Issues

When installing the dependencies in the requirements.txt, you might encounter the following error :

running build_ext
building '_ldap' extension
creating build\temp.win-amd64-cpython-312\Release\Modules
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DL

This error typically occurs due to missing precompiled wheels for certain dependencies, such as python-ldap. Building these dependencies from source requires additional setup, but you can bypass the issue by downloading prebuilt wheels.

Solution: Install Prebuilt Wheels

For Windows, prebuilt wheels can simplify the installation process significantly. Use the following steps to resolve the issue:

Download Prebuilt Wheel:

Go to the GitHub repository https://github.com/mymy47/python-builds-for-windows/releases.

Download the appropriate wheel file for python-ldap or any other dependency causing the issue.

Install the Wheel:

Use pip to install the wheel manually:

pip install path_to_downloaded_wheel.whl
Continue Installing Dependencies:

Once the problematic dependency is resolved, install the remaining packages:

pip install -r requirements.txt

...

🔧 Install Odoo v 17 with Python 3.12 in MSWindows 11


📈 66.23 Punkte
🔧 Programmierung

🕵️ Low CVE-2019-11782: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Medium CVE-2017-5871: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2019-11785: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2019-11783: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2019-11786: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2019-11784: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ High CVE-2018-15632: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-15633: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-15641: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-15638: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-15634: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Medium CVE-2018-14733: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-14861: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Medium CVE-2018-14862: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🔧 (Odoo Series) - #1. Simple Odoo Development on Ubuntu Desktop


📈 33.87 Punkte
🔧 Programmierung

🕵️ Medium CVE-2018-14863: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🔧 Odoo : Choosing Between `related` and `compute` Attributes in Odoo Models


📈 33.87 Punkte
🔧 Programmierung

🕵️ Medium CVE-2020-29396: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-14864: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-15645: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

🕵️ Low CVE-2018-14865: ODOO ODOO


📈 33.87 Punkte
🕵️ Sicherheitslücken

📰 How to Install Odoo 17 on Ubuntu 24.04


📈 22.83 Punkte
🐧 Unix Server

🔧 Install multiple modules in Odoo using command line


📈 22.83 Punkte
🔧 Programmierung

🐧 How to Install Odoo 15 on Linux Mint 21


📈 22.83 Punkte
🐧 Linux Tipps

🐧 How To Install Odoo 13 on Ubuntu 18.04 (Work for Linux too )


📈 22.83 Punkte
🐧 Linux Tipps

🔧 Odoo Report : using python instead of View | Group By and Filter


📈 22.01 Punkte
🔧 Programmierung

🔧 Odoo 17 code examples


📈 16.94 Punkte
🔧 Programmierung

💾 Odoo 12.0.20190101 Unquoted Service Path


📈 16.94 Punkte
💾 IT Security Tools

matomo