Last active
September 24, 2021 22:37
-
-
Save DeltaWhy/e38a2231706cc97ea9011e5eb461eec5 to your computer and use it in GitHub Desktop.
Poetry bug repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.9 | |
RUN pip list | |
RUN pip install poetry 'setuptools<58' | |
COPY . /app | |
WORKDIR /app | |
RUN poetry install -vvv || poetry run pip list && false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sending build context to Docker daemon 3.072kB | |
Step 1/6 : FROM python:3.9 | |
---> a5210955ee89 | |
Step 2/6 : RUN pip list | |
---> Running in 4c7a14de5184 | |
Package Version | |
---------- ------- | |
pip 21.2.4 | |
setuptools 57.5.0 | |
wheel 0.37.0 | |
Removing intermediate container 4c7a14de5184 | |
---> f7bc338820c5 | |
Step 3/6 : RUN pip install poetry 'setuptools<58' | |
---> Running in 697d28c6899d | |
Collecting poetry | |
Downloading poetry-1.1.10-py2.py3-none-any.whl (174 kB) | |
Requirement already satisfied: setuptools<58 in /usr/local/lib/python3.9/site-packages (57.5.0) | |
Collecting pexpect<5.0.0,>=4.7.0 | |
Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB) | |
Collecting requests-toolbelt<0.10.0,>=0.9.1 | |
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) | |
Collecting virtualenv<21.0.0,>=20.0.26 | |
Downloading virtualenv-20.8.1-py2.py3-none-any.whl (5.3 MB) | |
Collecting keyring<22.0.0,>=21.2.0 | |
Downloading keyring-21.8.0-py3-none-any.whl (32 kB) | |
Collecting cachy<0.4.0,>=0.3.0 | |
Downloading cachy-0.3.0-py2.py3-none-any.whl (20 kB) | |
Collecting clikit<0.7.0,>=0.6.2 | |
Downloading clikit-0.6.2-py2.py3-none-any.whl (91 kB) | |
Collecting html5lib<2.0,>=1.0 | |
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB) | |
Collecting requests<3.0,>=2.18 | |
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB) | |
Collecting shellingham<2.0,>=1.1 | |
Downloading shellingham-1.4.0-py2.py3-none-any.whl (9.4 kB) | |
Collecting packaging<21.0,>=20.4 | |
Downloading packaging-20.9-py2.py3-none-any.whl (40 kB) | |
Collecting crashtest<0.4.0,>=0.3.0 | |
Downloading crashtest-0.3.1-py3-none-any.whl (7.0 kB) | |
Collecting cleo<0.9.0,>=0.8.1 | |
Downloading cleo-0.8.1-py2.py3-none-any.whl (21 kB) | |
Collecting poetry-core<1.1.0,>=1.0.6 | |
Downloading poetry_core-1.0.6-py2.py3-none-any.whl (424 kB) | |
Collecting pkginfo<2.0,>=1.4 | |
Downloading pkginfo-1.7.1-py2.py3-none-any.whl (25 kB) | |
Collecting cachecontrol[filecache]<0.13.0,>=0.12.4 | |
Downloading CacheControl-0.12.6-py2.py3-none-any.whl (19 kB) | |
Collecting tomlkit<1.0.0,>=0.7.0 | |
Downloading tomlkit-0.7.2-py2.py3-none-any.whl (32 kB) | |
Collecting msgpack>=0.5.2 | |
Downloading msgpack-1.0.2-cp39-cp39-manylinux1_x86_64.whl (294 kB) | |
Collecting lockfile>=0.9 | |
Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB) | |
Collecting pylev<2.0,>=1.3 | |
Downloading pylev-1.4.0-py2.py3-none-any.whl (6.1 kB) | |
Collecting pastel<0.3.0,>=0.2.0 | |
Downloading pastel-0.2.1-py2.py3-none-any.whl (6.0 kB) | |
Collecting webencodings | |
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB) | |
Collecting six>=1.9 | |
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) | |
Collecting jeepney>=0.4.2 | |
Downloading jeepney-0.7.1-py3-none-any.whl (54 kB) | |
Collecting SecretStorage>=3.2 | |
Downloading SecretStorage-3.3.1-py3-none-any.whl (15 kB) | |
Collecting pyparsing>=2.0.2 | |
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB) | |
Collecting ptyprocess>=0.5 | |
Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) | |
Collecting urllib3<1.27,>=1.21.1 | |
Downloading urllib3-1.26.7-py2.py3-none-any.whl (138 kB) | |
Collecting charset-normalizer~=2.0.0 | |
Downloading charset_normalizer-2.0.6-py3-none-any.whl (37 kB) | |
Collecting idna<4,>=2.5 | |
Downloading idna-3.2-py3-none-any.whl (59 kB) | |
Collecting certifi>=2017.4.17 | |
Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB) | |
Collecting cryptography>=2.0 | |
Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB) | |
Collecting cffi>=1.12 | |
Downloading cffi-1.14.6-cp39-cp39-manylinux1_x86_64.whl (405 kB) | |
Collecting pycparser | |
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB) | |
Collecting backports.entry-points-selectable>=1.0.4 | |
Downloading backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB) | |
Collecting platformdirs<3,>=2 | |
Downloading platformdirs-2.3.0-py3-none-any.whl (13 kB) | |
Collecting distlib<1,>=0.3.1 | |
Downloading distlib-0.3.3-py2.py3-none-any.whl (496 kB) | |
Collecting filelock<4,>=3.0.0 | |
Downloading filelock-3.0.12-py3-none-any.whl (7.6 kB) | |
Installing collected packages: pycparser, urllib3, idna, charset-normalizer, cffi, certifi, requests, pylev, pastel, msgpack, jeepney, cryptography, crashtest, webencodings, six, SecretStorage, pyparsing, ptyprocess, platformdirs, lockfile, filelock, distlib, clikit, cachecontrol,backports.entry-points-selectable, virtualenv, tomlkit, shellingham, requests-toolbelt, poetry-core, pkginfo, pexpect, packaging, keyring, html5lib, cleo, cachy, poetry | |
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead:https://pip.pypa.io/warnings/venv | |
Successfully installed SecretStorage-3.3.1 backports.entry-points-selectable-1.1.0 cachecontrol-0.12.6 cachy-0.3.0 certifi-2021.5.30 cffi-1.14.6 charset-normalizer-2.0.6 cleo-0.8.1 clikit-0.6.2 crashtest-0.3.1 cryptography-3.4.8 distlib-0.3.3 filelock-3.0.12 html5lib-1.1 idna-3.2 jeepney-0.7.1 keyring-21.8.0 lockfile-0.12.2 msgpack-1.0.2 packaging-20.9 pastel-0.2.1 pexpect-4.8.0 pkginfo-1.7.1 platformdirs-2.3.0 poetry-1.1.10 poetry-core-1.0.6 ptyprocess-0.7.0 pycparser-2.20 pylev-1.4.0 pyparsing-2.4.7 requests-2.26.0 requests-toolbelt-0.9.1 shellingham-1.4.0 six-1.16.0 tomlkit-0.7.2 urllib3-1.26.7 virtualenv-20.8.1 webencodings-0.5.1 | |
Removing intermediate container 697d28c6899d | |
---> 9e0e9bf2b154 | |
Step 4/6 : COPY . /app | |
---> 881b08cd9779 | |
Step 5/6 : WORKDIR /app | |
---> Running in 779ed6f09b56 | |
Removing intermediate container 779ed6f09b56 | |
---> 051e004fbfe8 | |
Step 6/6 : RUN poetry install -vvv || poetry run pip list && false | |
---> Running in 03f6da8a5faa | |
Creating virtualenv poetry-bug-9TtSrW0h-py3.9 in /root/.cache/pypoetry/virtualenvs | |
Using virtualenv: /root/.cache/pypoetry/virtualenvs/poetry-bug-9TtSrW0h-py3.9 | |
Updating dependencies | |
Resolving dependencies... | |
1: fact: poetry-bug is 0.1.0 | |
1: derived: poetry-bug | |
1: fact: poetry-bug depends on simpleeval (^0.9.10) | |
1: selecting poetry-bug (0.1.0) | |
1: derived: simpleeval (>=0.9.10,<0.10.0) | |
1: selecting simpleeval (0.9.10) | |
1: Version solving took 4.847 seconds. | |
1: Tried 1 solutions. | |
Writing lock file | |
Finding the necessary packages for the current system | |
Package operations: 1 install, 0 updates, 0 removals | |
• Installing simpleeval (0.9.10) | |
Stack trace: | |
7 /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:202 in _execute_operation | |
200│ | |
201│ try: | |
→ 202│ result = self._do_execute_operation(operation) | |
203│ except EnvCommandError as e: | |
204│ if e.e.returncode == -2: | |
6 /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:276 in _do_execute_operation | |
274│ return 0 | |
275│ | |
→ 276│ result = getattr(self, "_execute_{}".format(method))(operation) | |
277│ | |
278│ if result != 0: | |
5 /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:411 in _execute_install | |
409│ | |
410│ def _execute_install(self, operation): # type: (Install) -> None | |
→ 411│ return self._install(operation) | |
412│ | |
413│ def _execute_update(self, operation): # type: (Update) -> None | |
4 /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:449 in _install | |
447│ args.insert(2, "-U") | |
448│ | |
→ 449│ return self.run_pip(*args) | |
450│ | |
451│ def _update(self, operation): | |
3 /usr/local/lib/python3.9/site-packages/poetry/installation/executor.py:300 in run_pip | |
298│ def run_pip(self, *args, **kwargs): # type: (...) -> int | |
299│ try: | |
→ 300│ self._env.run_pip(*args, **kwargs) | |
301│ except EnvCommandError as e: | |
302│ output = decode(e.e.output) | |
2 /usr/local/lib/python3.9/site-packages/poetry/utils/env.py:1148 in run_pip | |
1146│ pip = self.get_pip_command() | |
1147│ cmd = pip + list(args) | |
→ 1148│ return self._run(cmd, **kwargs) | |
1149│ | |
1150│ def _run(self, cmd, **kwargs): | |
1 /usr/local/lib/python3.9/site-packages/poetry/utils/env.py:1440 in _run | |
1438│ def _run(self, cmd, **kwargs): | |
1439│ kwargs["env"] = self.get_temp_environ(environ=kwargs.get("env")) | |
→ 1440│ return super(VirtualEnv, self)._run(cmd, **kwargs) | |
1441│ | |
1442│ def get_temp_environ( | |
EnvCommandError | |
Command ['/root/.cache/pypoetry/virtualenvs/poetry-bug-9TtSrW0h-py3.9/bin/pip', 'install', '--no-deps', '/root/.cache/pypoetry/artifacts/49/c9/a8/c45627062eb893ac0685ce1146f6b868eea117d5803fc63c56d21326de/simpleeval-0.9.10.tar.gz'] errored with the following return code 1, and output: | |
Processing /root/.cache/pypoetry/artifacts/49/c9/a8/c45627062eb893ac0685ce1146f6b868eea117d5803fc63c56d21326de/simpleeval-0.9.10.tar.gz | |
ERROR: Command errored out with exit status 1: | |
command: /root/.cache/pypoetry/virtualenvs/poetry-bug-9TtSrW0h-py3.9/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-2crdti50/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-2crdti50/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fe7w9x7v | |
cwd: /tmp/pip-req-build-2crdti50/ | |
Complete output (1 lines): | |
error in simpleeval setup command: use_2to3 is invalid. | |
---------------------------------------- | |
WARNING: Discarding file:///root/.cache/pypoetry/artifacts/49/c9/a8/c45627062eb893ac0685ce1146f6b868eea117d5803fc63c56d21326de/simpleeval-0.9.10.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. | |
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. | |
at /usr/local/lib/python3.9/site-packages/poetry/utils/env.py:1180 in _run | |
1176│ output = subprocess.check_output( | |
1177│ cmd, stderr=subprocess.STDOUT, **kwargs | |
1178│ ) | |
1179│ except CalledProcessError as e: | |
→ 1180│ raise EnvCommandError(e, input=input_) | |
1181│ | |
1182│ return decode(output) | |
1183│ | |
1184│ def execute(self, bin, *args, **kwargs): | |
Package Version | |
---------- ------- | |
pip 21.2.4 | |
setuptools 58.1.0 | |
wheel 0.37.0 | |
The command '/bin/sh -c poetry install -vvv || poetry run pip list && false' returned a non-zero code: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "poetry-bug" | |
version = "0.1.0" | |
description = "" | |
authors = ["Your Name <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
setuptools = "<58" | |
simpleeval = "^0.9.10" | |
[tool.poetry.dev-dependencies] | |
setuptools = "<58" | |
[build-system] | |
requires = ["poetry-core>=1.0.0", "setuptools<58"] | |
build-backend = "poetry.core.masonry.api" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment