Top "Attributeerror" questions

Use this with questions involving the Python `AttributeError` exception.

Python3 AttributeError: 'list' object has no attribute 'clear'

I am working on a Linux machine with Python version 3.2.3. Whenever I try to do list.clear() I get an …

python list python-3.x attributeerror python-3.2
Django REST framework: AttributeError: Serializer object has no attribute 'Meta'

Given the following model and serializer for a Django REST framework setup: #!/usr/bin/env python # -*- coding: utf-8 …

python django django-rest-framework attributeerror
AttributeError: 'Series' object has no attribute 'days'

I have a column 'delta' in a dataframe dtype: timedelta64[ns], calculated by subcontracting one date from another. I am …

python attributeerror timedelta
Flask Blueprint AttributeError: 'module' object has no attribute 'name' error

My API is being built to allow developers to extend it's functionality. My plan is to do this by providing …

python attributeerror flask
AttributeError when using "import dateutil" and "dateutil.parser.parse()" but no problems when using "from dateutil import parser"

I was playing with the dateutil module in Python 2.7.3. I simply wanted to use: import dateutil dateutil.parser.parse("01-02…

python python-2.7 attributeerror python-dateutil
'unicode' object has no attribute 'get'

I am writing django application and stuck with the error 'unicode' object has no attribute 'get' I saw a lot …

python django unicode django-orm attributeerror
AttributeError: '_AppCtxGlobals' object has no attribute 'user' in Flask

I'm trying to learn flask by following the Flask Mega Tutorial. In part 5, the login() view is edit like so: @…

python flask attributeerror
Formatting dict keys: AttributeError: 'dict' object has no attribute 'keys()'

What is the proper way to format dict keys in string? When I do this: >>> foo = {'one …

python dictionary methods string-formatting attributeerror
AttributeError: 'NoneType' object has no attribute 'endswith'

I am currently working on a Python script that updates a web page. But running the main script generates this …

python attributeerror nonetype ends-with
Python - AttributeError: '_io.TextIOWrapper' object has no attribute 'append'

I receive an error ClassFile.append(filelines) AttributeError: '_io.TextIOWrapper' object has no attribute 'append' while trying to write …

python attributeerror