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

[osx, zsh] {...}/powerline/bindings/zsh/powerline.zsh:192: no such file or directory: {...}/scripts/powerline-config #1189

Closed
oluckyman opened this issue Nov 23, 2014 · 9 comments

Comments

@oluckyman
Copy link

After installation by this guide I have an error when open new terminal window:

/Users/oluckyman/Library/Python/2.7/lib/python/site-packages/powerline/bindings/zsh/powerline.zsh:192: no such file or directory: /Users/oluckyman/Library/Python/2.7/lib/python/site-packages/scripts/powerline-config  
/Users/oluckyman/Library/Python/2.7/lib/python/site-packages/powerline/bindings/zsh/powerline.zsh:196: no such file or directory: /Users/oluckyman/Library/Python/2.7/lib/python/site-packages/scripts/powerline-config
@ZyX-I
Copy link
Contributor

ZyX-I commented Nov 23, 2014

That “guide” contains no information about powerline installation. Based on the path seen here I think that you have installed powerline via pip, but have not added relevant path to $PATH.

@oluckyman
Copy link
Author

Yes, I have installed via pip: pip install --user git+git://github.com/Lokaltog/powerline.
What path should I add to $PATH?

@ZyX-I
Copy link
Contributor

ZyX-I commented Nov 23, 2014

I do not know. You should check out pip show -f powerline-status for the list of installed files and figure the PATH yourself. Or consult google, you need something like “mac os x pip executables path”.

@ZyX-I
Copy link
Contributor

ZyX-I commented Nov 23, 2014

Most likely it is the path from the error messages with lib/python/… replaced with just bin.

@oluckyman
Copy link
Author

I added $HOME/Library/Python/2.7/bin to the $PATH and now it works! Thank you Nikolai.
But I don't understand why there is nothing about it in the Docs.

@ZyX-I
Copy link
Contributor

ZyX-I commented Nov 24, 2014

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On November 24, 2014 12:13:25 PM EAT, oluckyman notifications@github.com wrote:

I added "$HOME/Library/Python/2.7/bin" to the $PATH and now it works!
Thank you Nikolai.
But I don't understand why there is nothing about it in the
Docs.


Reply to this email directly or view it on GitHub:
#1189 (comment)

Because setting up proper pip environment is none of our business. I also have no idea how to get the proper path except for "guess from pip show -f", "guess from error message" and "google it".
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQJNBAEBCgA3BQJUcvv3MBwfMDI7PjIgHTg6PjswOSAQOzU6QTA9NEA+MjhHIDxr
cC1wYXZAeWFuZGV4LnJ1PgAKCRBu+P2/AXZZIpXPD/0cuCMZWj5pH8ogsbvqo49M
R5cTynNaUGKjqN0gsuG970nC1oLB4Q3R1Nd2ejyrWDV7T9MB69r0ZB1kuArdbgm8
2M91cfVoNqxAoG0/BPavXG7kudHw3jVhnktlIXfbs+tkAvkKURSHgmfdOcFzYs4l
tX9JNDP9tJy+3U6TuPf4rxBXjWu9Hp4/pSaqCI/w4Si7Q6AEv5P9xDOOmRTTOaJh
U9heKXfkKH5k5TVCg0MTHPBefieAl2zM5cRN7gCZh7916DiEOaUHSaZR3u1FbSO3
g7EclvI1vzLj8GIOupQmHFWr9L3pb9hx9Qk5ndvFYIX7wxaDXmLFznEW6/3qXr0O
Ehtc0x03GehwIFfg2QCAiSfcIIeGsCQIqOC61SuR3bbpplv0Pehl3d5vTPfPG9J+
M6Khgy4xYVV4WBN/VGgJXx3lknvWEafd+GQscZjmT756DLj2SIpNonV1NxumD8vt
U3hilt6D8xJyyVTz3OdV8/obe+3ZyvnD19szBTtozARp8pWmNsGlpmPW/peMKtn9
crd4Q3Xc3fSOoGFqxn9r4nP5qcU826STsCmLi3a4zDf78sfOQTnOrljMcb3q7N9+
tqXh3Xa8zG/PrJclrC0uOrSR2i3QNXtYqszLCZN430/BncA+tWPk3vfICPK7XfD0
3skXFIUXL/QechNH8xIJQg==
=a+sw
-----END PGP SIGNATURE-----

@ZyX-I
Copy link
Contributor

ZyX-I commented Nov 24, 2014

I can actually add this to troubleshooting, but I like neither of ways to get proper $PATH. I think I will add just something like “Make sure pip executables path is in $PATH… it usually looks something like ~/.local/bin (linux), ~/Library/Python/{python_version}/bin (OS X)”.

@oluckyman
Copy link
Author

It would be great. Thanks!

@ZyX-I ZyX-I closed this as completed in 774ec6d Nov 28, 2014
@shiningbridge
Copy link

actually my pip is installed here

$ which pip
/usr/local/bin/pip

but using pip to install powerline lead to a totally different folder.
without --user option
installed in /usr/local/lib/python2.7/site-packages/powerline/
and exe I couldn't remember but definitely NOT in /usr/local/bin/ as pip does.

with --user option
installed in ~/Library/Python/2.7/lib/python/site-packages/powerline/
and exe in ~/Library/Python/2.7/bin/

This is where I append the $PATH and make powerline-config work.

So I doubt add a note would work for me. :(

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

3 participants