mtkennerly / poetry-dynamic-versioning

Plugin for Poetry to enable dynamic versioning based on VCS tags
MIT License
607 stars 35 forks source link

Plugin installation crashes #176

Closed NeffIsBack closed 6 months ago

NeffIsBack commented 6 months ago

Hi! I am trying to add the plugin to poetry, but it fails mid installation with the following error: image This looks to me as if pypoetry uses pycparser as well, so you can't install it again...? The issue could also be that it is already installed as dependency: image

Any idea how this problem could be resolved?

mtkennerly commented 6 months ago

Hi! I'm not sure why that's happening, but I can try to help narrow it down. Some questions:

Based on the python3/dist-packages path, I'm assuming you installed Poetry via your system package manager. Is that right? I know Poetry can be a bit finicky if it's not installed in an isolated venv. The first thing I'd suggest trying is uninstall Poetry, then use pipx to install it in isolation (which is also the main recommendation in the Poetry docs):

pipx install poetry
pipx inject poetry "poetry-dynamic-versioning[plugin]"
NeffIsBack commented 6 months ago

The last bullet point was a good hint! I originally installed poetry with apt and probably therefore pycparser was installed with another package before. Installing it with pipx worked fine and now i can install the plugin. Thanks for the help! I was running py3.11.8 on kali.