csprng icon indicating copy to clipboard operation
csprng copied to clipboard

PyPI Windows 0.2.1 Wheels are not CPU

Open madhavajay opened this issue 3 years ago • 1 comments

Is it expected that the builds for 0.2.1 are GPU, where as the 0.2.0 ones are CPU on PyPI?

0.2.1 on PyPI broken:

PS C:\dev\SyMPC> pip install torchcsprng==0.2.1
PS C:\dev\SyMPC> python
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchcsprng
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\me\.virtualenvs\SyMPC-pSsChgge\lib\site-packages\torchcsprng\__init__.py", line 9, in <module>
    from torchcsprng._C import *
ImportError: DLL load failed while importing _C: The specified module could not be found.

0.2.0 on PyPI working:

PS C:\dev\SyMPC> pip install torchcsprng==0.2.0
PS C:\dev\SyMPC> python
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchcsprng

torchcsprng==0.2.1+cpu on torch repo Working:

PS C:\dev\SyMPC> pip install torchcsprng==0.2.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torchcsprng==0.2.1+cpu
  Using cached https://download.pytorch.org/whl/cpu/torchcsprng-0.2.1%2Bcpu-cp37-cp37m-win_amd64.whl (167 kB)
Requirement already satisfied: torch==1.8.1 in c:\users\me\.virtualenvs\sympc-psschgge\lib\site-packages (from torchcsprng==0.2.1+cpu) (1.8.1)
Requirement already satisfied: typing-extensions in c:\users\me\.virtualenvs\sympc-psschgge\lib\site-packages (from torch==1.8.1->torchcsprng==0.2.1+cpu) (3.10.0.0)
Requirement already satisfied: numpy in c:\users\me\.virtualenvs\sympc-psschgge\lib\site-packages (from torch==1.8.1->torchcsprng==0.2.1+cpu) (1.20.3)
Installing collected packages: torchcsprng
Successfully installed torchcsprng-0.2.1+cpu
PS C:\dev\SyMPC> python
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torchcsprng

madhavajay avatar Jun 08 '21 02:06 madhavajay

same issue, is there any solution? Thanks

zhanggyarcher avatar Apr 06 '22 12:04 zhanggyarcher