{"action":"opened","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/7830","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7830/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7830/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/7830/events","html_url":"https://github.com/spyder-ide/spyder/issues/7830","id":356998956,"node_id":"MDU6SXNzdWUzNTY5OTg5NTY=","number":7830,"title":"\"An error while starting the kernel\"","user":{"login":"OD1995","id":34351331,"node_id":"MDQ6VXNlcjM0MzUxMzMx","avatar_url":"https://avatars3.githubusercontent.com/u/34351331?v=4","gravatar_id":"","url":"https://api.github.com/users/OD1995","html_url":"https://github.com/OD1995","followers_url":"https://api.github.com/users/OD1995/followers","following_url":"https://api.github.com/users/OD1995/following{/other_user}","gists_url":"https://api.github.com/users/OD1995/gists{/gist_id}","starred_url":"https://api.github.com/users/OD1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OD1995/subscriptions","organizations_url":"https://api.github.com/users/OD1995/orgs","repos_url":"https://api.github.com/users/OD1995/repos","events_url":"https://api.github.com/users/OD1995/events{/privacy}","received_events_url":"https://api.github.com/users/OD1995/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T22:28:47Z","updated_at":"2018-09-04T22:28:47Z","closed_at":null,"author_association":"NONE","body":"## Problem Description\r\nI've opened Spyder, using Anaconda Prompt. When it opens, the console says the following:\r\n\r\nAn error ocurred while starting the kernel\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\nTraceback (most recent call last):\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 193, in _run_module_as_main\r\n\"__main__\", mod_spec)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\runpy.py\", line 85, in _run_code\r\nexec(code, run_globals)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\__main__.py\", line 11, in \r\nstart.main()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\spyder_kernels\\console\\start.py\", line 284, in main\r\nkernel.initialize()\r\nFile \"\", line 2, in initialize\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\traitlets\\config\\application.py\", line 87, in catch_config_error\r\nreturn method(app, *args, **kwargs)\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 474, in initialize\r\nself.init_io()\r\nFile \"C:\\ProgramData\\Anaconda3\\lib\\site‑packages\\ipykernel\\kernelapp.py\", line 326, in init_io\r\nsys.stdout.flush()\r\nAttributeError: 'NoneType' object has no attribute 'flush'\r\n\r\nLooking back at Anaconda Prompt, this happens:\r\n![jsnotallowed](https://user-images.githubusercontent.com/34351331/45060880-f3074b00-b06f-11e8-9168-297a314c2668.PNG)\r\n\r\n## Versions\r\n<!--- You can get this information from Help > About Spyder...\r\nor (if Spyder won't launch) the \"conda list\" command\r\nfrom the Anaconda Prompt/Terminal/command line. --->\r\n\r\n* Spyder version: 3.3.1\r\n* Python version: 3.6.6\r\n* Qt version: 5.9.6\r\n* PyQt version: 5.9.2\r\n* Operating System name/version: Windows 10\r\n\r\n### Dependencies\r\n<!--- Please go to the menu entry Help > Dependencies,\r\npress the Copy to clipboard button and paste below --->\r\n\r\n```\r\nIPython >=4.0     :  6.5.0 (OK)\r\ncython >=0.21     :  0.28.5 (OK)\r\njedi >=0.9.0      :  0.12.1 (OK)\r\nmatplotlib >=2.0.0:  2.2.2 (OK)\r\nnbconvert >=4.0   :  5.3.1 (OK)\r\nnumpy >=1.7       :  1.15.1 (OK)\r\npandas >=0.13.1   :  0.23.4 (OK)\r\npycodestyle >=2.3 :  2.4.0 (OK)\r\npyflakes >=0.6.0  :  2.0.0 (OK)\r\npygments >=2.0    :  2.2.0 (OK)\r\npylint >=0.25     :  2.1.1 (OK)\r\nqtconsole >=4.2.0 :  4.3.1 (OK)\r\nrope >=0.9.4      :  0.11.0 (OK)\r\nsphinx >=0.6.6    :  1.7.8 (OK)\r\nsympy >=0.7.3     :  1.2 (OK)\r\n```\r\n"}}
{"actor":{"display_login":"OD1995"}}