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

powerline-shell error with 'uptime' segment #291

Closed
noblehelm opened this issue Sep 18, 2017 · 2 comments
Closed

powerline-shell error with 'uptime' segment #291

noblehelm opened this issue Sep 18, 2017 · 2 comments

Comments

@noblehelm
Copy link

Hello,

I'm trying to use 'uptime' as segment but I'm getting an error that goes like this:

Traceback (most recent call last):
  File "/usr/bin/powerline-shell", line 11, in <module>
    sys.exit(main())
  File "/home/jr/.local/lib/python3.6/site-packages/powerline_shell/__init__.py", line 186, in main
    segment.add_to_powerline()
  File "/home/jr/.local/lib/python3.6/site-packages/powerline_shell/segments/uptime.py", line 11, in add_to_powerline
    raw_uptime = re.search('(?<=up).+(?=,\s+\d+\s+user)', output).group(0)
  File "/usr/lib/python3.6/re.py", line 182, in search
    return _compile(pattern, flags).search(string)
TypeError: cannot use a string pattern on a bytes-like object
@b-ryan
Copy link
Owner

b-ryan commented Sep 18, 2017

Thanks for the issue - I am going to release the fix for this shortly. It will be fixed in version 0.2.2 -- you will be able to upgrade using pip install --upgrade powerline-shell.

@b-ryan b-ryan closed this as completed Sep 18, 2017
@b-ryan
Copy link
Owner

b-ryan commented Sep 18, 2017

655a12a

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

2 participants