Jul-27-2018, 07:12 PM
snippsat :
I did as you suggested, and when I run the script with 2.7.15, I receive this error message:
>py -2.7 lecture_fronts_idle.py
Traceback (most recent call last):
File "lecture_fronts_idle.py", line 9, in <module>
data = pickle.load(pickle_file)
File "C:\Python27\lib\pickle.py", line 1384, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatch[key](self)
File "C:\Python27\lib\pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "C:\Python27\lib\pickle.py", line 1132, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'Individual'
The last line is the same line I get with Python 3.7
I did as you suggested, and when I run the script with 2.7.15, I receive this error message:
>py -2.7 lecture_fronts_idle.py
Traceback (most recent call last):
File "lecture_fronts_idle.py", line 9, in <module>
data = pickle.load(pickle_file)
File "C:\Python27\lib\pickle.py", line 1384, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatch[key](self)
File "C:\Python27\lib\pickle.py", line 1096, in load_global
klass = self.find_class(module, name)
File "C:\Python27\lib\pickle.py", line 1132, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'Individual'
The last line is the same line I get with Python 3.7