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.

System time change causes Spyder error

See original GitHub issue

Description

When the system time is changed to the past, Spyder opens an error dialog.

It has something to do with line 571 in:

C:\Users\user\Anaconda3\Lib\site-packages\spyder\widgets\ipythonconsole\client.py

What steps will reproduce the problem?

  1. Open Spyder.
  2. Change system time to 2017 or earlier.

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

An error dialog as shown below

image

When the time is changed back, the error dialog goes away.

Please provide any additional information below

OS: Windows 10

Error message details:

File “C:\Users\angert\Anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py”, line 571, in show_time “</span>” % (color, strftime(fmt, gmtime(elapsed_time))) OSError: [Errno 22] Invalid argument Traceback (most recent call last): Traceback (most recent call last): File “C:\Users\angert\Anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py”, line 571, in show_time “</span>” % (color, strftime(fmt, gmtime(elapsed_time))) OSError: [Errno 22] Invalid argument File “C:\Users\angert\Anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py”, line 571, in show_time “</span>” % (color, strftime(fmt, gmtime(elapsed_time))) OSError: [Errno 22] Invalid argument Traceback (most recent call last): Traceback (most recent call last): File “C:\Users\angert\Anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py”, line 571, in show_time “</span>” % (color, strftime(fmt, gmtime(elapsed_time))) OSError: [Errno 22] Invalid argument File “C:\Users\angert\Anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py”, line 571, in show_time “</span>” % (color, strftime(fmt, gmtime(elapsed_time))) OSError: [Errno 22] Invalid argument Traceback (most recent call last): Traceback (most recent call last):

Version and main components

  • Spyder Version: 3.2.6
  • Python Version: 3.6.4
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.22.0 (OK)
numpy >=1.7      :  1.14.0 (OK)
sphinx >=0.6.6   :  1.6.6 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.27.3 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.8.2 (OK)

Edit: Added image of error dialog box.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
angertdevsinghcommented, Mar 12, 2018

@CAM-Gerlach Thank you, that’s great to hear!

0reactions
ccordoba12commented, Mar 28, 2018

Please thank @csabella, she was the one who fixed this bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Spyder does not run new changes in code - Stack Overflow
change the directory of .py that you are working on. Right click to sample.py(which is above of console) and choose set console working ......
Read more >
Windows starts and ends daylight saving time incorrectly if the ...
Discusses a problem that occurs when the time zone is set incorrectly and the "Automatically adjust clock for daylight saving changes" check box...
Read more >
Why the spyder is showing error message Restarting kernel
Maybe the process is running out of (host) memory, is killed by the OS, and Spyder needs to restart the kernel. Run the...
Read more >
Invalid Syntax in Python: Common Reasons for SyntaxError
The interpreter will attempt to show you where that error occurred. When you're learning Python for the first time, it can be frustrating...
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