moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.74k stars 244 forks source link

Poetry fails to install pyinput, it attempts to install `pywin32` on OSX & Linux #533

Closed myartsev closed 1 year ago

myartsev commented 1 year ago

Description Run poetry add pyinput on OSX.

Output:

(base) ➜  test-project git:(main) ✗ poetry add pyinput
Using version ^0.3.2 for pyinput

Updating dependencies
Resolving dependencies... (0.8s)

Package operations: 2 installs, 0 updates, 0 removals

  • Installing pywin32 (305): Failed

  RuntimeError

  Unable to find installation candidates for pywin32 (305)

  at ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chooser.py:103 in choose_for
       99│
      100│             links.append(link)
      101│
      102│         if not links:
    → 103│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      104│
      105│         # Get the best link
      106│         chosen = max(links, key=lambda link: self._sort_key(package, link))
      107│

Platform and pynput version OSX Ventura 13.1 Attempting to install latest version of pyinput

myartsev commented 1 year ago

Same on Debian 11

myartsev commented 1 year ago

My mistake, I was typing pyinput (different library) instead of pynput 🤦