Skip to Content
Menu
This question has been flagged

i installed odoo for developing as described in odoo 16 documentation 

operating system windows 10 , python ver 3.10 and i installed pgadmin 4
i also installed PyCharm 2022.2.4 (Community Edition)

when i open cmd and write the command 

python odoo-bin -r admin -w admin --addons-path=addons -d mydb

it seems OK and when i opened http://localhost:8069 it also seems ok and works properly
now 
when i go to pycharm and try to connect with odoo 
i got
C:\odoo16\odoo\venv\Scripts\python.exe C:\odoo16\odoo\odoo-bin 
Traceback (most recent call last):
File "C:\odoo16\odoo\odoo-bin", line 5, in
import odoo
File "C:\odoo16\odoo\odoo\__init__.py", line 113, in
from . import modules
File "C:\odoo16\odoo\odoo\modules\__init__.py", line 8, in
from . import db, graph, loading, migration, module, registry, neutralize
File "C:\odoo16\odoo\odoo\modules\db.py", line 4, in
from psycopg2.extras import Json
File "C:\odoo16\odoo\venv\lib\site-packages\psycopg2\__init__.py", line 51, in
from psycopg2._psycopg import ( # noqa
ImportError: DLL load failed while importing _psycopg: The specified module could not be found.

Process finished with exit code 1

indeed i did all steps related to configuration and oddo config file

could some one help me please

 

Avatar
Discard
Best Answer

Hi Ashraf,

Test the connection after installing the psycopg2-binary python package instead of psycopg2 itself.

Regards

Avatar
Discard
Related Posts Replies Views Activity
3
Dec 23
6789
0
Nov 23
1116
1
Sep 23
777
1
Nov 22
2949
1
Apr 24
790