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
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
def window():
app = QApplication(sys.argv)
win = QMainWindow()
###########
The code above causes "an internal problem" with spyder 5.0.0
Traceback
--- Logging error ---
Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\lib\logging\__init__.py", line 1084, in emit
stream.write(msg +self.terminator)
AttributeError: 'NoneType' object has no attribute 'write'
Call stack:
File "D:\ProgramData\Anaconda3\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "D:\ProgramData\Anaconda3\lib\site-packages\spyder\app\start.py", line 228, in main
mainwindow.main(options, args)
File "D:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2293, in main
mainwindow = create_window(app, splash, options, args)
File "D:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", line 2192, in create_window
app.exec_()
File "D:\ProgramData\Anaconda3\lib\site-packages\qtconsole\manager.py", line 27, in pollsuper().poll()
File "D:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\restarter.py", line 116, in pollself.kernel_manager.restart_kernel(now=True, newports=newports)
File "D:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 510, in restart_kernelself.start_kernel(**self._launch_args)
File "D:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 342, in start_kernelself.post_start_kernel(**kw)
File "D:\ProgramData\Anaconda3\lib\site-packages\qtconsole\manager.py", line 62, in post_start_kernelself.kernel_restarted.emit()
File "D:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole\widgets\shell.py", line 786, in _handle_kernel_restartedsuper(ShellWidget, self)._handle_kernel_restarted()
File "D:\ProgramData\Anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 530, in _handle_kernel_restartedself.log.warning("kernel restarted")
Message: 'kernel restarted'Arguments: ()
Description
What steps will reproduce the problem?
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
def window():
app = QApplication(sys.argv)
win = QMainWindow()
###########
The code above causes "an internal problem" with spyder 5.0.0
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: