ModuleNotFoundError: No module named 'win32api

Open
#621 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
desktop

Research direction

Start with the reported cricket_live_score.py execution in the shown Python 3.7 32-bit environment and inspect the win10toast import in the traceback. Compare the interpreter running the script with the environment where pywin32 is installed; the issue needs a reproducible project-level fix or a clearer report of the expected change.

Written by the indexing model from the issue text.

Description

While running cricket_live_score.py it throws the following error. Even if the module is already installed.

Error Message:
Traceback (most recent call last):
  File "C:\Users\Admin\Desktop\test.py", line 4, in <module>
    from win10toast import ToastNotifier
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\win10toast\__init__.py", line 19, in <module>
    from win32api import GetModuleHandle
ModuleNotFoundError: No module named 'win32api
Installed Module:
C:\Users\Admin>pip install pywin32
Requirement already satisfied: pywin32 in c:\users\admin\appdata\local\programs\python\python37-32\lib\site-packages (225)
Dominant language
Python
Stars
35.4k
Forks
12.9k
Avg merge
2h 37m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from geekcomputers/Python

All issues in geekcomputers/Python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.