Python Forum
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator'
#1
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...

import numpy as np
import deap
import pickle
import scipy

with open('fronts.pkl','rb') as pickle_file:
    data = pickle.load(pickle_file)
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!
Reply


Messages In This Thread
AttributeError: Can't get attribute 'Individual' on <module 'deap.creator' - by DomClout - Jul-27-2018, 02:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Python and scikitlearn, how to output the individual feature dependencies? warren8r 8 4,108 May-20-2021, 08:02 PM
Last Post: Caprone
  AttributeError: (“module 'pandas' has no attribute 'rolling_std'” Mariana136 4 7,719 Sep-23-2019, 12:56 PM
Last Post: Mariana136
  AttributeError: module 'numpy' has no attribute 'array aapurdel 7 46,301 May-29-2019, 02:48 AM
Last Post: heiner55
  Pandas to_csv in for loop AttributeError: 'tuple' object has no attribute 'to_csv' NSearch 9 17,165 Apr-22-2019, 05:05 PM
Last Post: Yoriz
  AttributeError: 'NoneType' object has no attribute 'all' synthex 2 5,386 Mar-07-2019, 11:11 AM
Last Post: synthex
  Please help with AttributeError: 'Netz' object has no attribute 'conv' DerBerliner 2 3,875 Feb-27-2019, 06:01 PM
Last Post: DerBerliner
  AttributeError: module 'mnist' has no attribute 'train_images' pythonbeginner 1 8,303 Jun-14-2018, 09:29 PM
Last Post: snippsat
  AttributeError: 'set' object has no attribute 'items hey_arnold 3 26,875 Apr-29-2018, 04:33 PM
Last Post: hey_arnold
  AttributeError: module 'plotly' has no attribute 'offline' charlesczc 8 17,358 Jan-21-2018, 08:34 AM
Last Post: buran
  AUCPR of individual features using Random Forest (Error: unhashable Type) melissa 1 3,377 Jul-10-2017, 12:48 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020