openfheorg / openfhe-python

Official Python wrapper for OpenFHE. Current release is v0.8.8 (released on June 25, 2024).
https://openfheorg.github.io/openfhe-python/html/index.html
BSD 2-Clause "Simplified" License
60 stars 18 forks source link

openfhe-python in colab #57

Closed zubeydeulukok closed 5 months ago

zubeydeulukok commented 10 months ago

@reneroliveira There is only Linux install in the repo. Can’t we use openfhe-python wrapper on windows?What should I do to use openfhe-python as windows user?

reneroliveira commented 10 months ago

Sure, you can use the wrapper on Windows too. The recommend way is following the OpenFHE C++ installation instructions for Windows, and then replicate the commands for the python wrapper in the MSYS2 terminal. We are testing and validating this process and soon we'll add detailed description in the readme.

Any problem or comment, feel free to reach out!

zubeydeulukok commented 10 months ago

Thank you @reneroliveira. Actually, I installed openfhe and openfhe-python libraries in colab, but I cannot import. What would be the reason?

reneroliveira commented 10 months ago

I suspect the problem is the library installation path. I don't know how colab works, but if you have more than one python installations, you have to take care and make sure you're installing in the right path Try running !which python (or maybe !which python3) in a colab cell to see the path.

When installing OpenFHE-python you can specify the python binary path in the cake step, this procedure is documented in Readme.

zubeydeulukok commented 10 months ago

In colab, after installing "openfhe-development" run sudo ldconfig . Running sudo ldconfig refreshes the system's cache of dynamic linkers and their associated libraries, ensuring that any changes or new installations are recognized by the system. It's a crucial step after installing or updating libraries to make sure that programs can find and link to the appropriate shared libraries during runtime.

IanQS commented 10 months ago

^ Sounds like this issue has been resolved. If so, please close it :) Thank you!

yspolyakov commented 9 months ago

@zubeydeulukok can this issue be closed?

IanQS commented 5 months ago

Stale issue and the topic changed to Colab. If it's still an issue please open a new issue with updated errors and information