guelfoweb / knock

Knock Subdomain Scan
GNU General Public License v3.0
3.85k stars 856 forks source link

knockpy 5.1.0 pyqt5 error #105

Closed gprime31 closed 3 years ago

gprime31 commented 3 years ago

$ pip3 install PyQt5 Collecting PyQt5 Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz Installing build dependencies ... done Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-0q6_olh9/PyQt5/setup.py'

$ pip3 install -r requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement pyqt5 (from versions: none) ERROR: No matching distribution found for pyqt5

running knockpy -v pkg_resources.DistributionNotFound: The 'PyQt5' distribution was not found and is required by knockpy

gprime31 commented 3 years ago

removed everything and started fresh: python3 setup.py install --user

Reading https://pypi.org/simple/PyQt5/ Downloading https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz#sha256=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be Best match: PyQt5 5.15.4 Processing PyQt5-5.15.4.tar.gz error: Couldn't find a setup script in /tmp/easy_install-gn2cervq/PyQt5-5.15.4.tar.gz

gprime31 commented 3 years ago

Forget to mention it can be run ./knockpy.py and everything works good. just the installer does not.

guelfoweb commented 3 years ago

pip3 install --upgrade pip pip3 install PyQt5 or pip3 install --user PyQt5

gprime31 commented 3 years ago

$ pip3 install --user PyQt5 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement PyQt5 (from versions: none) ERROR: No matching distribution found for PyQt5

same with the other commands. pip3 is up to date not a big deal, I can still run from ./knockpy.py

guelfoweb commented 3 years ago

You are using Python2 but knockpy needs Python3

gprime31 commented 3 years ago

You are using Python2 but knockpy needs Python3

pip3 can't be python2.

gprime31 commented 3 years ago

here is from: python3 -m pip install PyQt5

python3 -m pip install PyQt5 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting PyQt5 Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Using cached https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz Installing build dependencies ... done Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.7/tokenize.py", line 447, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-rva3nxhh/PyQt5/setup.py'

gprime31 commented 3 years ago

But going to close, like i said earlier running from ./knockpy works fine Great tool :)