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

UnpicklingError("invalid load key, '\x03'.",) #578

Open
epszaw opened this issue Aug 20, 2019 · 4 comments
Open

UnpicklingError("invalid load key, '\x03'.",) #578

epszaw opened this issue Aug 20, 2019 · 4 comments

Comments

@epszaw
Copy link

epszaw commented Aug 20, 2019

Sublime text 3: 3.2.1 3207
OS: OSX 10.14.6

Hello! Having problem with text from title when trying to launch Clojure repl.

@ipstone
Copy link

ipstone commented Sep 23, 2019

I have the same error msg when launching sublmeREPL for R /python

@ipstone
Copy link

ipstone commented Oct 3, 2019

Some more details on the error:

error: UnpicklingError("invalid load key, '\x03'.",)
Traceback (most recent call last):
  File "/Users/peix/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/sublimerepl.py", line 495, in open
    rv = ReplView(view, r, syntax, repl_restart_args)
  File "/Users/peix/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/sublimerepl.py", line 186, in __init__
    self._history = PersistentHistory(self.external_id)
  File "/Users/peix/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/sublimerepl.py", line 140, in __init__
    self._db.create("external_id", "command", "ts", mode="open")
  File "/Users/peix/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/repllibs/PyDbLite.py", line 193, in create
    return self.open()
  File "/Users/peix/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/repllibs/PyDbLite.py", line 246, in open
    self.fields = pickle.load(_in)
_pickle.UnpicklingError: invalid load key, '�'.
error: UnpicklingError("invalid load key, '\x03'.",)
top level value must be an array```

@ipstone
Copy link

ipstone commented Oct 3, 2019

Found the solution: #251

Just pasted the answer quickly here:

"SublimeREPL's history file got corrupted during crash.

Remove config/sublime-text-3/Packages/User/.SublimeREPLHistory/r.db and everything should be back to normal."

@ipstone
Copy link

ipstone commented Oct 3, 2019

For mac os x, the file is located at /Users/your_user_name/Library/Application Support/Sublime Text 3/Packages/User/.SublimeREPLHistory

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