sensepost / cipherchecks

visually see issues with supported cipher suites
GNU General Public License v3.0
15 stars 7 forks source link

getting nassl version requirement error when building from source AND via pipx install #2

Closed dfuentes77 closed 1 year ago

dfuentes77 commented 1 year ago

I get the following although I do see the appropriate versions of nassl in pypi repository. For some reason it doesn't see any versions between 1 and 5:

$ pipx install cipherchecks
Fatal error from pip prevented installation. Full pip output in file:
    /<userpath>/.local/pipx/logs/cmd_2023-05-11_11.45.41_pip_errors.log

pip seemed to fail to build package:
    cipherchecks

Some possibly relevant errors from pip install:
    ERROR: Could not find a version that satisfies the requirement nassl<5.0.0,>=4.0.0 (from sslyze) (from versions: 0.13.4.win32, 0.13.1, 0.13.2, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 1.0.1, 1.0.2, 1.0.3, 5.0.0, 5.0.1)
    ERROR: No matching distribution found for nassl<5.0.0,>=4.0.0

Error installing cipherchecks.
jthorpe6 commented 1 year ago

Hi,

what version of python and pipx are you using ?

dfuentes77 commented 1 year ago

$ python3 --version Python 3.11.3 $ pipx --version 1.2.0

dfuentes77 commented 1 year ago

Odd. I read your latest docker instructions and I'm even getting the same error:

 => ERROR [3/5] RUN python3.9 -m pip install nassl==4.0.0 &&   python3.9 -m pip install sslyze==4.1.0 &&   python3.9 -m pip install crayons==0.4.0                                            0.8s
------
 > [3/5] RUN python3.9 -m pip install nassl==4.0.0 &&   python3.9 -m pip install sslyze==4.1.0 &&   python3.9 -m pip install crayons==0.4.0:
#0 0.770 ERROR: Could not find a version that satisfies the requirement nassl==4.0.0 (from versions: 0.13.4.win32, 0.13.1, 0.13.2, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 1.0.1, 1.0.2, 1.0.3)
#0 0.770 ERROR: No matching distribution found for nassl==4.0.0
------
Dockerfile:8
--------------------
   7 |     # Installing Cipherchecks dependencies
   8 | >>> RUN python3.9 -m pip install nassl==4.0.0 && \
   9 | >>>   python3.9 -m pip install sslyze==4.1.0 && \
  10 | >>>   python3.9 -m pip install crayons==0.4.0
  11 |
--------------------
ERROR: failed to solve: process "/bin/sh -c python3.9 -m pip install nassl==4.0.0 &&   python3.9 -m pip install sslyze==4.1.0 &&   python3.9 -m pip install crayons==0.4.0" did not complete successfully: exit code: 1
dfuentes77 commented 1 year ago

Just realized it now as I was looking up similar errors... I'm on a M2 Mac and so I'm guessing the appropriate versions of nassl don't exist for arm64? I needed to specify the amd64 platform when building:

--platform linux/amd64

and I also had to disable Use containerd for pulling and storing images as described in docker issue: https://github.com/docker/for-mac/issues/6356#issuecomment-1554791654, for the image to export locally.

Now I'm able to run it from docker. Hopefully this helps others.

ghecko commented 9 months ago

Hello,

I re-open this issue as no solution have been provided for the pipx installation:

#> pipx install cipherchecks                       
Fatal error from pip prevented installation. Full pip output in file:
    /root/.local/state/pipx/log/cmd_2024-01-11_07.43.57_pip_errors.log

pip seemed to fail to build package:
    cipherchecks

Some possibly relevant errors from pip install:
    ERROR: Could not find a version that satisfies the requirement nassl<5.0.0,>=4.0.0 (from sslyze) (from versions: 0.13.4.win32, 0.13.1, 0.13.2, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 1.0.1, 1.0.2, 1.0.3, 5.0.0, 5.0.1, 5.1.0)
    ERROR: No matching distribution found for nassl<5.0.0,>=4.0.0

Error installing cipherchecks.