Closed TLINDEN closed 10 years ago
Update: I tried really hard, to tell cffi where to find the sodium includes and lib, but it didn't work. However, this nasty workaround helped in the end:
lrwxr-xr-x 1 root wheel 25 Jan 19 19:41 /usr/include/sodium -> /usr/local/include/sodium
lrwxr-xr-x 1 root wheel 27 Jan 19 19:42 /usr/include/sodium.h -> /usr/local/include/sodium.h
lrwxr-xr-x 1 root wheel 26 Jan 19 19:44 /usr/lib/libsodium.a -> /usr/local/lib/libsodium.a
lrwxr-xr-x 1 root wheel 27 Jan 19 19:44 /usr/lib/libsodium.la -> /usr/local/lib/libsodium.la
lrwxr-xr-x 1 root wheel 27 Jan 19 19:44 /usr/lib/libsodium.so -> /usr/local/lib/libsodium.so
lrwxr-xr-x 1 root wheel 29 Jan 19 19:42 /usr/lib/libsodium.so.7 -> /usr/local/lib/libsodium.so.7
So, I'd say, you should use something else than cffi, so that users without a full development installation or on other (linux-incompatible systems) can use pbp.
best regards, Tom
thanks, will switch over to ctypes interface.
i ported pysodium 0.6 over to bare ctypes, i hope this fixes this issue. see: https://github.com/stef/pysodium/commit/ae46955cbe32da03832e0ed995e27ed17199c58f
would be nice if you could confirm this: https://pypi.python.org/pypi/pysodium/0.6
thanks so much! happy hacking,s
Hi,
I installed pysodium and pbp from source using
python setup.py build; sudo python setup.py install
. Both showed no errors. When I try to start pbp the first time, this will be shown:It looks as if pbp tries to compile pysodium at runtime (???). It should have done this during build time, I'd say.
I retried it with:
to no avail.
Any ideas?