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

package has invalid interpreter #492

Closed
caleb15 opened this issue Sep 3, 2020 · 4 comments
Closed

package has invalid interpreter #492

caleb15 opened this issue Sep 3, 2020 · 4 comments

Comments

@caleb15
Copy link

caleb15 commented Sep 3, 2020

Describe the bug
When I try to use okta-awscli (installed through pipx) I get an error:

└─[0] okta-awscli --profile 15five-root-administrator --okta-profile administrator
zsh: /home/caleb/.local/bin/okta-awscli: bad interpreter: /home/caleb/.local/pipx/venvs/okta-awscli/bin/python: no such file or directory

I listed the packages in pipx it said that it had a invalid interpreter:

(deploy) ┌─[caleb@caleb-H110M-A] - [~/Documents/fifteen5-deploy] - [2020-09-03 09:40:51]
└─[0] pipx list
venvs are in /home/caleb/.local/pipx/venvs
apps are exposed on your $PATH at /home/caleb/.local/bin
   package awscli has invalid interpreter /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.5/bin/python3.7
   package okta-awscli has invalid interpreter /home/linuxbrew/.linuxbrew/Cellar/[email protected]/3.8.5/bin/python3.7

How to reproduce
Not quite sure what happened but my guess is:

  1. install pipx through homebrew
  2. Install above packages through pipx
  3. homebrew upgrade
  4. things don't work yo

Expected behavior
packages transition to correct interpreter after upgrade or offer instructions on how to do so

@caleb15
Copy link
Author

caleb15 commented Sep 3, 2020

Solution: pipx reinstall-all

Thanks to @itsayellow :)

#146 (comment)

@caleb15 caleb15 closed this as completed Sep 3, 2020
@itsayellow
Copy link
Contributor

Maybe we need a FAQ for this? Or something more prominent in the documentation?

@MONTYYYYY
Copy link

MONTYYYYY commented Feb 7, 2023

i also had a from oktaawscli.okta_awscli import main ModuleNotFoundError: No module named 'oktaawscli' after i had updated my Mac OS version from Monterey to Ventura. @caleb15 's solution : pipx reinstall-all fixed the bug.

@Cassete
Copy link

Cassete commented Oct 24, 2024

I also had a similar issue with two packages (lit, wllvm)
bad interpreter: /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/python3.11: no such file or directory

NOTE: it was my first time installing pipx (apt) and my first time installing any package at all with it but imediatly after running pipx reinstall-all it worked

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

4 participants