-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Confusing Error if Internal Python Builds do not Run #30
Comments
@WhyNotHugo What CPU architecture and operating system are you on? |
Alpine Edge, amd64. Not sure if related, but I've no idea where where the 3.10 one came from: > rye toolchain list
[email protected]
[email protected] |
Alright, so here is what's happening. At the moment rye always uses
|
I'd rather opt out of downloading python binaries entirely. My distro has working Python packages and I'd rather rely on those than pulling binaries from elsewhere. |
|
@WhyNotHugo I absolutely understand that desire, but in some sense my goal is to get an experience going first that involves ensuring a working cpython installation from the internet, before going into solving distribution provided python installations. These have been a historic challenge to providing a reliable packaging experience. |
@WhyNotHugo this is puzzling
|
But this is exactly the problem that a software distribution solves. E.g.: Alpine has Your distribution no existing mechanism to have a working Python at all? |
I think this comes down to #30 |
I would not say so. Nothing is ever quite as black and white, it's a matter of priorities. The experience I care most about is the one where a developer downloads a tool (let's call it However what I do know is that priority wise right now is making sure that on systems where the self installed downloaded versions should work, they do work, before looking at system Python installations. System python installations are a huge source of frustration right now because of how many customizations they have. Here some motivational reasons on this: |
To resolve this issue, please follow these steps:
Keep in mind that the Rye project is prioritizing the user experience of having a working Python installation downloaded from the internet. This may change in the future to accommodate system installations of Python, but for now, the focus is on ensuring the downloaded versions work properly. |
It doesn't work because Alpine Linux uses musl, and the installed python build is built against glibc. The "no such file or directory" error does not mean that the executable was not found, but rather that the required interpreter to execute it ( |
Oh, I though that the error had been because To be honest, I'm pretty discomforted by the fact that In any case, this general approach is a recipe for disaster, you can't just pull binaries from one distribution channel and run them elsewhere and expect them to work. You should never pull binaries from different sources unless they're explicitly built for the target host. Maybe that would work if they're statically linked, but it still sounds like a bad idea with tiny gotchas all over. This approach of "my distribution is broken and doesn't ship a working Python, I'll pretend that distributions don't exist and reinvent things from scratch" is rather childish IMHO, and you're basically making a solution designed for broken distributions and ignoring the non-broken ones. But hey, you build for the future you want to see, so if you want to see a future where these distributions (which don't even ship a working Python) flourish, then this is definitely the way to go. In any case, this is covered by #30, there's nothing actionable on this ticket.
Yup, it'd been pointed out to me. Regrettably, I'm not looking to switch my Python distribution nor package manager, both the ones I have work for me. I landed here expecting to be able to use rye as a dependency/virtualenv manager, but it's seems this is an all or nothing, so I'll just stick to |
rye add atomicwrites
error: No such file or directory (os error 2)
Closing this as resolved for now. The error message is better now. For actually supporting MUSL I do not have a plan yet. |
With #29 I get:
The text was updated successfully, but these errors were encountered: