question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with the psycopg2-binary python library.

See original GitHub issue

I looked for someone whom had faced the same problem, but I didn’t find. I also tried to install the application in either Fedora 34 and Kali LTS version, and I got the same error in both:

[+] Checking Dependencies...

[-] psycopg2-binary is not Installed!

[-] Please Execute pip3 install -r requirements.txt to Install Missing Packages

When I try to run the application I face the error above. I have the library already installed, the pip is at the latest version. I already have uninstalled it and then installed it again. I tried to uninstall python and to install it again as well. As a proof that I have this specific library installed and updated, when I run the pip3 install -r requirements.txt command, it returns:

Requirement already satisfied: psycopg2-binary in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 8)) (2.9.3)

Thank y’all!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
thewhiteh4tcommented, Mar 7, 2022

@daniloalbuqrque blank output means import was successful, edit requirements.txt remove the line which contains psycopg2-binary and run finalrecon again

1reaction
daniloalbuqrquecommented, Mar 7, 2022

Ok then! I will close the issue. Thank you for your time!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install psycopg2 with "pip" on Python? - Stack Overflow
Option 1. Install the psycopg2-binary PyPI package instead, it has Python wheels for Linux and Mac OS. pip install psycopg2-binary ...
Read more >
psycopg2-binary fails to install on macOS Big Sur 11.0.1 and ...
We are now updating python to 3.9 and when trying to install requirements we found that psycopg could not find pg_config. This error...
Read more >
Installation — Psycopg 2.9.5 documentation
The psycopg2-binary package is meant for beginners to start playing with Python and PostgreSQL without the need to meet the build requirements.
Read more >
psycopg2-binary - PyPI
The binary package is a practical choice for development and testing but in production it is advised to use the package built from...
Read more >
Error while installing psycopg2 using pip - Django Forum
I am trying to run docker in django using this command docker build -t myimage . Now the docker file tries to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found