-
Notifications
You must be signed in to change notification settings - Fork 54
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
Export fails due to urllib3 version mismatch #239
Comments
I've seen this across multiple versions of Poetry: 1.3.2, 1.4.2, 1.5.1, and 1.6.1. |
It appears to be related to #183 |
I have a similar problem, I guess. I'm using Poetry version 1.4.2, which had been depending on poetry-plugin-export 1.5.0 until 2 days ago. Then I started to get the following error: #9 12.84 virtualenv 20.24.6 requires platformdirs<4,>=3.9.1, but you'll have platformdirs 2.6.2 which is incompatible.
#9 12.84 poetry-plugin-export 1.6.0 requires poetry<2.0.0,>=1.6.0, but you'll have poetry 1.4.2 which is incompatible.
#9 12.84 poetry-plugin-export 1.6.0 requires poetry-core<2.0.0,>=1.7.0, but you'll have poetry-core 1.5.2 which is incompatible.
#9 12.84 Successfully installed SecretStorage-3.3.3 attrs-23.1.0 build-0.10.0 cachecontrol-0.12.14 cffi-1.16.0 cleo-2.1.0 crashtest-0.4.1 cryptography-41.0.5 distlib-0.3.7 dulwich-0.21.6 filelock-3.13.1 html5lib-1.1 importlib-metadata-6.8.0 importlib-resources-6.1.0 installer-0.7.0 jaraco.classes-3.3.0 jeepney-0.8.0 jsonschema-4.19.2 jsonschema-specifications-2023.7.1 keyring-23.13.1 lockfile-0.12.2 more-itertools-10.1.0 msgpack-1.0.7 packaging-23.2 pexpect-4.8.0 pkginfo-1.9.6 pkgutil-resolve-name-1.3.10 platformdirs-2.6.2 poetry-1.4.2 poetry-core-1.5.2 poetry-plugin-export-1.6.0 ptyprocess-0.7.0 pycparser-2.21 pyproject-hooks-1.0.0 rapidfuzz-3.5.1 referencing-0.30.2 requests-toolbelt-0.10.1 rpds-py-0.10.6 shellingham-1.5.4 tomli-2.0.1 tomlkit-0.12.1 trove-classifiers-2023.10.18 urllib3-1.26.18 virtualenv-20.24.6 webencodings-0.5.1 zipp-3.17.0
#9 13.01 WARNING: You are using pip version 20.2.4; however, version 23.3.1 is available.
#9 13.01 You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
#9 DONE 13.2s
#11 [4/8] COPY . /app
#11 DONE 0.0s
#12 [5/8] WORKDIR /app
#12 DONE 0.0s
#13 [6/8] RUN eval $(ssh-agent -s) && mkdir -p ~/.ssh && chmod 0600 ~/.ssh &...
#13 0.278 Agent pid 8
#13 0.304 # gitlab.trendyol.com:22 SSH-2.0-OpenSSH_7.4
#13 0.314 # gitlab.trendyol.com:22 SSH-2.0-OpenSSH_7.4
#13 0.322 # gitlab.trendyol.com:22 SSH-2.0-OpenSSH_7.4
#13 0.330 # gitlab.trendyol.com:22 SSH-2.0-OpenSSH_7.4
#13 0.337 # gitlab.trendyol.com:22 SSH-2.0-OpenSSH_7.4
#13 DONE 0.4s
#14 [7/8] RUN poetry export -f requirements.txt --without-hashes --without-u...
#14 1.298 /usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.18) or chardet (3.0.4) doesn't match a supported version!
#14 1.298 warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
#14 1.298
#14 1.298 to_pep_508() got an unexpected keyword argument 'resolved'
#14 ERROR: executor failed running [/bin/bash -c poetry export -f requirements.txt --without-hashes --without-urls --without dev --output requirements.txt]: runc did not terminate sucessfully
------
> [7/8] RUN poetry export -f requirements.txt --without-hashes --without-urls --without dev --output requirements.txt:
------
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = failed to build LLB: executor failed running [/bin/bash -c poetry export -f requirements.txt --without-hashes --without-urls --without dev --output requirements.txt]: runc did not terminate sucessfully It seems that two days ago, a new version of poetry-plugin-export was released. Since Poetry depends I solved the problem by installing specifically |
I see this same issue my my personal project.
|
This is not working for me. |
I've temporarily fixed this for myself by requiring |
This worked for me. Thanks! |
* Hopefully resolves #1006 * resolved 2023/4 regressions in NI Water data return Also resolved issues with.... * python-poetry/poetry-plugin-export#183 * python-poetry/poetry-plugin-export#239 * actions/upload-artifact#478 * actions/upload-artifact#478 (comment) * after all that it was a collision between the pytest configurations in the ini and in pyproject.toml. pytests now runs locally
Got this error:
Not sure if that related, but some of the errors are the same |
added the following to my
fixes it but it's deffo super ugly... FYI: the problems only seems to happen inside my docker container when exporting the requirements.txt file; the dockerfile looks lomething like this (sort of pseudo code):
|
I'm using version 1.5.0 of this plugin.
Not quite sure how I could contribute..
The text was updated successfully, but these errors were encountered: