Closed IanQS closed 11 months ago
Have you tried to check the command which python
to see if it matches with the anaconda python paths?
Yeap! Verified
PYTHONPATH should include the path to OpenFHE .so files for Python to work. In other words, @IanQS, you need to add
export PYTHONPATH = (path_to_OpenFHE_so_files):$PYTHONPATH
The documentation should be updated to mention both PYTHONPATH and LD_LIBRARY_PATH.
Amazing! Confirmed that the solution works for the system-level install. I haven't tested the conda approach yet, but I'm confused why conda develop
didn't work.... AFAIK it does the same thing(?) Rener, keep me honest here
Also, the original error made me think it was a C++/ OpenFHE installation-path issue, how strange
Actually, I don't understand exactly what conda develop
does. That was your suggestion to the documentation. In my machine I never need to run that, everything works fine with sudo make install and specifying the python conda path to cmake
Ahh, my bad. I'll figure out how to make it work with conda later on and open a new PR to correct this. I'm closing this issue now - if there's any follow ups feel free to reopen
Hi all! These are the exact commands I'm running:
Installation
Installing Openfhe-dev
I then verify that it is installed by running
Installing OpenFHE-python (within a conda env)
then, within
build
, I runI have verified that Openfhe-python's SO files have been "linked"
which outputs
The issue
When I run something like
python function-evaluation.py
I seeIt's not clear to me what the issue is and if it is an issue on the OpenFHE-dev end. I don't think it is, just because I managed to run an example specifically a PKE example
Additional Information