'tenseal._tenseal_cpp' Module Not Found
Question
How do I fix a ModuleNotFoundError when trying to import tenseal?
Further Information
In a nutshell, I'm getting a ModuleNotFoundError for 'tenseal._tenseal_cpp' and I don't know how to start working with the tenseal library.
To elaborate, find the program that I'm trying to run and the full error message below:
Programme: - name: fhe.py - contents: import tenseal as ts print("hello, world")
[...path...]/venv/lib/python3.12/site-packages/tenseal/__init__.py", line 5, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "[...path...]/fhe.py", line 1, in
System Information
- OS: iOS (13 inch MacBook Pro 2020)
- CPU: 2 GHz Quad-Core Intel Core i5 (2020 model, before the M1 chips were introduced)
- OS Version: Sonoma
- Language Version: Python 3.12
- Package Manager Version: pip
Additional Context
The error message mentions "have 'arm64', need 'x86_64h' or 'x86_64'". However, when checking using: uname -m I get: x86_64. So I don't have arm64. My guess is that either the programme is unable to identify the x86_64 as it is, or there are missing files from the library.
I'd appreciate any and all support, thanks.
Release 0.3.16 should fix this issue. @DRKorossy can you please try again and confirm that the issue is fixed?