import nacl.bindings hangs
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 267
- Avg merge
- 42m
- Merged PRs (30d)
- 2
Description
I ran into an issue with another library hanging on import that appears be caused by PyNaCl. I can reproduce the issue with
$ python -c 'import nacl.bindings'
Expected Behavior: command should complete in, at most, a few seconds.
Actual Behavior: commands takes roughly 90 seconds to complete
Running strace on the command shows that the import is hanging here
open("/dev/random", O_RDONLY) = 4
poll([{fd=4, events=POLLIN}], 1, 4294967295
I found this closed issue and tried following the recommendation of running pip install pynacl -I --no-binary pynacl but the issue still occurs.
https://github.com/paramiko/paramiko/issues/1023
OS: Ubuntu 14.04.5
Python Version: 2.7.6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with python -c 'import nacl.bindings' on the reported environment, then trace the import while inspecting the /dev/random access shown by strace. Review the nacl.bindings import path and the existing issue discussion. Done means the import completes within a few seconds without blocking for roughly 90 seconds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cryptography
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100