Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Error trying to run Odoo 17 with Python 3.12.

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
pythonpostgresqlodoo17
2 Replies
3959 Tampilan
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
Buang
Avatar
Kunjan Patel
Jawaban Terbai
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
Buang
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Jawaban Terbai

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
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
modulo no crea tabla en postgresql odoo 17
python postgresql
Avatar
Avatar
Avatar
2
Mei 24
2770
Error On Change Method
python postgresql
Avatar
Avatar
Avatar
2
Mar 15
7133
Log out session Odoo 17
community python odoo17
Avatar
Avatar
Avatar
2
Jun 25
4262
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 Diselesaikan
python postgresql odoo16features
Avatar
Avatar
1
Mar 23
3496
Trying to get manufacturer,(partner name) getting TypeError: string indices must be integers
v8 python postgresql
Avatar
0
Mar 15
6502
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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