Python Forum
AttributeError class object has no attribute list object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttributeError class object has no attribute list object
#3
That's the problem with error messages. They only tell you where the program crashes, not necessarily where the error is. The crash is caused by Markets not having an attribute named "year_dates". The error may be that some other problem is leading to Markets not executing code that leads to creating the "year_dates" attribute.

I find this interesting
#lines here seem to be working fine
 
return year_dates
return month_dates
return day_dates
If those are not commented out I would expect a syntax error. If they do run they point to year_dates not being an attribute of some class that I don't get to see very much of.
Reply


Messages In This Thread
RE: AttributeError class object has no attribute list object - by deanhystad - Feb-24-2021, 03:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing out incidence values for Class Object SquderDragon 3 322 Apr-01-2024, 07:52 AM
Last Post: SquderDragon
  This result object does not return rows. It has been closed automatically dawid294 6 1,168 Mar-30-2024, 03:08 AM
Last Post: NolaCuriel
  TypeError: cannot pickle ‘_asyncio.Future’ object Abdul_Rafey 1 441 Mar-07-2024, 03:40 PM
Last Post: deanhystad
  How can I pause only one object? actualpy 1 386 Feb-01-2024, 07:43 PM
Last Post: deanhystad
  error in class: TypeError: 'str' object is not callable akbarza 2 559 Dec-30-2023, 04:35 PM
Last Post: deanhystad
Question Chain object that have parent child relation.. SpongeB0B 10 1,137 Dec-12-2023, 01:01 PM
Last Post: Gribouillis
Bug TypeError: 'NoneType' object is not subscriptable TheLummen 4 770 Nov-27-2023, 11:34 AM
Last Post: TheLummen
  How to read module/class from list of strings? popular_dog 1 498 Oct-04-2023, 03:08 PM
Last Post: deanhystad
  getpass.getpass() results in AttributeError: module 'os' has no attribute 'O_NOCTTY' EarthAndMoon 4 804 Oct-03-2023, 02:00 PM
Last Post: deanhystad
  TypeError: 'NoneType' object is not callable akbarza 4 1,076 Aug-24-2023, 05:14 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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