Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Error trying to run Odoo 17 with Python 3.12.

Naroči se

Get notified when there's activity on this post

This question has been flagged
pythonpostgresqlodoo17
2 Odgovori
2825 Prikazi
Avatar
Abdulrhman Atassi

I’m encountering an issue while trying to run Odoo 17 with Python 3.12. The error occurs when executing the odoo-bin command with the configuration file odoo.conf. The traceback indicates a problem with loading a shared library required by psycopg2.

/Users/abdulrhman/PycharmProjects/odoo17/pythonProject/.venv/bin/python /Users/abdulrhman/PycharmProjects/odoo17/pythonProject/odoo17/odoo-bin -C odoo.conf 
Traceback (most recent call last):
  File "/Users/abdulrhman/PycharmProjects/odoo17/pythonProject/odoo17/odoo-bin", line 5, in
    import odoo
  File "/Users/abdulrhman/PycharmProjects/odoo17/pythonProject/odoo17/odoo/_psycopg.cpython-312-darwin.so
  Reason: no LC_RPATH's found

Process finished with exit code 1

Context:

  • Python Version: 3.12
  • Odoo Version: 17
  • Operating System: macOS (Darwin)
  • Environment: Virtual environment created with Python 3.12
0
Avatar
Opusti
Avatar
Kunjan Patel
Best Answer
Hello Abdulrhman Atassi,
I hope you are doing well

Fix psycopg2 Error (Odoo 17 + macOS)

1. Quick fix: pip uninstall psycopg2 && pip install psycopg2-binary
2. link PostgreSQL: brew install postgresql@15 then add 
export DYLD_LIBRARY_PATH="/opt/homebrew/opt/postgresql@15/lib" to ~/.zshrc
3. Best solution: Use Python 3.11 instead of 3.12 - Odoo 17 has compatibility issues with Python 3.12
4. Create new venv: python3.11 -m venv .venv && source .venv/bin/activate
5. Reinstall dependencies: pip install -r requirements.txt
6. Then run Odoo: python odoo-bin -c odoo.conf

I hope this information helps you

Thanks & Regards,
Kunjan Patel
0
Avatar
Opusti
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,


Odoo 17 is not compatible with Python 3.12, it officially supports only Python 3.10 and 3.11, so installing it in a 3.12 virtualenv causes binary extensions to fail.

This is not an Odoo bug - it is a Python version mismatch between Odoo’s dependencies and the Python interpreter you are using.

To fix it, reinstall your environment using Python 3.10 or 3.11, create a new virtual environment, and reinstall all Odoo requirements.

After switching to a supported Python version, psycopg2 loads normally and Odoo 17 starts without errors.

Trying to force psycopg3 or compile psycopg2 manually on Python 3.12 is unstable and not recommended - using the correct Python version is the proper solution.


Hope it helps.

0
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Related Posts Odgovori Prikazi Aktivnost
modulo no crea tabla en postgresql odoo 17
python postgresql
Avatar
Avatar
Avatar
2
maj 24
2372
Error On Change Method
python postgresql
Avatar
Avatar
Avatar
2
mar. 15
6776
Log out session Odoo 17
community python odoo17
Avatar
Avatar
Avatar
2
jun. 25
3504
i want write a script that when i select table name the related column name of the table is show in the drop down in odoo Solved
python postgresql odoo16features
Avatar
Avatar
1
mar. 23
3161
Trying to get manufacturer,(partner name) getting TypeError: string indices must be integers
v8 python postgresql
Avatar
0
mar. 15
6106
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now