Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ilyasher opened this issue Oct 22, 2022 · 3 comments
Closed

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

ilyasher opened this issue Oct 22, 2022 · 3 comments
Assignees
Labels
bug Something isn't working P1 Medium priority - Should do

Comments

@ilyasher
Copy link

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
Copy link
Member

leofang commented Jun 12, 2024

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?

@jollylili jollylili added the bug Something isn't working label Jun 18, 2024
@vzhurba01
Copy link
Collaborator

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.

@leofang leofang added the P1 Medium priority - Should do label Jul 9, 2024
@vzhurba01
Copy link
Collaborator

Fixed with 12.6 release, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Medium priority - Should do
Projects
None yet
Development

No branches or pull requests

4 participants