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

Support installing/running with pipx - fixes #238 #241

Closed
wants to merge 1 commit into from

Conversation

maxwell-k
Copy link

@maxwell-k maxwell-k commented Jul 26, 2023

The curl plugin for peru uses the following as its shebang line:

#! /usr/bin/env python3

If the user is using pipx, then the system Python interpreter — /usr/bin/env python3 — likely does not have the peru package installed.

Before this change the curl plugin always uses a get_version function from the peru package and therefore will error if the Python interpreter does not have the peru package installed.

After this change the curl plugin can succeed with only standard library modules available.

Fixes #238

The curl plugin for peru uses the following as its shebang line:

    #! /usr/bin/env python3

If the user is using pipx, then the system Python interpreter —
`/usr/bin/env python3` —  likely does not have the peru package
installed.

Before this change the curl plugin always uses a `get_version` function
from the peru package and therefore will error if the Python interpreter
does not have the peru package installed.

After this change the curl plugin can succeed with only standard library
modules available.
@jbrubake
Copy link

jbrubake commented Aug 9, 2023

What would it take to get this merged? I submitted the initial issue and l have found peru to be a great tool that I use quite a bit.

@maxwell-k maxwell-k closed this Feb 19, 2024
@jbrubake
Copy link

@oconnor663 @olson-sean-k if this were re-opened, could you merge it? I ran into this issue again on a new system and it took me half a day to remember how to fix it

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

Successfully merging this pull request may close these issues.

Import error when running from a venv
2 participants