This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Exception: Cannot import `win32api`!
Type: Stage: resolved
Components: Installation Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: maolvera, zach.ware
Priority: normal Keywords:

Created on 2017-10-03 21:36 by maolvera, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg303650 - (view) Author: Monica (maolvera) Date: 2017-10-03 21:36
Hello, I'm a newbie at Python. I am trying to download Twister to be able to run hardware tests, and it gives me Exception: Cannot import `win32api`!.
I downloaded 'win32_221' and added it to C:\Python27\Scripts

It is still giving me the same error.

This is what I got

TWISTER_PATH is set to `C:\Users\user\Documents\Twister-git_hub_branch\client\executionprocess`.

Traceback (most recent call last):
  File "C:\Users\user\Documents\Twister-git_hub_branch\client\executionprocess\ExecutionProcess.py", line 1563, in <module>
    raise Exception('Cannot import `win32api`!\n')
Exception: Cannot import `win32api`!
msg303652 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2017-10-03 21:44
win32api is part of the third-party pywin32 package, which is most easily installed by running `C:\Python27\python.exe -m pip install pypiwin32`.  For further assistance, please try either the comp.lang.python list at python-list@python.org, the pywin32 list at python-win32@python.org, or the #python channel on freenode.
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 75863
2017-10-03 21:44:00zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg303652

resolution: not a bug
stage: resolved
2017-10-03 21:36:59maolveracreate