Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing v2.0.14 requires Rust #458

Open
jmkolbe opened this issue Oct 22, 2024 · 3 comments
Open

Installing v2.0.14 requires Rust #458

jmkolbe opened this issue Oct 22, 2024 · 3 comments

Comments

@jmkolbe
Copy link

jmkolbe commented Oct 22, 2024

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
Copy link
Author

jmkolbe commented Oct 22, 2024

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

@jmkolbe
Copy link
Author

jmkolbe commented Oct 22, 2024

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

  • If possible, provide Python 3.8 binaries for 2.0.14. Otherwise, create a new 2.0.15 release matching 2.0.13
  • Going forward, remove Python 3.8 from pyproject.toml

@kcuzner
Copy link

kcuzner commented Nov 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants