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

1.6.0 has no intel macos wheels #1279

Open
Christos-Hadjinikolis opened this issue Jan 10, 2025 · 3 comments
Open

1.6.0 has no intel macos wheels #1279

Christos-Hadjinikolis opened this issue Jan 10, 2025 · 3 comments

Comments

@Christos-Hadjinikolis
Copy link

Christos-Hadjinikolis commented Jan 10, 2025

Hello,

I encountered an issue when attempting to install libcst==1.6.0 using Python 3.10. The installation fails with the following error message:

error: can't find Rust compiler

If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

To update pip, run:

    pip install --upgrade pip

and then retry package installation.

If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

This appears to be related to the upgrade of PyO3 to version 0.22 in PR #1180. It seems that the dependency on a Rust compiler was introduced with this change.

This issue makes it impossible to install libcst without a Rust compiler, which could be problematic for environments that do not have Rust installed.

Could you please clarify whether this behavior is intended? If not, is there a plan to provide prebuilt wheels for libcst==1.6.0 that would not require a Rust compiler?

Thank you!

@zsol
Copy link
Member

zsol commented Jan 10, 2025

libcst has had a dependency on rust since 0.4.0 a couple of years ago, and there are prebuilt wheels provided accordingly as you can check for yourself at https://pypi.org/project/libcst/#files

Are you by any chance running on an intel mac?

@Christos-Hadjinikolis
Copy link
Author

Yes (running on Intel MacOs). And installing 1.5.1 was fine.

@zsol
Copy link
Member

zsol commented Jan 12, 2025

OK so that's going to be because #1275
I'm happy to accept a PR that restores intel wheels if someone can resolve the issue

@zsol zsol changed the title Unable to Install libcst==1.6.0 with Python 3.10 Due to Missing Rust Compiler 1.6.0 has no intel macos wheels Jan 12, 2025
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