Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subliminal is not launching, "ValueError: insecure string pickle"

See original GitHub issue

When I updated to macOS Sierra, Subliminal continued to work perfectly. But recently it is not working at all, I have this text when I execute it:

Traceback (most recent call last):
  File "/usr/local/bin/subliminal", line 11, in <module>
    load_entry_point('subliminal==2.0.5', 'console_scripts', 'subliminal')()
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/pkg_resources/", line 567, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/pkg_resources/", line 2604, in load_entry_point
    return ep.load()
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/pkg_resources/", line 2264, in load
    return self.resolve()
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/pkg_resources/", line 2270, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/subliminal/", line 11, in <module>
    from .core import (AsyncProviderPool, ProviderPool, check_video, download_best_subtitles, download_subtitles,
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/subliminal/", line 14, in <module>
    from rarfile import NotRarFile, RarCannotExec, RarFile
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/", line 1989, in <module>
    custom_check([UNRAR_TOOL], True)
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/", line 1917, in custom_check
    p = custom_popen(cmd)
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/", line 1908, in custom_popen
    creationflags = creationflags)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1334, in _execute_child
    child_exception = pickle.loads(data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1382, in loads
    return Unpickler(file).load()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 858, in load
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 966, in load_string
    raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

Donkeyfish87commented, Mar 4, 2017

I had the same problem. Although I didn’t understand why or how, the following trick solved it for me:

  • brew uninstall subliminal
  • pip install subliminal

And it works again. It takes 30seconds to try, so worth a shot if you experience the same issue…

alanorthcommented, Jul 27, 2017

Tested in a Python 3.6 virtualenv on macOS. Works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: insecure string pickle - python - Stack Overflow
A corrupted pickle. The error is raised if a string in the dump does not both start and end with " or '....
Read more >
ValueError: insecure string pickle · Issue #5314 - GitHub
I tried running the above command from python command line. It wasn't a virtual environment, but I still get the insecure string pickle...
Read more >
pickle.load failing with ValueError: insecure string pickle
I'm a relatively new Python user, using Pickle for the first time. pickle.load is dying with "ValueError: insecure string pickle"
Read more >
the of and to a in for is on s that by this with i you it not
the of and to a in for is on s that by this with i you it not or be are from ......
Read more >
Click here to download - Computer Science
the of and to a in for is on that by this with i you it not or be are from at ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found