{"action":"created","issue":{"url":"https://api.github.com/repos/ipython/ipython/issues/8316","labels_url":"https://api.github.com/repos/ipython/ipython/issues/8316/labels{/name}","comments_url":"https://api.github.com/repos/ipython/ipython/issues/8316/comments","events_url":"https://api.github.com/repos/ipython/ipython/issues/8316/events","html_url":"https://github.com/ipython/ipython/issues/8316","id":68189707,"number":8316,"title":"ipython crashes with TypeError for ipython 3.1.0 with python3.5 and pyreadline","user":{"login":"waynew","id":189750,"avatar_url":"https://avatars.githubusercontent.com/u/189750?v=3","gravatar_id":"","url":"https://api.github.com/users/waynew","html_url":"https://github.com/waynew","followers_url":"https://api.github.com/users/waynew/followers","following_url":"https://api.github.com/users/waynew/following{/other_user}","gists_url":"https://api.github.com/users/waynew/gists{/gist_id}","starred_url":"https://api.github.com/users/waynew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waynew/subscriptions","organizations_url":"https://api.github.com/users/waynew/orgs","repos_url":"https://api.github.com/users/waynew/repos","events_url":"https://api.github.com/users/waynew/events{/privacy}","received_events_url":"https://api.github.com/users/waynew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-13T20:41:08Z","updated_at":"2015-04-14T20:55:31Z","closed_at":"2015-04-14T20:55:31Z","body":"I'm running Windows 7 with whatever the current set of patches are, Python3.5 rc2, and just did a pip install of ipython 3.1.0.\r\n\r\nCame without colors, and said that for color support I need to install pyreadline on Windows. So I did. An then it crashed with:\r\n\r\n```c:\\users\\wwerner>C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\Scripts\\ipython.exe\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\runpy.py\", line 170, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\Scripts\\ipython.exe\\__main__.py\", line 9, in <module>\r\n    sys.exit(start_ipython())\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\__init__.py\", line 120, in start_ipython\r\n    return launch_new_instance(argv=argv, **kwargs)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\config\\application.py\", line 573, in launch_instance\r\n    app.initialize(argv)\r\n  File \"<string>\", line 2, in initialize\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\config\\application.py\", line 75, in catch_config_error\r\n    return method(app, *args, **kwargs)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\terminal\\ipapp.py\", line 332, in initialize\r\n    self.init_shell()\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\terminal\\ipapp.py\", line 348, in init_shell\r\n    ipython_dir=self.ipython_dir, user_ns=self.user_ns)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\config\\configurable.py\", line 337, in instance\r\n    inst = cls(*args, **kwargs)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\core\\interactiveshell.py\", line 512, in __init__\r\n    self.init_readline()\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\core\\interactiveshell.py\", line 1912, in init_readline\r\n    import IPython.utils.rlineimpl as readline\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\IPython\\utils\\rlineimpl.py\", line 21, in <module>\r\n    _rl = __import__(_rlmod_name)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\readline.py\", line 6, in <module>\r\n    from pyreadline.rlmain import Readline\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pyreadline\\__init__.py\", line 11, in <module>\r\n    from . import unicode_helper, logger, clipboard, lineeditor, modes, console\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pyreadline\\console\\__init__.py\", line 15, in <module>\r\n    from .console import *\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\pyreadline\\console\\console.py\", line 610, in <module>\r\n    msvcrt = cdll.LoadLibrary(ctypes.util.find_msvcrt())\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\ctypes\\__init__.py\", line 425, in LoadLibrary\r\n    return self._dlltype(name)\r\n  File \"C:\\Users\\wwerner\\AppData\\Local\\Programs\\Python\\Python35\\lib\\ctypes\\__init__.py\", line 347, in __init__\r\n    self._handle = _dlopen(self._name, mode)\r\nTypeError: bad argument type for built-in operation```\r\n\r\nDoing `py -m pip uninstall pyreadline` makes it work, once again."},"comment":{"url":"https://api.github.com/repos/ipython/ipython/issues/comments/93056892","html_url":"https://github.com/ipython/ipython/issues/8316#issuecomment-93056892","issue_url":"https://api.github.com/repos/ipython/ipython/issues/8316","id":93056892,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T20:55:31Z","updated_at":"2015-04-14T20:55:31Z","body":"I spoke to Steve Dower, and pyreadline will need to change. I have opened pyreadline/pyreadline#32."}}