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.py breaks with ValueError #246

Closed
Datamance opened this issue Aug 27, 2016 · 3 comments
Closed

powerline-shell.py breaks with ValueError #246

Datamance opened this issue Aug 27, 2016 · 3 comments

Comments

@Datamance
Copy link

Here's what I see on my stacktrace:

Traceback (most recent call last):
  File "/Users/ricorodriguez/powerline-shell.py", line 692, in <module>
    add_fossil_segment(powerline)
  File "/Users/ricorodriguez/powerline-shell.py", line 685, in add_fossil_segment
    _add_fossil_segment(powerline)
  File "/Users/ricorodriguez/powerline-shell.py", line 655, in _add_fossil_segment
    subprocess.Popen(['fossil'], stdout=subprocess.PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
    child_exception = pickle.loads(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
    return Unpickler(file).load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 966, in load_string
    raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Also notice that when the bash script gets run, my prompt gets deleted entirely. Pretty sure that's because the script isn't running but the documentation could be clearer as to what I should expect (also in what order to do things)

@lambdafunc
Copy link

lambdafunc commented Oct 19, 2016

I am having this same issue. Only on Mac.

./powerline-shell.py
Traceback (most recent call last):
  File "./powerline-shell.py", line 674, in <module>
    add_fossil_segment(powerline)
  File "./powerline-shell.py", line 667, in add_fossil_segment
    _add_fossil_segment(powerline)
  File "./powerline-shell.py", line 637, in _add_fossil_segment
    subprocess.Popen(['fossil'], stdout=subprocess.PIPE).communicate()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
    child_exception = pickle.loads(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
    return Unpickler(file).load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 966, in load_string
    raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

@wangjoshuah
Copy link

I believe this is a duplicate of this. #236
It's caused by a bug in python. https://bugs.python.org/issue26083
You can download the latest verison of python 2.7.12 here https://www.python.org/ftp/python/2.7.12/python-2.7.12-macosx10.6.pkg

@b-ryan
Copy link
Owner

b-ryan commented Sep 30, 2017

@b-ryan b-ryan closed this as completed Sep 30, 2017
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