[Bug 1193382] New: python-poetry is majorly broken
http://bugzilla.opensuse.org/show_bug.cgi?id=1193382 Bug ID: 1193382 Summary: python-poetry is majorly broken Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Critical Priority: P5 - None Component: Development Assignee: screening-team-bugs@suse.de Reporter: lucasiregistraaisiti@protonmail.ch QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0 Build Identifier: Poetry crashes while trying to install something in a virtualenv Reproducible: Always Steps to Reproduce: 1. poetry new foo 2. cd foo 3. poetry add black Actual Results: Using version ^21.11b1 for black Updating dependencies Resolving dependencies... (0.7s) Writing lock file Package operations: 16 installs, 0 updates, 0 removals ��� Installing pyparsing (3.0.6): Failed EnvCommandError Command ['/home/<user>/.cache/pypoetry/virtualenvs/foo-4uHc0o_q-py3.8/bin/python', '-'] errored with the following return code 1, and output: Traceback (most recent call last): File "<stdin>", line 23, in <module> ImportError: attempted relative import with no known parent package input was : (followed by what seems to be the content of /usr/lib/python3.8/site-packages/packaging/tags.py) at /usr/lib/python3.8/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): Failed to add packages, reverting the pyproject.toml file to its original content. Expected Results: Poetry is able to add `black` to pyproject.toml, and install it in a virtualenv. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193382 http://bugzilla.opensuse.org/show_bug.cgi?id=1193382#c1 ades ventinove <lucasiregistraaisiti@protonmail.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS Assignee|screening-team-bugs@suse.de |lucasiregistraaisiti@proton | |mail.ch --- Comment #1 from ades ventinove <lucasiregistraaisiti@protonmail.ch> --- Created attachment 854308 --> http://bugzilla.opensuse.org/attachment.cgi?id=854308&action=edit Patch file After digging a bit more, this seems to be an incompatibility between poetry and packaging >= 21.0, see https://github.com/python-poetry/poetry/pull/4362, https://github.com/python-poetry/poetry/pull/4748, https://github.com/python-poetry/poetry/pull/4749 and https://github.com/python-poetry/poetry/issues/4752 for more details. The attached patch file seems to work as a stopgap. I've just sent the patch to the project on OSB as well: https://build.opensuse.org/request/show/935641 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1193382 http://bugzilla.opensuse.org/show_bug.cgi?id=1193382#c2 ades ventinove <lucasiregistraaisiti@protonmail.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #2 from ades ventinove <lucasiregistraaisiti@protonmail.ch> --- The patch was merged -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com