andfoy / pywinpty

Pseudoterminals for Windows in Python
MIT License
118 stars 27 forks source link

Installing v2.0.14 requires Rust #458

Open jmkolbe opened 1 month ago

jmkolbe commented 1 month ago

Since the release of version 2.0.14, the installation of our toolchain fails due to missing Rust installation. Version 2.0.13 could be still be installed as binary.

The system is Windows 10 Enterprise, running Python 3.8.19 in Conda (miniforge) 23.3.1.

Collecting pywinpty>=1.1.0 (from terminado>=0.8.1->notebook==6.0->xxx)
  Using cached pywinpty-2.0.14.tar.gz (27 kB)
  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 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  Preparing metadata (pyproject.toml) did not run successfully.
  exit code: 1

  [6 lines of output]

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  [end of output]
jmkolbe commented 1 month ago

I see now there is no pre-compiled package for Python 3.8. Can you provide that please?

jmkolbe commented 1 month ago

As https://github.com/andfoy/pywinpty/blob/main/pyproject.toml still lists Python 3.8, perhaps this approach makes sense:

kcuzner commented 3 weeks ago

I'm also hitting this, in my case it was when attempting to install jupyter:

Collecting pywinpty (from jupyter-server~=1.4->jupyterlab==3.1.13
...
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]

      Cargo, the Rust package manager, is not installed or is not on PATH.
      This package requires Rust and Cargo to compile extensions. Install it through
      the system's package manager or via https://rustup.rs/

      Checking for Rust toolchain....
      [end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details