Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' #6767

Closed
angelalarc99 opened this issue Mar 15, 2018 · 3 comments
Closed

Comments

@angelalarc99
Copy link

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "C:\Users\usuario\ANACONDA\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 561, in show_time
elapsed_time = time() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Traceback (most recent call last):
File "C:\Users\usuario\ANACONDA\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 561, in show_time
elapsed_time = time() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Traceback (most recent call last):
WARNING:traitlets:kernel died: 3.0197155475616455
File "C:\Users\usuario\ANACONDA\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 561, in show_time
elapsed_time = time() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Traceback (most recent call last):
File "C:\Users\usuario\ANACONDA\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 561, in show_time
elapsed_time = time() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
Traceback (most recent call last):
File "C:\Users\usuario\ANACONDA\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 561, in show_time
ela

@ccordoba12 ccordoba12 changed the title Spyder Error TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' Mar 15, 2018
@ccordoba12 ccordoba12 added this to the v3.2.9 milestone Mar 15, 2018
@ccordoba12
Copy link
Member

Thanks for reporting. We'll fix this problem in our next release.

@csabella, this one is yours :-) I think it happens when the kernel takes too much time to start.

@csabella
Copy link
Contributor

This is the old code before my change in #6699, but we don't know what version of Spyder the OP is running. @ccordoba12 , do you think one of the other fixes to the console would have helped with the kernel start up time? Just thinking if @angelalarc99 updates to 3.2.8, then it may resolve their issue.

I will, however, also put in a check to make sure self.t0 isn't None. :-)

@ccordoba12
Copy link
Member

do you think one of the other fixes to the console would have helped with the kernel start up time?

I made several changes to improve kernel startup time in the same release the timing functionality was introduced. After that, nothing significant has changed in that regard.

I will, however, also put in a check to make sure self.t0 isn't None. :-)

Thanks a lot for your quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants