Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem importing library psycopg2 #1768

Closed
MishaFromNowhere-cmd opened this issue Dec 31, 2024 · 3 comments
Closed

Problem importing library psycopg2 #1768

MishaFromNowhere-cmd opened this issue Dec 31, 2024 · 3 comments

Comments

@MishaFromNowhere-cmd
Copy link

This is a bug tracker
If you have a question, such has "how do you do X with Python/PostgreSQL/psycopg2" please write to the mailing list or open a question instead.

Please complete the following information:

  • OS: Windows 10 Home
  • Psycopg version: 2.9.10
  • Python version: 3.13
  • PostgreSQL version: 17.2
  • pip version: 24.3.1

Describe the bug
Please let us know: I'm just starting to learn how to work with PostgresQL.

1: what you did -- I just wrote import psycopg2
2: what you expected to happen -- nothing
3: what happened instead -- ImportError: DLL load failed while importing _psycopg: The specified module was not found.

If possible, provide a script reproducing the issue.
import psycopg2

@MishaFromNowhere-cmd
Copy link
Author

Maybe I missed something, forgive me in advance and thank you for your attention

@MishaFromNowhere-cmd
Copy link
Author

Traceback (most recent call last):
File "C:\Users\misha\PycharmProjects\PythonProject\main.py", line 1, in
import psycopg2
File "C:\Users\misha\PycharmProjects\PythonProject.venv\Lib\site-packages\psycopg2_init_.py", line 51, in
from psycopg2._psycopg import ( # noqa
...<10 lines>...
)
ImportError: DLL load failed while importing _psycopg: The specified module was not found.

@dvarrazzo
Copy link
Member

#1736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants