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

"bad interpreter" error on Terminal startup #1698

Closed
paanvaannd opened this issue Jan 2, 2017 · 7 comments
Closed

"bad interpreter" error on Terminal startup #1698

paanvaannd opened this issue Jan 2, 2017 · 7 comments

Comments

@paanvaannd
Copy link

paanvaannd commented Jan 2, 2017

/usr/local/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh:200: /usr/local/bin/powerline-config: bad interpreter: /usr/local/opt/python3/bin/python3.5: no such file or directory
/usr/local/lib/python3.5/site-packages/powerline/bindings/zsh/powerline.zsh:204: /usr/local/bin/powerline-config: bad interpreter: /usr/local/opt/python3/bin/python3.5: no such file or directory'

I get the above message printed at the start of every Terminal session. Using a macOS Sierra (10.12.3 Beta) machine and this issue wasn't present until about a week ago. I'm not sure what was changed that made this issue start... the only things that could have changed my Python installation recently (if that's the issue) are regular Homebrew updates using the brew update command.

I don't quite understand what's wrong here, but any help would be appreciated. :+)

-- paanvaannd

@ZyX-I
Copy link
Contributor

ZyX-I commented Jan 2, 2017

I think that you have updated python to python 3.6, but did not reinstall powerline, previously installed used some python-version-specific way.


In Gentoo I would suggest to use python-updater which reinstalls python packages installed by system package manager after updating Python version (emerge does not handle this automatically, so there are many scripts like python-updater for different languages), but I do not know whether Mac OS has something equivalent. Also in Gentoo you would need to reinstall yourself all packages installed by pip and not system package manager, python-updater will not handle them.

@paanvaannd
Copy link
Author

Thanks for the timely response! I'll search for a way to do this in macOS.

@simonfromla
Copy link

@paanvaannd Were you able to figure it out?

@paanvaannd
Copy link
Author

@simonsterj I have since somehow fixed it but I have done so many things since then that I don't know what fixed it lol

Probably from either manually uninstalling Python packages or through re-installing once I did a clean install of my OS since then. Sorry I can't be of more assistance :/

@baijifeilong
Copy link

cd /usr/local/opt/python/bin
ln -s python3.7 python3.6
pip3 install powerline_shell

Then everything is OK for me.

@Olshansk
Copy link

pip3 install powerline_shell solved it for me.

@baijifeilong
Copy link

baijifeilong commented Aug 3, 2018

When I switch python from 3.7 to 3.6, it did not work again

So better solution is:

pip3 uninstall powerline_shell
pip3 install powerline_shell

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

No branches or pull requests

5 participants