Issue 31682: Exception: Cannot import win32api
! (original) (raw)
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
raise Exception('Cannot import win32api
!\n')
Exception: Cannot import win32api
!
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.