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

Can't get it working on Arch #216

Closed
lovesegfault opened this issue Nov 30, 2015 · 4 comments
Closed

Can't get it working on Arch #216

lovesegfault opened this issue Nov 30, 2015 · 4 comments

Comments

@lovesegfault
Copy link

I had set this up on Ubuntu with no problems whatsoever, however I've been unable to get this to work on my work PC that is currently running Arch Linux 64 bit. I have followed the install instructions precisely two time already but without success. I use the fish shell, and with powerline active all I can see is the following
snapshot1

@ceholden
Copy link
Contributor

Hi @Arengorn

I was able to reproduce what you're seeing in fish on Arch using the --colorize-hostname option. I couldn't reproduce any errors using other optional arguments to powerline-shell.py, so if you're not using --colorize-hostname it would help to know what segments you're using and what optional arguments you've passed to powerline-shell.py in your fish_prompt.

As Arch ships Python3 by default and Ubuntu is still on Python2, you're likely running into some Python 3 specific bugs in the code. To confirm, you could remove or comment out the ^/dev/null in the your fish_prompt function to see the Python exceptions raised preventing your shell prompt from executing.

There are three Python 3 specific errors I've found in lib/color_compliment.py that I'll send a PR for. The first you are likely to see is ImportError: No module named 'colortrans'.

For now you could either,

  1. Install python2 and change the hashbang in powerline-shell.py to read #!/usr/bin/env python2
  2. Temporarily switch to my branch containing fixes to the 3 bugs I mentioned earlier

Hope this helps

@b-ryan
Copy link
Owner

b-ryan commented Dec 26, 2015

@Arengorn I just merged @ceholden's fix for python 3 support in lib/color_compliment.py. Can you check whether this is working for you after that change?

@lovesegfault
Copy link
Author

@ceholden Thanks a lot!
@b-ryan I have no access to my work computer currently, so I'll only be able to test it on the fifth on January, I'll make sure to let you guys know if it worked, until then, happy new year!

@lovesegfault
Copy link
Author

Just tested this and it works perfectly, no issues whatsoever.
Thanks a bunch for the quick fix guys.

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

3 participants