yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.31k stars 462 forks source link

Error when installing from git with 3.12.3 #277

Open michaelmesser opened 2 months ago

michaelmesser commented 2 months ago
python -V
Python 3.12.3
Collecting git+https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/
  Running command git clone --filter=blob:none --quiet https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/ 'C:\Users\user\AppData\Local\Temp\pip-req-build-wchu7359'
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      Traceback (most recent call last):
        File "C:\Folder\Hotkeys\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Folder\Hotkeys\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Folder\Hotkeys\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-3wwdi05m\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-3wwdi05m\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-3wwdi05m\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-3wwdi05m\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 4, in <module>
        File "C:\Users\user\AppData\Local\Temp\pip-req-build-wchu7359\uiautomation\__init__.py", line 4, in <module>
          from .uiautomation import *
        File "C:\Users\user\AppData\Local\Temp\pip-req-build-wchu7359\uiautomation\uiautomation.py", line 22, in <module>
          import comtypes  # need 'pip install comtypes'
          ^^^^^^^^^^^^^^^
      ModuleNotFoundError: No module named 'comtypes'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

  Cloning https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/ to c:\users\user\appdata\local\temp\pip-req-build-wchu7359
  Resolved https://github.com/yinkaisheng/Python-UIAutomation-for-Windows/ to commit c897b68b4dbac44b86dbc3e110757c285f8b68a0
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'