open-quantum-safe / liboqs-python

Python 3 bindings for liboqs
https://openquantumsafe.org/
MIT License
108 stars 39 forks source link

Could not load liboqs shared library #28

Closed prchander closed 4 years ago

prchander commented 4 years ago

I followed the instructions in liboqs python wrapper to install as a shared library (make -GNinja -DBUILD_SHARED_LIBS=ON ..). Then I cloned liboqs-python and setup a venv called test inside. I then installed setup.py. I then tried to run the kem example with python3 examples/kem.py but the code breaks because it could not load the liboqs library. I have tried multiple variants of liboqs shared library command but I have not gotten any of them to work. Am I doing something wrong or missing a step?

kartik-27 commented 4 years ago

make sure you export LD_LIBRARY_PATH and verify using env command

vsoftco commented 4 years ago

Did you follow all instructions from https://github.com/open-quantum-safe/liboqs-python#installation? Including export LD_LIBRARY_PATH if using Linux or on Windows ensure that the liboqs shared library oqs.dll is visible system-wide. Use the "Edit the system environment variables" Control Panel tool or type in a Command Prompt

set PATH="%PATH%;C:\some\dir\liboqs\build\bin"

ArkS0001 commented 2 days ago

Still Shared Library Not Found