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

Stuck at Running setup.py bdist_whell for pynacl #486

Closed
fewknow opened this issue Oct 10, 2018 · 3 comments
Closed

Stuck at Running setup.py bdist_whell for pynacl #486

fewknow opened this issue Oct 10, 2018 · 3 comments

Comments

@fewknow
Copy link

fewknow commented Oct 10, 2018

$ pip install pynacl
Collecting pynacl
Using cached https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
Installing build dependencies ... done
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from pynacl) (1.10.0)
Requirement already satisfied: cffi>=1.4.1 in /usr/lib/python2.7/site-packages (from pynacl) (1.11.5)
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->pynacl) (2.17)
Building wheels for collected packages: pynacl
Running setup.py bdist_wheel for pynacl ... \

I am going to let it this run to see if it will complete, but as of now it has been 10 minutes.

Is there another library that should be installed to speed this up?

Thanks

@alex
Copy link
Member

alex commented Oct 10, 2018

You'll generally get a faster install with a wheel -- make sure you have the latest pip and setuptools installed.

Otherwise we need to build libsodium, which can take some time.

@alex alex closed this as completed Oct 10, 2018
@yangxuan8282
Copy link

yangxuan8282 commented Sep 4, 2019

Stuck at same place, the server is freezing, never got issues when I compiling other packages(include chromium).

EDIT: it take all 128G memory and 4G swap

EDIT1: I solve it by install pynacl 1.1.2. Before the server freezing, I found the program pwhash_scrypt take most memory, which is from libsodium. Then I google it, found some similar issues here: jedisct1/libsodium#721 , then I found this commit charmed-kubernetes/jenkins#360 , which install pynacl 1.1.2 instead of latest version. So I modified pynacl version in /opt/stack/requirements/upper-constraints.txt (I'm trying to install openstack with devstack on an aarch64 server), and this fix the issues.

@ciprian-barbu
Copy link

FYI:
jedisct1/libsodium#890

In short, in my case, mmap would try to map an enormous amount of memory and eventually fail. I also had vm.memory_overcommit set to 1, setting it to 0 or 2 should fix the problem.

It would be really nice if PyNaCl moved to an earlier version of libsodium, as 1.0.16 is at least an year old.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants