Help with "UnpicklingError: invalid load key, 'v'."

Hi and happy new year,
May I ask for your help with the following upickling error on my Streamlit App:

These pickle files were uploaded to github using git-lfs, as they are large files–might that be involved in the error?

My python version is 3.7.4
My streamlit version is 0.72.0
My github repo is GitHub - amaze2/concordiensis: Concordiensis Project

I would really appreciate your help with this. Thank you in advance!

Hi @amaze, welcome to the Streamlit community!

Unfortunately, I believe the error might be git-lfs, which isn’t currently supported by Streamlit sharing (but I believe is on our near-term roadmap). I believe @Jonathan_Rhone did some exploration around this, he might be able to provide more detail.


Hi Randy,
Happy new year, and thank you very much for your help with this. You are absolutely right: git lfs is causing the error. For further help with this, may I, and if so, how do I contact Jonathan Rhone directly?
Thank you!

Since then, I’ve confirmed it’s a matter of not supporting Git LFS. It’s on our internal backlog of features, but I don’t have a firm date to provide when it will be implemented.

Actually, I take that back…it looks like it could be in by end of January/early February, as it’s a pretty often requested feature.


Oh–great! Thank you, Randy, very much for this update.

Just in case the implementation takes longer, will a Streamlit app work if the pickled data is hosted elsewhere than GitHub? I am curious if that is an alternative.

Thank you again,

Yes, you would just change your local file reference to a urllib or a requests library call to download the data yourself. It will take a little longer the first time, but using st.cache, you can keep the data local while your app runs/re-runs

1 Like

Hello, is this feature ready now or not yet?
Thank you very much!

1 Like

Hi @feryah -

Per this other answer, I believe it comes out this week:


1 Like

Git LFS should have gone out in the Streamlit sharing release this evening, please try it out and let us know if you have any issues.


1 Like

That works perfectly now!
Thank you so much!!

@randyzwitch Hi randy. Mine application still not working. I use streamlit 0.81.0
Got keyerror: 118 for joblib