pynacl: pip install pynacl fails with: error: [Errno 2] No such file or directory
I am trying to install pynacl on openSUSE 42.2 but it fails with error: [Errno 2] No such file or directory during the build phase
here is some of the output
~> pip install pynacl
Collecting pynacl
Using cached PyNaCl-1.1.2.tar.gz
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from pynacl)
Requirement already satisfied: cffi>=1.4.1 in ./.local/lib/python2.7/site-packages (from pynacl)
Requirement already satisfied: pycparser in ./.local/lib/python2.7/site-packages (from cffi>=1.4.1->pynacl)
Building wheels for collected packages: pynacl
Running setup.py bdist_wheel for pynacl ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WNVVlf/pynacl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');
f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpCBHg6Lpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/nacl
[...]
checking for nanosleep... yes
checking for posix_memalign... yes
checking for getpid... yes
checking if gcc/ld supports -Wl,--output-def... not needed, shared libraries are disabled
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dist-build/Makefile
config.status: creating libsodium.pc
config.status: creating libsodium-uninstalled.pc
config.status: creating msvc-scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/libsodium/Makefile
config.status: creating src/libsodium/include/Makefile
config.status: creating src/libsodium/include/sodium/version.h
config.status: creating test/default/Makefile
config.status: creating test/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
error: [Errno 2] No such file or directory
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WNVVlf/pynacl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-PAHH7o-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-WNVVlf/pynacl/
A copy of the entire log can be found here http://artifacts.opnfv.org/cross-community-ci/openstack/bifrost/review.openstack.org/367608/8/openstack-bifrost-verify-suse-virtual-master/build_log.txt
It’s not exactly clear from the output what No such file or directory actually means
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (9 by maintainers)
Commits related to this issue
- setup.py: Check that 'make' is instaled and preset on PATH Fixes #298 — committed to hwoarang/pynacl by deleted user 7 years ago
- setup.py: Check that 'make' is present in PATH Fixes #298 — committed to hwoarang/pynacl by deleted user 7 years ago
- Fix kolla-toolbox build ``pynacl`` package need ``make`` to build. kolla-toolbox build is failing due ``make`` missing package. pynacl upstream bug: https://github.com/pyca/pynacl/issues/298 Change-... — committed to openstack/kolla by xNaaro 7 years ago
- Fix kolla-toolbox build ``pynacl`` package need ``make`` to build. kolla-toolbox build is failing due ``make`` missing package. pynacl upstream bug: https://github.com/pyca/pynacl/issues/298 Change-... — committed to openstack/kolla by xNaaro 7 years ago
- setup.py: Check that 'make' is present in PATH Fixes #298 — committed to hwoarang/pynacl by deleted user 7 years ago
- setup.py: Check that 'make' is present in PATH (#300) Fixes #298 — committed to pyca/pynacl by hwoarang 7 years ago
- scripts: install-deps: Add 'make' to the required packages Latest paramiko pulls pynacl which requires 'make' to be present on the host otherwise it fails with the following error: ~> pip install py... — committed to openstack/bifrost by deleted user 7 years ago
- Fix kolla-toolbox build ``pynacl`` package need ``make`` to build. kolla-toolbox build is failing due ``make`` missing package. pynacl upstream bug: https://github.com/pyca/pynacl/issues/298 Change-... — committed to openstack/kolla by xNaaro 7 years ago
- Fix pynacl install error - https://github.com/pyca/pynacl/issues/298 — committed to yokogawa-k/docker-ansible-lint by yokogawa-k 7 years ago
You need to install
make. That’s definitely an unclear error message. I had to build a tumbleweed docker image to figure it out. I suppose we could potentially detectmakeonPATHin setup.py.Adding
apk add makefixes my Alpine Docker image builds.