Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"pynacl" solve this issue #5

Open
BlackHatHack opened this issue Aug 20, 2018 · 2 comments
Open

"pynacl" solve this issue #5

BlackHatHack opened this issue Aug 20, 2018 · 2 comments

Comments

@BlackHatHack
Copy link

SODIUM_INSTALL=system pip2 install pynacl
Collecting pynacl
Using cached https://files.pythonhosted.org/packages/08/19/cf56e60efd122fa6d2228118a9b345455b13ffe16a14be81d025b03b261f/PyNaCl-1.2.1.tar.gz
Complete output from command python setup.py egg_info:
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
Traceback (most recent call last):
File "", line 1, in
File "/data/data/com.termux/files/usr/tmp/pip-build-_UxQNQ/pynacl/setup.py", line 251, in
"Programming Language :: Python :: 3.6",
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/init.py", line 128, in setup
_install_setup_requires(attrs)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/init.py", line 123, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/dist.py", line 513, in fetch_build_eggs
replace_conflicting=True,
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 774, in resolve
replace_conflicting=replace_conflicting
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 1057, in best_match
return self.obtain(req, installer)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 1069, in obtain
return installer(requirement)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/dist.py", line 580, in fetch_build_egg
return cmd.easy_install(req)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 884, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1152, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1140, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-androideabi-clang' failed with exit status 1

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /data/data/com.termux/files/usr/tmp/pip-build-_UxQNQ/pynacl/

@missyes
Copy link

missyes commented Sep 1, 2018

@BlackHatHack
you heed to install libs like: python-dev libcrypt-dev libffi-dev

sudo apt-get -y install python-dev libcrypt-dev libffi-dev

also recomended

pip install cffi

@kuburan
Copy link
Owner

kuburan commented Sep 1, 2018

hello @BlackHatHack it seem's you are missing python header file. try to install it first.
'''
$ apt install python2-dev
'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants