Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
7922 มุมมอง

I am trying to install odoo12 enterprise version on ubuntu18.  

I have the deb file, and using gdebi to install the package.

But installation fails with the error

 dpkg: dependency problems prevent configuration of odoo:

 odoo depends on python3-psycopg2; however:

 Package python3-psycopg2 is not installed.

I have tried installing psycopg2.8.5, 2.8.3, 2.7.7 and 2.7.3.1  manually using pip3 install. But with all these , I am getting the same error.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Install it using the following command

apt-get install python3-psycopg2

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I ran the below command before installing from req.txt. In odoo14 it solved my problem.

pip install --upgrade wheel

อวตาร
ละทิ้ง

Hello, I tried the pip install --upgrade wheel but it's not working for me in Odoo 12. I'm installing report_xlsx module but it always says:

psycopg2.ProgrammingError: can't adapt type 'dict'

Is there any solution for this?

ผู้เขียน คำตอบที่ดีที่สุด


อวตาร
ละทิ้ง

Check which repository is being used by linux. Here's a link to a similar issue that was fixed by pointing to the correct linux repository.

https://askubuntu.com/a/1087132

ผู้เขียน คำตอบที่ดีที่สุด

@Paresh Wagh    I have tried that too. But getting an error like 

python3-psycopg2 : Depends: python3 (< 3.6) but 3.6.7-1~18.04 is to be installed

My python version is 3.6.9

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
how to install sassc? แก้ไขแล้ว
12
ก.ค. 24
78747
2
พ.ค. 19
3179
1
พ.ย. 20
22042
9
ม.ค. 20
11394
8
พ.ค. 24
48486