Jul-27-2018, 02:12 PM
Hi everyone,
I'm quite new to Python, so excuse me if this question sounds basic, but here it is:
A colleague of mine is now on vacation and I have to access a pickle file (more than one, actually...) filled with data that I have to analyze. First, I used the following line of code to open the file in Python, but without any success...
It gives me the following error message:
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator' from 'C:\\python\\lib\\site-packages\\deap\\creator.py'>
I use Python 3.7.0 on my computer, but my colleague used 2.7 on his. Should I downgrade back to 2.7 to fit his version?
I read on another forum about pickle files that one could have problems reading a pickle file that was written on someone else's device. However, I do not have access to my colleague's computer, as it is being used by someone at the moment. It would really be best if I did not monopolize his device, since what I have to do with the data might take a while.
Does anyone have an idea on how to solve this? I've been looking for far too long for what it seems like a insignificant problem...
Thank you!
I'm quite new to Python, so excuse me if this question sounds basic, but here it is:
A colleague of mine is now on vacation and I have to access a pickle file (more than one, actually...) filled with data that I have to analyze. First, I used the following line of code to open the file in Python, but without any success...
1 2 3 4 5 6 7 |
import numpy as np import deap import pickle import scipy with open ( 'fronts.pkl' , 'rb' ) as pickle_file: data = pickle.load(pickle_file) |
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator' from 'C:\\python\\lib\\site-packages\\deap\\creator.py'>
I use Python 3.7.0 on my computer, but my colleague used 2.7 on his. Should I downgrade back to 2.7 to fit his version?
I read on another forum about pickle files that one could have problems reading a pickle file that was written on someone else's device. However, I do not have access to my colleague's computer, as it is being used by someone at the moment. It would really be best if I did not monopolize his device, since what I have to do with the data might take a while.
Does anyone have an idea on how to solve this? I've been looking for far too long for what it seems like a insignificant problem...
Thank you!