hey fdlim
install psycopg2 module in python dist-package
if you are using linux then just
sudo apt-get install python-psycopg2
from your system root:
Thanks
Sandeep Answer from ClueLogics Technologies Pvt. Ltd. on odoo.com
Top answer 1 of 4
6
hey fdlim
install psycopg2 module in python dist-package
if you are using linux then just
sudo apt-get install python-psycopg2
from your system root:
Thanks
Sandeep
2 of 4
1
this working ...
sudo apt-get install libpq-dev
pip install psycopg2
sudo apt-get install build-dep python-psycopg2
pip3 install psycopg2
ImportError: No module named psycopg2
Im trying to debug OpenERP v.7 in Eclipse in Windows Environment When execute openerp-server in Debug mode it throws below error: pydev debugger: starting Traceback (most recent call last): File "D:\eclipse\plugins\org.python.pydev_2.8.2.2013090511\pysrc\pydevd.py", line 1446, in ... More on odoo.com
Psycopg2 error when starting service for running Odoo on Ubuntu Linux
What error code? Try to check versions of packets. It must be the same as requirements.txt. Or try to down grade packets version. Read log file. More on reddit.com
python - ImportError: No module named psycopg2 - Stack Overflow
In installation process of OpenERP 6, I want to generate a config file with these commands: cd /home/openerp/openerp-server/bin/ ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-s... More on stackoverflow.com
Error while install requirement for odoo17 "psycopg2"
ubuntu@ip-172-26-11-98:/opt/odoo17$ sudo systemctl status odoo17.service ● odoo17.service - Odoo17 Loaded: loaded (/etc/systemd/system/odoo17.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2024-04-17 13:06:11 IST; 5s ago Docs: db.py [1] ", line 4, in ... More on odoo.com
Videos
Top answer 1 of 6
3
I remember I've fixed this issue by uninstalling psycopg2 and installing the *binary* one
you can install it using these commands
*sudo pip uninstall psycopg2 *
*pip install psycopg2-binary*
using Pycharm interface :
*1-Ctrl+alt+s *
*2-search interpreter*
*3-on the right side of the window click on +*
*4-search psycopg2-binary and click install*
if you still have the same problem make sure that you are using your* system interpreter* and not your virtualenv interpreter if you have installed
2 of 6
1
this working ...
sudo apt-get install libpq-dev
pip install psycopg2
sudo apt-get install build-dep python-psycopg2
pip3 install psycopg2
Top answer 1 of 3
1
You need to install the psycopg2 module.
On Ubuntu:
$ sudo apt-get install python3-pip python-distribute python-dev
$ easy_install psycopg2
Site: http://initd.org/psycopg/install/ [1]
[1] http://initd.org/psycopg/install/
2 of 3
1
this working ...
sudo apt-get install libpq-dev
pip install psycopg2
sudo apt-get install build-dep python-psycopg2
pip3 install psycopg2
Reddit
reddit.com › r/odoo › psycopg2 error when starting service for running odoo on ubuntu linux
r/Odoo on Reddit: Psycopg2 error when starting service for running Odoo on Ubuntu Linux
June 12, 2024 -
I got an error saying "modulenotfounderror no module named 'psycopg2' linux" when starting a service to run Odoo on Ubuntu Linux hosted on Azure VM. I wasn't able to resolve this error despite sitting on it for hours. Anyone faced similar issue?
Top answer 1 of 16
222
Step 1: Install the dependencies
sudo apt-get install build-dep python-psycopg2
Step 2: Run this command in your virtualenv
pip install psycopg2-binary
Ref: Fernando Munoz
2 of 16
124
Use psycopg2-binary instead of psycopg2.
pip install psycopg2-binary
Or you will get the warning below:
UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi.
Reference: Psycopg 2.7.4 released | Psycopg
Odoo
odoo.com › forum › help-1 › error-while-install-requirement-for-odoo17-psycopg2-250202
Error while install requirement for odoo17 "psycopg2" | Odoo
April 17, 2024 - i already ran this command "pip install psycopg2-binary" Requirements already satisfied but the odoo cant run.. while run odoo status command · "ModuleNotFoundError: No module named 'psycopg2._psycopg'" in my local machine dont have any problem while installing odoo17 i am facing problem in aws ubuntu.
Odoo
odoo.com › forum › help-1 › cant-run-source-code-of-odoo-on-windows-10-x64-get-this-error-modulenotfounderror-no-module-named-psycopg2-143341
Can't run source code of Odoo on Windows 10 x64 get this error (ModuleNotFoundError: No module named 'psycopg2') | Odoo
python odoo-bin -w odoo -r odoo --addons-path=addons,../mymodules --db-filter=mydb$ Traceback (most recent call last): File "odoo-bin", line 5, in <module> import odoo File "D:\Projects\Personal\odoo\odoo\__init__.py", line 89, in <module> from . import modules File "D:\Projects\Personal\odoo\odoo\modules\__init__.py", line 8, in <module> from . import db, graph, loading, migration, module, registry File "D:\Projects\Personal\odoo\odoo\modules\graph.py", line 10, in <module> import odoo.tools as tools File "D:\Projects\Personal\odoo\odoo\tools\__init__.py", line 10, in <module> from .convert import * File "D:\Projects\Personal\odoo\odoo\tools\convert.py", line 26, in <module> from .safe_eval import safe_eval as s_eval File "D:\Projects\Personal\odoo\odoo\tools\safe_eval.py", line 21, in <module> from psycopg2 import OperationalError ModuleNotFoundError: No module named 'psycopg2'
Stack Overflow
stackoverflow.com › questions › 72119534 › modulenotfounderror-no-module-named-psycopg2-extras › 72120104
python - ModuleNotFoundError: No module named 'psycopg2.extras' - Stack Overflow
Copy File "/Users/simjiahong/odoo/odoo-bin", line 5, in <module> import odoo File "/Users/simjiahong/odoo/odoo/__init__.py", line 113, in <module> from . import modules File "/Users/simjiahong/odoo/odoo/modules/__init__.py", line 8, in <module> from . import db, graph, loading, migration, module, registry File "/Users/simjiahong/odoo/odoo/modules/graph.py", line 10, in <module> import odoo.tools as tools File "/Users/simjiahong/odoo/odoo/tools/__init__.py", line 21, in <module> from .convert import * File "/Users/simjiahong/odoo/odoo/tools/convert.py", line 33, in <module> from odoo import SUP
Blogger
odedrabhavesh.blogspot.com › 2025 › 08 › httpsodedrabhavesh.blogspot.com202508modulenotfounderror-no-module-named-psycopg2.html
Bhavesh Odedra (Odoo/OpenERP/TinyERP): ModuleNotFoundError: No module named 'psycopg2'
August 14, 2025 - odoo 18 pyscopg2 odoo/odoo/tools/translate.py", line 35, in from psycopg2.extras import Json ModuleNotFoundError: No module named 'psycopg2'
Finxter
blog.finxter.com › fixed-modulenotfounderror-no-module-named-psycopg2
[Fixed] ModuleNotFoundError: No module named 'psycopg2'
June 12, 2022 - Verifying that you are not a robot
GitHub
github.com › psycopg › psycopg2 › issues › 1282
Error loading psycopg2 module: No module named 'psycopg2' · Issue #1282 · psycopg/psycopg2
May 26, 2021 - (env) PS D:\Users\llagos.NB-KEYONE15\Visual Studio projects\ecommerce-psql> python manage.py makemigrations Traceback (most recent call last): File "D:\Users\llagos.NB-KEYONE15\Visual Studio projects\ecommerce-psql\env\lib\site-packages\django\db\backends\postgresql\base.py", line 25, in import psycopg2 as Database ModuleNotFoundError: No module named 'psycopg2' ...
Author psycopg
GitHub
github.com › jkehler › awslambda-psycopg2 › issues › 51
ModuleNotFoundError: No module named 'psycopg2._psycopg' · Issue #51 · jkehler/awslambda-psycopg2
September 25, 2019 - When I deploy it, I get this error. I checked _psycopg module but there is no this module. I used psycopg2-3.7 I hope your help.
Author jkehler
Blogger
odedrabhavesh.blogspot.com
Bhavesh Odedra (Odoo/OpenERP/TinyERP)
File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/translate.py", line 35, in <module> from psycopg2.extras import Json · ModuleNotFoundError: No module named 'psycopg2' Resolved with · pip3.12 install psycopg2-binary · at · August 14, 2025 No comments: Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest ·