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

is there a way to control poetry's own dependencies? #7877

Closed
xytxytxyt opened this issue May 4, 2023 · 3 comments
Closed

is there a way to control poetry's own dependencies? #7877

xytxytxyt opened this issue May 4, 2023 · 3 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@xytxytxyt
Copy link

xytxytxyt commented May 4, 2023

poetry installs its own dependencies separately:

$ poetry -V
Poetry version 1.1.15
$ ls -d1 /home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/requests*
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/requests
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/requests-2.30.0.dist-info
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/requests_toolbelt
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/requests_toolbelt-0.9.1.dist-info
$ ls -d1 /home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/urllib*
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/urllib3
/home/circleci/.local/share/pypoetry/venv/lib/python3.9/site-packages/urllib3-2.0.2.dist-info

(this is inside a cloud ci instance that installs poetry afresh every time it runs)

both the above versions are affected by psf/cachecontrol#292

so pinning versions in our projects doesn't help because the affected versions are inside poetry itself

is there a way to control this? i looked at the script from https://install.python-poetry.org and didn't see anything in the argparse arguments that stood out... but asking in case there is a way

@xytxytxyt xytxytxyt added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 4, 2023
@Secrus
Copy link
Member

Secrus commented May 4, 2023

On such an old version, the only way is to manually get into the venv Poetry is installed in and reinstall packages you want with pip. This issue is not present on Poetry 1.2+, so I would highly encourage migration to newer versions.

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2023
@xytxytxyt
Copy link
Author

i see... we have poetry pinned to 1.1.15 because we are affected by #6301 which we have not had time to address... thanks for the manual update suggestion, i will try it

rymarczy added a commit to mbta/lamp that referenced this issue May 5, 2023
Our github action CD builds are currently failing with an `HTTPResponse` AttributeError.

Per these updates:
python-poetry/poetry#7877
psf/cachecontrol#292

This issue is related to the pinned dependencies installed by poetry based on our version selection.

Any version of poetry passed 1.2 should not have this issue.

I also added ipykernel as a dev dependency to use Python notebooks with the poetry shell.

Asana Task: https://app.asana.com/0/1204517240145658/1204531708939345
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants