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'
#4
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
Reply


Messages In This Thread
RE: AttributeError: Can't get attribute 'Individual' on <module 'deap.creator' - by DomClout - Jul-27-2018, 07: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,080 May-20-2021, 08:02 PM
Last Post: Caprone
  AttributeError: (“module 'pandas' has no attribute 'rolling_std'” Mariana136 4 7,686 Sep-23-2019, 12:56 PM
Last Post: Mariana136
  AttributeError: module 'numpy' has no attribute 'array aapurdel 7 46,088 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,102 Apr-22-2019, 05:05 PM
Last Post: Yoriz
  AttributeError: 'NoneType' object has no attribute 'all' synthex 2 5,365 Mar-07-2019, 11:11 AM
Last Post: synthex
  Please help with AttributeError: 'Netz' object has no attribute 'conv' DerBerliner 2 3,845 Feb-27-2019, 06:01 PM
Last Post: DerBerliner
  AttributeError: module 'mnist' has no attribute 'train_images' pythonbeginner 1 8,276 Jun-14-2018, 09:29 PM
Last Post: snippsat
  AttributeError: 'set' object has no attribute 'items hey_arnold 3 26,797 Apr-29-2018, 04:33 PM
Last Post: hey_arnold
  AttributeError: module 'plotly' has no attribute 'offline' charlesczc 8 17,290 Jan-21-2018, 08:34 AM
Last Post: buran
  AUCPR of individual features using Random Forest (Error: unhashable Type) melissa 1 3,359 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