Hi guys so I'm having a bit of a problem, I'm trying to load a file using pickle(code below), this code runs perfectly on my partner's laptop(mac book), but on my laptop it won't run(Windows).
strPath = openFileDialog.GetPath()
self.model = cPickle.load(open(strPath, 'rb'))
self.loadModelCombo.SetValue(strPath)
After using that code to load the file, I get an EOFError.
>File "CMain.py", line 511, in loadModel
>self.model = cPickle.load(open(strPath, 'rb'))
>EOFError
Copyright Notice:Content Author:「Jarvin Li」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40901185/eoferror-using-cpickle-load-on-windows