TypeError: descriptor ‘append’ requires a ‘list’ object but received a ‘str’ Python Error

This error for me was caused by the fact that I was trying to use the append function of a list that was not declared yet (or at least the compiler could not see it)

The problem was that the list variable (list = []) in on of my classes was missing a “self” eg self.list = []

Advertisements

One thought on “TypeError: descriptor ‘append’ requires a ‘list’ object but received a ‘str’ Python Error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s