0

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
Christian Dean
  • 22,138
  • 7
  • 54
  • 87
Jarvin Li
  • 1
  • 1
  • 4

0 Answers0