After the last update of python-poetry-core to 1.4.0,and python-cleo to 2.0.0-1 : poetry is broken in 2 ways. These are triggered by running the command: poetry version xxx 1) missing dependency on python-rapidfuzz which leads to this error: File "/usr/lib/python3.10/site-packages/cleo/_utils.py", line 8, in <module> from rapidfuzz.distance import Levenshtein ModuleNotFoundError: No module named 'rapidfuzz' 2) After installing rapidfuzz, get this error which I haven't found a fix for from cleo.exceptions import CleoException ImportError: cannot import name 'CleoException' from 'cleo.exceptions' (/usr/lib/python3.10/site-packages/cleo/exceptions/__init__.py) Thanks gene
On 11/24/22 08:50, Genes Lists wrote:
After the last update of python-poetry-core to 1.4.0,and python-cleo to ... 2) After installing rapidfuzz, get this error
Sorry - more complete trace back shows fault stemming from poetry app itself: from poetry.console.application import main File "/usr/lib/python3.10/site-packages/poetry/console/application.py", line 15, in <module> from cleo.exceptions import CleoException ImportError: cannot import name 'CleoException' from 'cleo.exceptions' (/usr/lib/python3.10/site-packages/cleo/exceptions/__init__.py)
This seems to be fixed upstream in: commit 14b7f1ee0503533d1099684700716ddcdbcdaad7 Author: David Hotham <david.hotham@blueyonder.co.uk> Date: Tue Nov 22 15:19:49 2022 +0000 Cleo 2.0 (#7070) The offending line in console/application.py was removed. So it should work fine. Can you please cherry-pick as appropriate or build git head instead to fix our broken poetry app? thanks. gene
On 11/24/22 09:23, Genes Lists wrote:
The offending line in console/application.py was removed. So it should work fine.
1) I built and tested poetry git HEAD and it works fine. So we have a good path forward to resolving the bug. 2) Can we also please remove the circular depends() dependency between poetry and poetry-plugin-export It should be sufficient to keep makedepend=('poetry') in plugin-export. And let plugin-export be optional dependency for poetry, as its not needed to build poetry best I can tell. If really is 'required' for poetry run time then can be epends() in poetry - but lets remove the circular dep either way please. thanks. gene
On Thu, Nov 24, 2022 at 09:58:37AM -0500, Genes Lists wrote:
On 11/24/22 09:23, Genes Lists wrote:
The offending line in console/application.py was removed. So it should work fine.
1) I built and tested poetry git HEAD and it works fine. So we have a good path forward to resolving the bug.
hello gene. I applied fix to python-poetry-1.2.2-2 sorry for breaking poetry
2) Can we also please remove the circular depends() dependency between poetry and poetry-plugin-export
It should be sufficient to keep makedepend=('poetry') in plugin-export. And let plugin-export be optional dependency for poetry, as its not needed to build poetry best I can tell. If really is 'required' for poetry run time then can be epends() in poetry - but lets remove the circular dep either way please.
will look.
thanks.
gene
-- Sincerely, Alexander | Trusted User
participants (2)
-
Alexander Epaneshnikov
-
Genes Lists