Open hackrx opened 3 years ago
Though this worked for me:
pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal
Hello.
Thank you for the report.
I am not familiar with Apple products, but I understand that PyPy is not supported on Big Sur yet, therefore we cannot deploy it there.
https://morepypy.blogspot.com/2020/
Once they add support, we will update our build process.
Same problem here. What can I do? Mojave 10.14.6 Python 3.9.1 pip 21.0.1
@andreamur95 Hello.
Your problem is different: we upload TenSEAL for OSX 10.15 or above. This is the minimum version supported by Github runners. I am not familiar with OSX, but if you know how to change the minimum version to 10.14(maybe some env variable), please open a PR.
Otherwise, please clone this repo, and run pip install .
same question +1
@bcebere Big Sur is fine, but M1 is different. @hackrx are you running Intel CPU or M1?
I can confirm that tenseal==0.3.4
is installing perfectly fine in Python 3.9 and Big Sur on Intel.
I don't have any Apple Silicon yet but from what I understand you can run Python in Rosetta 2 emulated Intel mode. However because TenSEAL uses a lot of compiled C under the hood its totally possible this might not work.
As soon as M1 Apple Silicon is available to our team or more generally to GitHub CI and other cloud vendors we can fix and test this. I believe it has been promised around June / July post WWDC so lets see.
Hi, any progress made on the M1 front ?
Any movement on this? pip 22.2.2 python 3.9.13 Ventura 13.0.1
Slightly different flavor from the original issue, but I believe the same issue. Reproducing error:
(base) ➜ ~ pip install tenseal
Collecting tenseal
Using cached tenseal-0.3.6-cp39-cp39-macosx_10_15_x86_64.whl (4.3 MB)
Installing collected packages: tenseal
Successfully installed tenseal-0.3.6
But note the x86
above:
(base) ➜ ~ ipython
Python 3.9.13 (main, Aug 25 2022, 18:29:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import tenseal
[1] 55079 illegal hardware instruction ipython
My understanding is that this illegal hardware instruction
error is related to the Intel version being grabbed. Are there any ARM/M1 Apple Silicon versions anticipated?
It appears TenSEAL does not work on Apple's M1 chip yet, does anyone have an update or timing on the ARM/M1 version?
Hi, I just tried to install tenseal on mac with intel chip and I have the same error as hackrx. It seems the issue doesn't only affect M1's.
MacBookPro 13-inch 2019 with intel i5 chip OS Version: macOS Monterey 12.4 Language Version: Python 3.10.6 Package Manager Version: pip 22.3.1
Hello,
TenSEAL relies on the Github-hosted runners for testing and releasing the library. For now, the supported hosts are https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners . We will update asap when/if they will provide VMs with Apple M1.
@Francoisgoujon Unfortunately, I don't have a Mac to debug. There is a wheel for OSX 12.0, Python 3.10, uploaded here https://pypi.org/project/tenseal/#files. Can you download and install it? I cannot spot what is not matching with your details. Thanks!
Hello,
Sorry for the late response. I got it to work by doing : pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal as stated by hackrx. But I couldn't pip install tenseal the usual way.
Hello, I'm on Mac M1 and I have the same problem with pip install tenseal :/
I tested with pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal but I have an issue : ERROR: Could not build wheels for tenseal, which is required to install pyproject.toml-based projects
Will you create a version compatible with mac M1? Only by simulating an intel machine or using the M1 computing power?
I found a solution for the installation :
Clone the git directory : git clone --recursive https://github.com/OpenMined/TenSEAL.git
Go to TenSeal directory with : cd ./TenSEAL
Install the TenSeal librairy : pip install .
The installation didn't work for me because I didn't have cmake. You can check this with : cmake –-version
if you don't have it : brew install cmake Then you can try again to install the librairy: pip install .
Hello, I'm on Mac M1 and I have the same problem with pip install tenseal :/
I tested with pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal but I have an issue : ERROR: Could not build wheels for tenseal, which is required to install pyproject.toml-based projects
Will you create a version compatible with mac M1? Only by simulating an intel machine or using the M1 computing power? I'm on Mac M1 pro and I have found the same problem as you. I solved it by install cmake, you need to first run "brew install cmake" or "pip install cmake" , and then tested with "pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal". Just wait for a moment, tenseal packages will successfully be installed.
Yes for information I was on Mac m1 too. It seems to only use the CPU and is therefore not optimised for MPC acceleration (for the moment).
Similar to the others, the following worked for me on my M1 (macOS Ventura 13.5.2) with cmake
installed using brew install cmake
.
git clone --recursive https://github.com/OpenMined/TenSEAL.git
cd TenSEAL/
git submodule init
git submodule update
pip install .
@data-science-lover how do you tell that it uses only the CPU? What test did you run?
pip install .
I haven't done any tests but it was written in the Tenseal documentation
Though this worked for me:
pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal
This works for me on Apple M1 Sonama. 14.0
. Thanks @hackrx
我似乎也出现了一样的问题在这里 ![Uploading 屏幕截图 2024-05-20 172056.png…]()
Description
A clear and concise description of the bug.
How to Reproduce
Expected Behavior
It should install pip library
Screenshots
System Information