What does 'TypeError: 'list' object is not callable' mean?

Asked by Namzu

When I run my code I am getting following error.Can anyone help me to solve these three errors?

Traceback (most recent call last):
  File "/usr/bin/yadedaily", line 343, in runScript
    execfile(script,globals())
  File "/usr/lib/python3/dist-packages/past/builtins/misc.py", line 87, in execfile
    exec_(code, myglobals, mylocals)

What does 'TypeError: 'list' object is not callable' means? How to solve that?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

> When I run my code I am getting following error.
> Can anyone help me to solve these three errors?

Yes, of course.
But first please provide a MWE [1]

E.g. for this kind of error, a MWE could be:
###
a = [1,2,3]
a()
###

> What does 'TypeError: 'list' object is not callable' means?

It means what it says. List object is not callable.

> How to solve that?

Do not call a list

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

Revision history for this message
Jan Stránský (honzik) said :
#2

A few more suggestion:
- please make a better title of the problem instead of "globals", e.g. "'list' object is not callable'"
- please provide full error message ([1], point 2, as already discussed in [2]). There you also get the line, where the error occurred.

Cheers
Jan

[2] https://answers.launchpad.net/yade/+question/703685

Can you help with this problem?

Provide an answer of your own, or ask Namzu for more information if necessary.

To post a message you must log in.