Open anithag opened 1 month ago
I want to provide a bit more info to see if this is an installation issue. openfhe
is installed in my home directory. After build and install of openfhe-python, I have set PYTHONPATH and LD_LIBRARY_PATH to include openfhe dynamically shared libraries. So far it seemed reasonable without any issues.
Later, when I run pytest
, I got the error:
Traceback:
/opt/homebrew/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_serial_cc.py:4: in <module>
import openfhe as fhe
openfhe/__init__.py:1: in <module>
from openfhe.openfhe import *
E ModuleNotFoundError: No module named 'openfhe.openfhe'
What should my PYTHONPATH include at this point? Note that if it includes only $HOME//Users/anitha_gollamudi/openfhe-development/install/lib
I get No module named openfhe.openfhe
error.
setting export PYTHONPATH=openfhe-python/build:$PYTHONPATH
solved the issue. This is not mentioned in the documentation; only OpenFHE libraries were mentioned, and I assumed that they referred to libraries from openfhe-development
.
After installing openfhe-python, I am trying to run
pytest
in the project root directory. I get the following errors. It must be something simple. Can you help fix? I am using Mac OSX Sonoma (Apple M2).