cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

Windows: ModuleNotFoundError: No module named 'win32api'

Open ilyasher opened this issue 3 years ago • 2 comments

Installing on Windows:

python -m pip install cuda-python

Then from python:

from cuda import cuda

Fails with

    File "cuda\cuda.pyx", line 1, in init cuda.cuda

    File "cuda\ccuda.pyx", line 1, in init cuda.ccuda

    File "cuda\_cuda\ccuda.pyx", line 8, in init cuda._cuda.ccuda

  ModuleNotFoundError: No module named 'win32api'

I can fix this by installing pypiwin32 manually. But I think it should be listed in requirements.txt if platform_system is Windows.

Thanks

ilyasher avatar Oct 22 '22 00:10 ilyasher

Sorry for lack of response. I actually am puzzled too because IIRC at one point we did have pywin32 listed but it seems to be gone now. @vzhurba01 do you know what happened?

leofang avatar Jun 12 '24 03:06 leofang

I don't think the file had called it out explicitly before. I've now added it to requirements.txt if platform_system is Windows. This change will get picked up in the next wheel release.

Leaving the bug open until the next set of wheels are released and the fix is confirmed.

vzhurba01 avatar Jul 01 '24 21:07 vzhurba01

Fixed with 12.6 release, closing.

vzhurba01 avatar Aug 01 '24 19:08 vzhurba01