wsvuls icon indicating copy to clipboard operation
wsvuls copied to clipboard

Hashlib error from requirements.txy

Open Chomikmarkus opened this issue 2 years ago • 3 comments

I get error when try to install

ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-guzowh0l/hashlib_5921cc231cec43f9902b9a0986439a7a/setup.py'"'"'; file='"'"'/tmp/pip-install-guzowh0l/hashlib_5921cc231cec43f9902b9a0986439a7a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-j460p1z2 cwd: /tmp/pip-install-guzowh0l/hashlib_5921cc231cec43f9902b9a0986439a7a/ Complete output (6 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-guzowh0l/hashlib_5921cc231cec43f9902b9a0986439a7a/setup.py", line 68 print "unknown OS, please update setup.py" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/74/bb/9003d081345e9f0451884146e9ea2cff6e4cc4deac9ffd4a9ee98b318a49/hashlib-20081119.zip#sha256=419de2fd10ae71ed9c6adcb55903f116abd1d8acc8c814dfd5f839b4d5013e38 (from https://pypi.org/simple/hashlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement hashlib (from versions: 20081119) ERROR: No matching distribution found for hashlib WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

Chomikmarkus avatar Mar 14 '22 11:03 Chomikmarkus

Make sure python3 is installed in your system and you should use python version 3

python3 wsvuls.py -u [URL]

because wsvuls is fully compatible with python version 3

anouarbensaad avatar Mar 14 '22 18:03 anouarbensaad

hashlib is included in the python3 standard library. This tool's container uses python3-alpine for the base image and the python version is "3.10.2". I referred to the "3.10.x" series documents and I could find hashlib in the standard library part.

So I think that we simply remove the hashlib statement in the "requirements.txt" file, how is it?

sobeit avatar Mar 16 '22 02:03 sobeit

Me to, faced the same issue. also i have remove hashlib from req,txt

lsdeep avatar Mar 22 '22 18:03 lsdeep