question-mark
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.

Uncaught Exception: UnpicklingError: invalid load key, '\x00'.

See original GitHub issue

Hey, I got this error when I try to launch a Backtest.

root@797704255f30:/home/mybot# jesse backtest 2020-01-01 2020-11-10

loading candles...
============================== EXCEPTION TRACEBACK:
  File "/usr/local/bin/jesse", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/jesse/__init__.py", line 322, in backtest
    backtest_mode.run(start_date, finish_date, chart=chart, tradingview=tradingview, csv=csv, json=json)
  File "/usr/local/lib/python3.8/dist-packages/jesse/modes/backtest_mode/__init__.py", line 41, in run
    candles = load_candles(start_date, finish_date)
  File "/usr/local/lib/python3.8/dist-packages/jesse/modes/backtest_mode/__init__.py", line 105, in load_candles
    cached_value = cache.get_value(cache_key)
  File "/usr/local/lib/python3.8/dist-packages/jesse/services/cache.py", line 69, in get_value
    return pickle.load(f)
=========================================================================

 Uncaught Exception: UnpicklingError: invalid load key, '\x00'.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
saleh-mircommented, Nov 16, 2020

I will add a config value in the next release to be able to completely disable caching. It’s not the best solution but at least gets it running for those who have issue with it like this case

0reactions
saleh-mircommented, Nov 23, 2020

With version 0.14.1 you can set your cache driver to None and this will go away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What causes the error "_pickle.UnpicklingError: invalid load ...
UnpicklingError : invalid load key, ''. But, if the pickle file is opened using gzip all is harmonious with gzip.open('test.pklz', ...
Read more >
_pickle.UnpicklingError: invalid load key, '\x00' - Google Groups
I am using Similarity class to calculate similarity between two sets of documents, but get a pickle issue which I have no idea...
Read more >
invalid load key, '\xef'. - You.com | The AI Search Engine You ...
data = pickle.load(file) _pickle.UnpicklingError: invalid load key, '\xef'. This is the code I was using: @bot.event async def on_ready(): try: with ...
Read more >
_pickle.UnpicklingError: invalid load key, '\x00' - Anki Forums
Hi everyone, every time I try to open Anki, i get this error message below. I already tried going on Tools > Check...
Read more >
UnpicklingError: invalid load key, '\x0a' - vision - PyTorch Forums
Hello, I met a problem that I trained my model in the lab using a Linux machine, after saving the checkpoint I took...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found