TenSEAL icon indicating copy to clipboard operation
TenSEAL copied to clipboard

Error:No matching distribution found for Tenseal

Open hackrx opened this issue 3 years ago • 20 comments

Description

A clear and concise description of the bug.

How to Reproduce

  1. pip install tenseal

Expected Behavior

It should install pip library

Screenshots

image

System Information

  • OS: MacOsX
  • OS Version: macOS Big Sur 11.2.1
  • Language Version: Python 3.9.1
  • Package Manager Version: pip 20.3.1

hackrx avatar Mar 02 '21 12:03 hackrx

Though this worked for me: image pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal

hackrx avatar Mar 02 '21 13:03 hackrx

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.

bcebere avatar Mar 11 '21 05:03 bcebere

Same problem here. What can I do? Mojave 10.14.6 Python 3.9.1 pip 21.0.1 Schermata 2021-03-31 alle 16 32 54

andreamur95 avatar Mar 31 '21 14:03 andreamur95

@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 .

bcebere avatar Mar 31 '21 14:03 bcebere

same question +1

yooopan avatar Jun 17 '21 02:06 yooopan

@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.

madhavajay avatar Jun 17 '21 03:06 madhavajay

Hi, any progress made on the M1 front ?

Kirija avatar Sep 01 '21 14:09 Kirija

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?

klmcguir avatar Nov 18 '22 20:11 klmcguir

It appears TenSEAL does not work on Apple's M1 chip yet, does anyone have an update or timing on the ARM/M1 version?

JimKing100 avatar Dec 19 '22 18:12 JimKing100

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.

image

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

Francoisgoujon avatar Jan 06 '23 19:01 Francoisgoujon

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!

bcebere avatar Jan 06 '23 19:01 bcebere

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.

Francoisgoujon avatar Jan 12 '23 09:01 Francoisgoujon

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?

data-science-lover avatar Mar 30 '23 09:03 data-science-lover

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 .

data-science-lover avatar Mar 30 '23 12:03 data-science-lover

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.

lunan0320 avatar Jun 06 '23 14:06 lunan0320

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).

data-science-lover avatar Jun 06 '23 14:06 data-science-lover

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?

anirbanbasu avatar Oct 13 '23 15:10 anirbanbasu

pip install .

I haven't done any tests but it was written in the Tenseal documentation

data-science-lover avatar Oct 20 '23 08:10 data-science-lover

Though this worked for me: image pip install git+https://github.com/OpenMined/TenSEAL.git#egg=tenseal

This works for me on Apple M1 Sonama. 14.0. Thanks @hackrx

Mathanraj-Sharma avatar Dec 02 '23 13:12 Mathanraj-Sharma