Skip to content
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

Plugin installation crashes #176

Closed
NeffIsBack opened this issue Apr 1, 2024 · 2 comments
Closed

Plugin installation crashes #176

NeffIsBack opened this issue Apr 1, 2024 · 2 comments

Comments

@NeffIsBack
Copy link

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
Copy link
Owner

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

  • What version of Python are you using?
  • What version of Poetry are you using?
  • What OS/distro are you using?
  • How did you install Poetry?

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants