-
Notifications
You must be signed in to change notification settings - Fork 51
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
Even if libsdoium is installed, the storage location of libsodium cannot be obtained #116
Comments
sorry for the late answer, another project took all my attention. what do you mean with hard-coding the path in line 33? what would be that path? i have no access to macs, help me out by debugging this for me and figuring out a reliable way to support macs as well. thank you very much! |
googled a bit, it seems that brew doesn't install libraries in any of /usr/lib lor /usr/local/lib but somewhat random locations instead. i don't really know how to guess these correctly, i think it is better to just make a symlink to libsodium into either /usr/lib or /usr/local/lib, it will be picked up there correctly. why brew does this, i dunno, maybe open a ticket with brew to fix this? |
|
oh, so you say i get the path using |
Scratch that, this is not using |
not sure we are talking about the same thing. this is about python ctypes.find_library not finding libsodium, has nothing to do with cmake. |
Thank you for your reply. The hardcoded path is below. I also tried moving libsodium, which was installed with brew, to usr/lib, but the result was the same. |
hmm, |
it's not very convenient to have also the version in the path |
according to the wisdom of mastodon, you should:
the install script should put a link to the lib into /usr/local/lib then it will be picked up perfectly by ctypes and pysodium. |
btw is there no link in |
the dear people at cynthion had a similar issue, and the solution is to use brew python which nows how to find other brew stuff: greatscottgadgets/cynthion#136 |
this is also an interesting comment: https://apple.stackexchange.com/questions/437618/why-is-homebrew-installed-in-opt-homebrew-on-apple-silicon-macs/437622#437622 |
Hello,
I am developing using Mac and Debian.(macOS sonoma 14.5)
I installed libsodium, but the search for the line below doesn't work well, and the error message on line 35 is returned.
libsodium is installed using the following method
on mac
brew install libsodium
In debian
apt-get apt-get install -y libsodium-dev
On Mac, it works if you hardcode the path on line 33. You can't do that with debian.
pysodium/pysodium/__init__.py
Line 33 in baf1179
If you have any problems with my usage, please teach me the steps. thank you.
Thanks for the amazing work so far !
(This is an automatic translation)
The text was updated successfully, but these errors were encountered: