open-quantum-safe / liboqs-python

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

Shared Library not found #59

Closed Moeed148a closed 1 year ago

Moeed148a commented 1 year ago

I have followed all the step to import the liboqs library in python. Unfortunately when i try to run the library it shows the error (Shared library is not found). Kindly help me to resolve this issue.

baentsch commented 1 year ago

Please let us know which steps you followed (commands executed and results obtained) as well as information about your environment (OS, python version, etc.)

Moeed148a commented 1 year ago

I have followed the setups mentioned in the following link https://github.com/open-quantum-safe/liboqs-python

My operating system is Ubuntu 2022 Python version is 3

Moeed148a commented 1 year ago

Also, I use the docker to integrate the liboqs with python https://github.com/open-quantum-safe/liboqs/

baentsch commented 1 year ago

Thanks for the additional information. These instructions normally work fine, so to understand what you're seeing I'd need to ask again for

commands executed and results obtained

Moeed148a commented 1 year ago

Hello, Can you please share your email or any contact. So, i can show to problem. I need help as soon as possible. I shall be thankful to you.

baentsch commented 1 year ago

So far, we always managed to solve things via github -- I'd be glad if we could do it the same way in your case, too. The big advantage is that everyone from the OQS team can look at the problem and help solve it.

Final comment, did you already try running docker run -it openquantumsafe/python sh? This gives you a ready-to-run dockerized OQS-enabled python environment.

baentsch commented 1 year ago

Also, I use the docker to integrate the liboqs with python

That reminds me: Shouldn't this issue be rather raised in https://github.com/open-quantum-safe/liboqs-python/issues? And did you check out https://github.com/open-quantum-safe/liboqs-python/tree/main/docker ?

vsoftco commented 1 year ago

Stale issue, cannot reproduce

ralienpp commented 5 months ago

For future archaeologists digging into this, the problem might occur if you only do pip install liboqs without ensuring that prerequisites are in place. The installation will complete successfully, but you will get a runtime error when trying to import the library. For example, on Windows you would see:

line 43, in _load_shared_obj
    raise RuntimeError("No " + name + " shared libraries found")
RuntimeError: No liboqs64bit.dll shared libraries found

Make sure you install it as described in the readme, pay attention to the prerequisites (e.g., CMake).