{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/3309","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3309/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3309/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3309/events","html_url":"https://github.com/spyder-ide/spyder/issues/3309","id":166563862,"number":3309,"title":"IPython 5 crashes kernels because of problems with Pygments","user":{"login":"samotracio","id":11754477,"avatar_url":"https://avatars.githubusercontent.com/u/11754477?v=3","gravatar_id":"","url":"https://api.github.com/users/samotracio","html_url":"https://github.com/samotracio","followers_url":"https://api.github.com/users/samotracio/followers","following_url":"https://api.github.com/users/samotracio/following{/other_user}","gists_url":"https://api.github.com/users/samotracio/gists{/gist_id}","starred_url":"https://api.github.com/users/samotracio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samotracio/subscriptions","organizations_url":"https://api.github.com/users/samotracio/orgs","repos_url":"https://api.github.com/users/samotracio/repos","events_url":"https://api.github.com/users/samotracio/events{/privacy}","received_events_url":"https://api.github.com/users/samotracio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Comp-Console-IPython","name":"Comp-Console-IPython","color":"d4c5f9"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Type-Bug","name":"Type-Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/30","html_url":"https://github.com/spyder-ide/spyder/milestones/v3.0beta5","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/30/labels","id":1546411,"number":30,"title":"v3.0beta5","description":"","creator":{"login":"ccordoba12","id":365293,"avatar_url":"https://avatars.githubusercontent.com/u/365293?v=3","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":3,"state":"open","created_at":"2016-01-27T14:43:24Z","updated_at":"2016-07-20T16:59:32Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-07-20T11:56:15Z","updated_at":"2016-07-20T17:02:04Z","closed_at":null,"body":"**Spyder does not seem to work well with ipython 5 and crashes when closing/opening consoles** \r\n\r\n**What steps will reproduce the problem?**\r\n\r\n1. Run Spyder\r\n2. Close the ipython console and try to open a new one (same behaviour if trying to open a second ipython console)\r\n\r\n** What do you see ?**\r\n\r\n```\r\nAn error ocurred while starting the kernel\r\nError in sitecustomize; set PYTHONVERBOSE for traceback:\r\nAttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'\r\nTraceback (most recent call last):\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/spyderlib/widgets/externalshell/start_ipython_kernel.py\", line 183, in \r\nfrom IPython.kernel.zmq.kernelapp import IPKernelApp\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/IPython/__init__.py\", line 49, in \r\nfrom .terminal.embed import embed\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/IPython/terminal/embed.py\", line 17, in \r\nfrom IPython.terminal.interactiveshell import TerminalInteractiveShell\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/IPython/terminal/interactiveshell.py\", line 84, in \r\nclass TerminalInteractiveShell(InteractiveShell):\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/IPython/terminal/interactiveshell.py\", line 128, in TerminalInteractiveShell\r\nhelp=\"The name of a Pygments style to use for syntax highlighting: \\n %s\" % ', '.join(get_all_styles())\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/pygments/styles/__init__.py\", line 76, in get_all_styles\r\nfor name, _ in find_plugin_styles():\r\nFile \"/home/edonoso/anaconda3/envs/t5/lib/python3.5/site‑packages/pygments/plugin.py\", line 66, in find_plugin_styles\r\nfor entrypoint in pkg_resources.iter_entry_points(STYLE_ENTRY_POINT):\r\nAttributeError: module 'pkg_resources' has no attribute 'iter_entry_points'\r\n```\r\n\r\n**Please provide any additional information below**\r\nOnly solution seems to restart spyder\r\n\r\n## Versions and main components\r\n\r\n* Spyder Version: 2.3.9\r\n* Python Version: 3.5.2\r\n* Ipython Version: 5.0.0\r\n* Anaconda Version : 4.1.1 - linux - 64bit\r\n* Operating system: OpenSuse 13.1\r\n\r\n## Dependencies\r\nIPython >=1.0      :  5.0.0 (OK)\r\njedi >=0.8.1;<0.9.0:  0.9.0 (NOK)\r\nmatplotlib >=1.0   :  1.5.1 (OK)\r\npandas >=0.13.1    :  0.18.1 (OK)\r\npep8 >=0.6         :  1.7.0 (OK)\r\npsutil >=0.3       :  4.3.0 (OK)\r\npyflakes >=0.6.0   :  1.2.3 (OK)\r\npygments >=1.6     :  2.1.3 (OK)\r\npylint >=0.25      :  None (NOK)\r\nqtconsole >=4.0    :  4.2.1 (OK)\r\nrope >=0.9.2       :  0.9.4-1 (OK)\r\nsphinx >=0.6.6     :  1.4.1 (OK)\r\nsympy >=0.7.3      :  1.0 (OK)\r\nzmq >=2.1.11       :  15.2.0 (OK)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/234013093","html_url":"https://github.com/spyder-ide/spyder/issues/3309#issuecomment-234013093","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/3309","id":234013093,"user":{"login":"Carreau","id":335567,"avatar_url":"https://avatars.githubusercontent.com/u/335567?v=3","gravatar_id":"","url":"https://api.github.com/users/Carreau","html_url":"https://github.com/Carreau","followers_url":"https://api.github.com/users/Carreau/followers","following_url":"https://api.github.com/users/Carreau/following{/other_user}","gists_url":"https://api.github.com/users/Carreau/gists{/gist_id}","starred_url":"https://api.github.com/users/Carreau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Carreau/subscriptions","organizations_url":"https://api.github.com/users/Carreau/orgs","repos_url":"https://api.github.com/users/Carreau/repos","events_url":"https://api.github.com/users/Carreau/events{/privacy}","received_events_url":"https://api.github.com/users/Carreau/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T17:02:04Z","updated_at":"2016-07-20T17:02:04Z","body":"I think I've seen it, try updating setuptools. IIRC it might affect only conda, so you might need to check whether you need to shadow conda setuptools with the pip one. \r\n\r\nFor me, conda most up to date setuptools is 23.0.0-py35_0, pip can get setuptools-24.1.0. \r\n\r\n\r\n"}}
{"actor":{"display_login":"Carreau"}}