Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Error trying to run Odoo 17 with Python 3.12.

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pythonpostgresqlodoo17
2 Respostes
5104 Vistes
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
Descartar
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
Descartar
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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
modulo no crea tabla en postgresql odoo 17
python postgresql
Avatar
Avatar
Avatar
2
de maig 24
3488
Error On Change Method
python postgresql
Avatar
Avatar
Avatar
2
de març 15
7797
Log out session Odoo 17
community python odoo17
Avatar
Avatar
Avatar
2
de juny 25
5182
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
de març 23
4019
Trying to get manufacturer,(partner name) getting TypeError: string indices must be integers
v8 python postgresql
Avatar
0
de març 15
7091
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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