question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

old wheel: `pip install pywinauto` Fails on Windows 10 with Python 3.7.4

See original GitHub issue

Expected Behavior

Successfully installed pywinauto.

Actual Behavior

    copying build\scripts-3.7\clear_comtypes_cache.py -> c:\users\wolfgangrichter\test\Scripts
    error: error in setup script: command 'bdist_wininst' has no such option 'install_script'

    ----------------------------------------
Command "c:\users\wolfgangrichter\test\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\WOLFGA~1\\AppData\\Local\\Temp\\pip-install-tah3mf0q\\comtypes\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\WOLFGA~1\AppData\Local\Temp\pip-record-n8kykc8y\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\wolfgangrichter\test\include\site\python3.7\comtypes" failed with error code 1 in C:\Users\WOLFGA~1\AppData\Local\Temp\pip-install-tah3mf0q\comtypes\
You are using pip version 19.0.3, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Steps to Reproduce the Problem

  1. Using Python 3.7 on Windows Server 2019
  2. Run pip install pywinauto

Short Example of Code to Demonstrate the Problem

N/A

Specifications

  • Pywinauto version: 0.6.7 (PyPI)
  • Python version and bitness: Python 3.7.4, x86_64
  • Platform and OS: Windows 10 Pro, 64-bit (AMD64)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
theonewolfcommented, Jan 16, 2020

Finally found a solution to this, I needed an upgraded wheel package:

C:\Users\WolfgangRichter>python3 -mpip install --upgrade wheel
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Installing collected packages: wheel
  WARNING: The script wheel.exe is installed in 'C:\Users\WolfgangRichter\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed wheel-0.33.6

C:\Users\WolfgangRichter>python3 -mpip install comtypes
Collecting comtypes
  Using cached https://files.pythonhosted.org/packages/fb/b8/f8aa21774acb4535e32f6a89055876ca497ff806f9b1b1912b469284a61e/comtypes-1.1.7.zip
Building wheels for collected packages: comtypes
  Building wheel for comtypes (setup.py) ... done
  Created wheel for comtypes: filename=comtypes-1.1.7-cp37-none-any.whl size=164609 sha256=af9b931f224e41e279c0f0856cea85a26c1c1561935083765a62c9f566b075ce
  Stored in directory: C:\Users\WolfgangRichter\AppData\Local\pip\Cache\wheels\a7\a5\e1\49a7738e763143027c7ec97514213055e6c5a978a385541668
Successfully built comtypes
Installing collected packages: comtypes
Successfully installed comtypes-1.1.7

C:\Users\WolfgangRichter>python3 -mpip install pywinauto
Collecting pywinauto
  Using cached https://files.pythonhosted.org/packages/ba/44/fba89cdd8330999f342f3560c779084c45b012805a53d38732edfe95f0ee/pywinauto-0.6.8-py2.py3-none-any.whl
Requirement already satisfied: comtypes in c:\users\wolfgangrichter\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pywinauto) (1.1.7)
Requirement already satisfied: pywin32 in c:\users\wolfgangrichter\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pywinauto) (227)
Requirement already satisfied: six in c:\users\wolfgangrichter\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from pywinauto) (1.12.0)
Installing collected packages: pywinauto
Successfully installed pywinauto-0.6.8
1reaction
duytt1-nalcommented, Jul 24, 2020

I stuck when installing comtypes 1.1.7 then bypass by upgrade wheel. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import pywinauto on Windows 10 - Stack Overflow
I installed pywinauto using pip install pywinauto . OS: Windows 10. Python: 3.6.2. When I run python and try to import pywinauto ,...
Read more >
Bountysource
old wheel : `pip install pywinauto` Fails on Windows 10 with Python 3.7.4.
Read more >
PyInstaller Documentation - Read the Docs
pip install -U pyinstaller. Open a command prompt/shell window, and navigate to the directory where your .py file is located, then build your....
Read more >
pywinauto - PyPI
A set of Python modules to automate the Microsoft Windows GUI.
Read more >
Untitled
Make sure Wheel and the latest version of setuptools is installed on your system ... old wheel: pip install pywinauto Fails on Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found