Error with the psycopg2-binary python library.
0xn4d opened this issue · 19 comments
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!
@daniloalbuqrque the path of the lib you mentioned is under /usr which suggests that you executed sudo pip3 install
? and you are running finalrecon without sudo ?
if you are running finalrecon without sudo, run pip3 install without sudo as well and check if you still get the error
I ran all the attempts mentioned above with and without sudo permissions, and I still get the same error.
@daniloalbuqrque what is the output of python3 -c 'import psycopg2'
?
Actually, there is no output.
@daniloalbuqrque blank output means import was successful, edit requirements.txt
remove the line which contains psycopg2-binary
and run finalrecon again
Ok, @thewhiteh4t, now I can run some of the features (e.g. headers). When I tried to run the --full flag, I got this:
Traceback (most recent call last):
File "/home/kali/Tools/FinalRecon/finalrecon.py", line 275, in <module>
full_recon()
File "/home/kali/Tools/FinalRecon/finalrecon.py", line 201, in full_recon
from modules.dirrec import hammer
File "/home/kali/Tools/FinalRecon/modules/dirrec.py", line 5, in <module>
import aiohttp
File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in <module>
from .client import (
File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in <module>
from . import hdrs, http, payload
File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in <module>
from .http_parser import (
File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15, in <module>
from .helpers import NO_EXTENSIONS, BaseTimerContext
File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in <module>
class CeilTimeout(async_timeout.timeout):
TypeError: function() argument 'code' must be code, not str
weird, share cat /etc/os-release
and python3 -V
➜ FinalRecon git:(master) ✗ cat /etc/os-release
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2022.1"
VERSION_ID="2022.1"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
➜ FinalRecon git:(master) ✗ python -V
Python 2.7.18
FYI: I am using the Python3.9 version to run the finalrecon.py file.
@daniloalbuqrque did you install finalrecon from apt ?
I tried both ways, from apt and then from git to test it through another way.
@daniloalbuqrque thanks I will try to reproduce the issue
Ok, thank you! I will keep observing the issue as well and try to do something. if I get to something, I will tell you. In the meantime, I will also keep this issue open and wait for your response. :)
if the version is old, update and try finalrecon again
@thewhiteh4t, thank you! I got it now, it was that, the version for that package was in the 3.7.4
. I updated and it has been resolved. Thank you very much!
great! @daniloalbuqrque I will probably remove the package checking soon
Ok then! I will close the issue. Thank you for your time!