pyca / pynacl

Python binding to the Networking and Cryptography (NaCl) library
https://pynacl.readthedocs.io/
Apache License 2.0
1.05k stars 231 forks source link

No module named setuptools.command.build_clib while installing 1.5.0 #748

Open rishav-nitdgp opened 2 years ago

rishav-nitdgp commented 2 years ago

change made in "stop using distutils (#727)" causing

[2022-01-12T16:32:58.769Z] Collecting pynacl>=1.0.1 (from paramiko->-r ./requirements.txt (line 6)) [2022-01-12T16:32:59.024Z] Downloading https://repo.lab.pl.alcatel-lucent.com/api/pypi/python/packages/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz (3.4MB) [2022-01-12T16:32:59.966Z] Complete output from command python setup.py egg_info: [2022-01-12T16:32:59.966Z] Traceback (most recent call last): [2022-01-12T16:32:59.967Z] File "", line 1, in [2022-01-12T16:32:59.967Z] File "/tmp/pip-build-qsi0m21x/pynacl/setup.py", line 29, in [2022-01-12T16:32:59.967Z] from setuptools.command.build_clib import build_clib as _build_clib [2022-01-12T16:32:59.967Z] ModuleNotFoundError: No module named 'setuptools.command.build_clib' [2022-01-12T16:32:59.967Z]
[2022-01-12T16:32:59.967Z] ---------------------------------------- [2022-01-12T16:32:59.967Z] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qsi0m21x/pynacl/

alex commented 2 years ago

What version of pip are you using?

rishav-nitdgp commented 2 years ago

Above error is encountered in pip 9.0.1.

i tried another machine with pip 19.2.3, that one had pynacl 1.3.0 but when i tried installing the latest pynacl, its said -

File "C:\Users\rgarodia\AppData\Local\Temp\pip-install-07aqe1tz\pynacl\setup.py", line 141, in run
  raise Exception("ERROR: The 'make' utility is missing from PATH")

Exception: ERROR: The 'make' utility is missing from PATH

is there any such limitation to have the latest pip version for pynacl ?

reaperhulk commented 2 years ago

The limitation is that older pip doesn't recognize the abi tags on our wheels. Upgrade to the latest pip and you will very likely get a wheel in both cases.