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

Issue importing pynacl on MacOS #19

Closed
butttons opened this issue Jan 23, 2017 · 7 comments
Closed

Issue importing pynacl on MacOS #19

butttons opened this issue Jan 23, 2017 · 7 comments

Comments

@butttons
Copy link

butttons commented Jan 23, 2017

Hi, I've cloned the script and installed all dependencies. When I run python3.5 proxy.py it returns this error:

[username:~/projects/coc/proxy]$ python3.5 proxy.py (master✱) Traceback (most recent call last): File "proxy.py", line 5, in <module> from coc.server.factory import CoCServerFactory File "/Users/username/projects/coc/proxy/coc/server/factory.py", line 2, in <module> from coc.server.protocol import CoCServerProtocol File "/Users/username/projects/coc/proxy/coc/server/protocol.py", line 3, in <module> from coc.server.crypto import CoCServerCrypto File "/Users/username/projects/coc/proxy/coc/server/crypto.py", line 1, in <module> from nacl.public import PrivateKey, PublicKey File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/public.py", line 18, in <module> import nacl.bindings File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/bindings/__init__.py", line 17, in <module> from nacl.bindings.crypto_box import ( File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/bindings/crypto_box.py", line 17, in <module> from nacl._sodium import ffi, lib ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/_sodium.cpython-35m-darwin.so, 2): Symbol not found: _crypto_box Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/_sodium.cpython-35m-darwin.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/nacl/_sodium.cpython-35m-darwin.so

The messages and definitions folder contents are in right place. I have version python 3.5.2 installed, running macOS Sierra 10.12.1. What can I do to fix this? I don't have any experience in python unfortunately. I have the following dependencies installed -

appdirs==1.4.0
cffi==1.9.1
constantly==15.1.0
ez-setup==0.9
incremental==16.10.1
packaging==16.8
pyblake2==0.9.3
pycparser==2.17
PyNaCl==1.0.1
pyparsing==2.1.10
six==1.10.0
Twisted==16.6.0
zope.interface==4.3.3

@butttons
Copy link
Author

@s-a-t-o-r-a-r-e or @clugh any idea?

@FICTURE7
Copy link

Wrong key? And does this log include the exception type?

@butttons
Copy link
Author

I'm using the key given here, and no that's the whole output when I run python3.5 proxy.py @FICTURE7

@FICTURE7
Copy link

Apparently the key changed in 8.709.16, @tc-maxx found it, here it is.

@butttons
Copy link
Author

Just tried that key, and same output.

@clugh
Copy link
Owner

clugh commented Jan 28, 2017

Python appears to be having an issue importing pynacl. I don't have a Mac, so I wouldn't know where to begin debugging it. Maybe try resinstalling pynacl and see if that resolves it. If not, check it's installation log to make sure there were no issues there. Worst case, I would suggest running Ubuntu Server in a VM, and run the proxy from there (that's what I do, actually).

@clugh clugh changed the title Cannot run proxy.py script Issue importing pynacl on MacOS Jan 28, 2017
@butttons
Copy link
Author

Thanks for the response, clugh. I tried reinstalling pynacl, but no dice. The installation was done without any error logs. I installed the package without using the cached files. I was using this fine on Ubuntu. Might have to do that only. Thanks again, you're the best!

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