-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Impossible to install in Python3.5 on debian, even with pip #1123
Comments
Okay it's a bit stranger. Support for 3.6+ was added here: #483 Before that all Python 3.x was supposed to be unsupported, so I don't quite understand why pip tries to install version 0.10. It seems there was never a clear motivation for why only 3.6+ is supported. I am hopeful that this means support can be added without too much trouble. |
These are the steps which I think would be required:
I'm not sure if this is desired or not though. |
@rvolgers Thanks for the issue but Python3.5 has never been supported. The CLI has been installable in other versions but that was due to an issue in our When we went to support Python3, we made the explicit decision to only support the newest Python3 version (3.6 at the time). In the ideal case, we will only need to support a single version of Python and customers never have to care what version (or even that it is written in Python). We are getting closer to this ideal world with our installers. For example, the MSI for windows we provide has Python packaged with it. This means windows users, can just install without needing to go download python or make sure they have the right version. For linux, we support Linux Brew and shortly will have a snap (not sure if we have it published yet but we did accept a contribution recently for snap support). Installing with pip (even though it is not recommended), requires you to make sure you are installing in a supported version. Since this isn't the case, you should either install the CLI into a supported Python version with pip or use one of our installers. Closing as Python3.5 is not supported. |
Thanks for explaining your decision. For what it's worth I'm not a fan of this approach. The aws-sam-cli tool is extremely highly privileged when used for deployments and depending on things like brew or snap or shipping huge binary dependencies that were built in unknown circumstances from uncertain sources means we now have to trust many more people and systems. I realize it's still in beta and moving fast, but I was hoping to benefit from some of the ergonomic improvements around lambdas for some boring old software. |
@rvolgers You can still use pip just with supported versions, but problems that come about are then left to you (old setuptools, wheels, libraries conflicting with other projects you have installed, etc). Our goal with installers, are to make installations more reproducible and put the burden off customers.
Can you explain this further? Our brew and snap formulas are all open sourced, brew currently builds from source into a venv. Not sure what about our current approach makes you uneasy. |
Simple installation on Linux is extremely important, without tools like brew - I'm trying to run SAM on Travis and this is really hard. I feel that this is the wrong approach :/ |
For what it's worth, I will no longer be following this issue since with the release of Debian Buster there is now a viable path forward for us that doesn't involve taking a dependency on another distribution channel like snap or brew. I never answered the question why relying on more distribution channels makes me uneasy, because I feel like it is obvious and don't quite know where to begin explaining it. But here goes:
Especially in small teams you are asking someone to make a judgement call that all of this will be fine and will remain so for however long the dependency persists, even after the person who originally added it has moved on. The types and number of questions it raises is much greater than adding a dependency on a package in an already trusted distribution channel, something we also don't take lightly. |
Description
It is not possible to install aws-sam-cli on Debian stable.
Steps to reproduce
Observed result
The above error message.
It turns out that aws-sam-cli dropped support for Python 3.5 in 0.11. So on Debian stable
pip install aws-sam-cli
will silently revert to trying to install 0.10, which for some reason isn't installable at all anymore.This results in both a very obscure failure and the inability to use aws-sam-cli on a very common platform.
Expected result
Since Debian stable is a very common OS in general and a very common base OS for Docker images in particular I expected to be able to install aws-sam-cli.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The text was updated successfully, but these errors were encountered: