System time change causes Spyder error
See original GitHub issueDescription
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?
- Open Spyder.
- Change system time to 2017 or earlier.
What is the expected output? What do you see instead?
An error dialog as shown below
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:
- Created 6 years ago
- Comments:10 (6 by maintainers)
@CAM-Gerlach Thank you, that’s great to hear!
Please thank @csabella, she was the one who fixed this bug.