You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debugging seems to break with recent versions of Spyder and tqdm. The internal console gives the following output:
Traceback (most recent call last):
File "D:\code\thirdparty\spyder\spyder\widgets\ipythonconsole\namespacebrowser.py", line 49, in <lambda>
self.namespacebrowser.process_remote_view(data))
File "D:\code\thirdparty\spyder\spyder\widgets\variableexplorer\namespacebrowser.py", line 232, in process_remote_view
self.set_data(remote_view)
File "D:\code\thirdparty\spyder\spyder\widgets\variableexplorer\namespacebrowser.py", line 243, in set_data
self.editor.set_data(data)
File "D:\code\thirdparty\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 830, in set_data
self.model.set_data(data, self.dictfilter)
File "D:\code\thirdparty\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 170, in set_data
self.set_size_and_type()
File "D:\code\thirdparty\spyder\spyder\widgets\variableexplorer\collectionseditor.py", line 185, in set_size_and_type
for index in range(start, stop) ]
TypeError: 'int' object has no attribute '__getitem__'
What steps will reproduce the problem?
Make a simple script (e.g.):
import tqdm
1 + 1
b = 3
print "Awesome"
c = 4
print "Awesome as well"
Put a breakpoint anywhere (e.g. print "Awesome")
Try to debug and press continue.
What is the expected output? What do you see instead?
Expect output would be to stop at the line and show a short print of the code:
@GeertLitjens, I'm sorry to let you know that the solution to this problem is for Spyder to automatically restart the kernel if tqdm is present while debugging.
The problem is tqdm messes horribly with stdout on Windows, and that breaks our debugging facilities. @dalthviz worked hard on this one and found no other solution, sorry.
Debugging seems to break with recent versions of Spyder and tqdm. The internal console gives the following output:
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expect output would be to stop at the line and show a short print of the code:
instead you get:
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 2.0.0 (OK)
nbconvert >=4.0 : 5.0.0 (OK)
numpy >=1.7 : 1.12.0 (OK)
pandas >=0.13.1 : 0.19.2 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.5.0 : 1.5.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.6.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.10.3 (OK)
sphinx >=0.6.6 : 1.5.1 (OK)
sympy >=0.7.3 : 1.0 (OK)
The text was updated successfully, but these errors were encountered: