stalecucumber
stalecucumber copied to clipboard
A reader and writer for Pythons' pickle format in Golang
When trying to unpickle a sift-ring-builder file I get the following error: ``` Pickle Machine failed on opcode:0x52. Stack size:25. Memo size:32. Cause:Unresolvable Python global value ``` I created the...
Small enhancement so that you can create a pickle of any Python object.
train in python: ``` import pickle from sklearn.svm import LinearSVC clf = LinearSVC() with open("test.pkl","wb") as f: f.write(pickle.dumps(clf,2)) ``` if i want to load this model , i need know...
`err: Pickle Machine failed on opcode:0x81. Stack size:1. Memo size:0. Cause:Input encountered opcode that is not implemented` > i need unpickle an instance of a Python object with golang now,...
When I try to open a pkl file, it returns an error of: `Pickle Machine failed on opcode:0x80. Stack size:0. Memo size:0. Cause:Unsupported version #3 detected`. So is there any...
Is there any way one can skip GLOBAL tags on unpickling? Crashing whenever these are encountered is not much of an option. Alternatively, can one instead tag a field as...
Hi! I'm trying to unpickle a dictionary with tuples as keys and I'm getting the following error: ``` panic: runtime error: hash of unhashable type []interface {} goroutine 1 [running]:...