NVIDIA / cuda-python

CUDA Python Low-level Bindings
https://nvidia.github.io/cuda-python/
Other
859 stars 68 forks source link

Windows: ModuleNotFoundError: No module named 'win32api' #32

Closed ilyasher closed 2 months ago

ilyasher commented 1 year ago

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

leofang commented 3 months ago

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?

vzhurba01 commented 3 months ago

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 commented 2 months ago

Fixed with 12.6 release, closing.