question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: 'bool' object is not callable

See original GitHub issue

Description

What steps will reproduce the problem?

During startup, Spyder4 (‘mainwindow.py’) reports a type error where mod.PLUGIN_CLASS(self) appears to be calling a bool-type object.

Traceback

  File "c:\program files\python\lib\site-packages\spyder\app\mainwindow.py", line 985, in setup
    plugin = mod.PLUGIN_CLASS(self)
TypeError: 'bool' object is not callable

Versions

  • Spyder version: 4.1.0
  • Python version: 3.8.0
  • Qt version: 5.12.6
  • PyQt5 version: 5.12.3
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.3.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.2.2 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.10.1 (OK)
jedi =0.14.1                   :  0.14.1 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.1 (OK)
paramiko >=2.4.0               :  2.7.0 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.7.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.6.7 (OK)
pygments >=2.0                 :  2.5.2 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0          :  0.31.2 (OK)
qdarkstyle >=2.8               :  2.8 (OK)
qtawesome >=0.5.7              :  0.6.0 (OK)
qtconsole >=4.6.0              :  4.6.0 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
sphinx >=0.6.6                 :  2.2.2 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  0.29.15 (OK)
matplotlib >=2.0.0             :  3.2.0 (OK)
numpy >=1.7                    :  1.18.2 (OK)
pandas >=0.13.1                :  1.0.2 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
pnh81commented, May 10, 2020

Update: Spyder 4.1.3 fixed the problem for me.

1reaction
ccordoba12commented, Mar 20, 2020

@pnh81, thanks for the update.

@dalthviz, please try with pip then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: 'bool' object is not callable - python - Stack Overflow
The solution is use a different name for the variable than you do for the method. Share. Share a link to this answer....
Read more >
HELP! TypeError: 'bool' object is not callable : r/learnpython
You are assigning the returned boolean value to 'math' by calling 'math_battle' function (using the parentheses). You have to assign the ...
Read more >
typeerror: 'bool' object is not callable - You.com | The Search ...
The Python TypeError: 'bool' object is not callable occurs when we try to call a boolean value (`True` or `False`) as a function....
Read more >
TypeError: 'bool' object is not callable - Replit
It's as it says, you cannot call a bool as the function you're calling, "check_rows()" is equal to the bool "True". I don't...
Read more >
TypeError: 'bool' object is not callable in Pytorch
I have some Problems when i following a tutorial about autoencoder in youtube. Here is my code import torch import torch.nn as nn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found