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

pyston dependency Installation failing when trying to install dependencies using poetry in a amd docker container #6412

Open
ppapishe opened this issue Jun 7, 2024 · 1 comment

Comments

@ppapishe
Copy link

ppapishe commented Jun 7, 2024

Describe the issue

We have an internal tool where we call checkov from a python program and for that we have to add checkov as one of the dependency in our pyproject.toml. When we add the latest 3.2.128 version, it is looking for a subdependency pyston. We basically build this tool as a docker container. When I build this container in local mac, it is working properly. When, I try and build this on a CICD pipelines, it tries to build for --platform linux/amd64 it fails with below error.

Do we really need pyston? I manually remove it from poetry.lock and build the image which is working just fine. anyone facing the same issue? Please do let me know.

#13 5.487   RuntimeError
#13 5.487 
#13 5.487   Unable to find installation candidates for pyston (2.3.5)
#13 5.488 
#13 5.488   at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/chooser.py:74 in choose_for
#13 5.501        70│ 
#13 5.501        71│             links.append(link)
#13 5.501        72│ 
#13 5.502        73│         if not links:
#13 5.502     →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
#13 5.502        75│ 
#13 5.503        76│         # Get the best link
#13 5.503        77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
#13 5.503        78│ 
#13 5.504 
#13 5.504 Cannot install pyston.

@gruebel
Copy link
Contributor

gruebel commented Jun 7, 2024

Hey @ppapishe just use Python 3.11 and it won't be installed.

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

No branches or pull requests

2 participants