{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1450","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1450/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1450/events","html_url":"https://github.com/pytest-dev/pytest/issues/1450","id":140265096,"number":1450,"title":"pytest fails in Windows in Python 3.5, but not 2.7","user":{"login":"BookOwl","id":13385064,"avatar_url":"https://avatars.githubusercontent.com/u/13385064?v=3","gravatar_id":"","url":"https://api.github.com/users/BookOwl","html_url":"https://github.com/BookOwl","followers_url":"https://api.github.com/users/BookOwl/followers","following_url":"https://api.github.com/users/BookOwl/following{/other_user}","gists_url":"https://api.github.com/users/BookOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/BookOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BookOwl/subscriptions","organizations_url":"https://api.github.com/users/BookOwl/orgs","repos_url":"https://api.github.com/users/BookOwl/repos","events_url":"https://api.github.com/users/BookOwl/events{/privacy}","received_events_url":"https://api.github.com/users/BookOwl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-11T19:07:15Z","updated_at":"2016-03-16T12:34:25Z","closed_at":null,"body":"When I run `py -3 -m pytest --version` in Python 3.5 on Windows 8.1, I get this error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 170, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pytest.py\", line 17, in <module>\r\n    raise SystemExit(pytest.main())\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\config.py\", line 39, in main\r\n    config = _prepareconfig(args, plugins)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\config.py\", line 118, in _prepareconfig\r\n    pluginmanager=pluginmanager, args=args)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 724, in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 338, in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 333, in <lambda>\r\n    _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 595, in execute\r\n    return _wrapped_call(hook_impl.function(*args), self.execute)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 249, in _wrapped_call\r\n    wrap_controller.send(call_outcome)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\helpconfig.py\", line 28, in pytest_cmdline_parse\r\n    config = outcome.get_result()\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 278, in get_result\r\n    raise ex[1].with_traceback(ex[2])\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 264, in __init__\r\n    self.result = func()\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 596, in execute\r\n    res = hook_impl.function(*args)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\config.py\", line 856, in pytest_cmdline_parse\r\n    self.parse(args)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\config.py\", line 961, in parse\r\n    self._preparse(args, addopts=addopts)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\config.py\", line 932, in _preparse\r\n    args=args, parser=self._parser)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 724, in __call__\r\n    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 338, in _hookexec\r\n    return self._inner_hookexec(hook, methods, kwargs)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 333, in <lambda>\r\n    _MultiCall(methods, kwargs, hook.spec_opts).execute()\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 595, in execute\r\n    return _wrapped_call(hook_impl.function(*args), self.execute)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\vendored_packages\\pluggy.py\", line 244, in _wrapped_call\r\n    next(wrap_controller)   # first yield\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\capture.py\", line 34, in pytest_load_initial_conftests\r\n    _readline_workaround()\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\_pytest\\capture.py\", line 470, in _readline_workaround\r\n    import readline  # noqa\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\readline.py\", line 6, in <module>\r\n    from pyreadline.rlmain import Readline\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\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\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\pyreadline\\console\\__init__.py\", line 15, in <module>\r\n    from .console import *\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\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\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\ctypes\\__init__.py\", line 425, in LoadLibrary\r\n    return self._dlltype(name)\r\n  File \"C:\\Users\\Matthew\\AppData\\Local\\Programs\\Python\\Python35-32\\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\nIt used to work in python 3.5 and still does in 2.7, so I don't know what's wrong.\r\n\r\npip list output:\r\n```\r\nappdirs (1.4.0)\r\nargs (0.1.0)\r\nasciimatics (1.6.0)\r\nastor (0.5)\r\nbeautifulsoup4 (4.4.0)\r\nclint (0.5.1)\r\ncolorama (0.3.7)\r\nCommonMark (0.6.3)\r\nconstruct (2.0.6)\r\ncycler (0.9.0)\r\ndistribute (0.7.3)\r\net-xmlfile (1.0.1)\r\nfpdf (1.7.2)\r\nfuture (0.15.2)\r\ngoogle-speech (1.0.14)\r\ngrako (3.6.5)\r\ngTTS-token (1.0.1)\r\nhtml5lib (0.9999999)\r\nhttplib2 (0.9.2)\r\nhy (0.11.1)\r\nIMAPClient (0.13)\r\njdcal (1.2)\r\nkurt (2.0.7)\r\nmatplotlib (1.5.1)\r\nmp3play (0.1.15)\r\nnumpy (1.10.4)\r\nnustack (0.11.0)\r\nopenpyxl (2.3.0)\r\npdfkit (0.5.0)\r\nPillow (3.1.1)\r\npip (8.0.3)\r\npkginfo (1.2.1)\r\nplaysound (1.1.0)\r\npy (1.4.31)\r\npy2exe (0.9.2.2)\r\nPyAudio (0.2.9)\r\nPyAutoGUI (0.9.31)\r\npyfiglet (0.7.4)\r\npyglet (1.2.4)\r\nPygments (2.1.3)\r\npyhistogram (0.1)\r\nPyMsgBox (1.0.3)\r\nPyOpenGL (3.1.0)\r\npyparsing (2.0.7)\r\nPyPDF2 (1.25.1)\r\npypiwin32 (219)\r\npyreadline (2.0)\r\npyreq (1.1.0)\r\nPyScreeze (0.1.8)\r\nPySocks (1.5.6)\r\npytest (2.9.0)\r\npython-2048a (0.0.0)\r\npython-dateutil (2.4.2)\r\nPyTweening (1.0.3)\r\npytz (2015.7)\r\npyzmail (1.0.3)\r\nrequests (2.9.1)\r\nrequests-toolbelt (0.6.0)\r\nrply (0.7.4)\r\nscratchapi (1.0.0)\r\nselenium (2.48.0)\r\nSend2Trash (1.3.0)\r\nsetuptools (18.2)\r\nsix (1.10.0)\r\nsympy (0.7.6.1)\r\ntk2048 (1.4)\r\ntwilio (4.9.0)\r\ntwine (1.6.5)\r\ntymeventure (0.1.0)\r\nvirtualenv (14.0.6)\r\nwheel (0.29.0)\r\nwitkets (0.2.4)\r\n```"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/197299148","html_url":"https://github.com/pytest-dev/pytest/issues/1450#issuecomment-197299148","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1450","id":197299148,"user":{"login":"BookOwl","id":13385064,"avatar_url":"https://avatars.githubusercontent.com/u/13385064?v=3","gravatar_id":"","url":"https://api.github.com/users/BookOwl","html_url":"https://github.com/BookOwl","followers_url":"https://api.github.com/users/BookOwl/followers","following_url":"https://api.github.com/users/BookOwl/following{/other_user}","gists_url":"https://api.github.com/users/BookOwl/gists{/gist_id}","starred_url":"https://api.github.com/users/BookOwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BookOwl/subscriptions","organizations_url":"https://api.github.com/users/BookOwl/orgs","repos_url":"https://api.github.com/users/BookOwl/repos","events_url":"https://api.github.com/users/BookOwl/events{/privacy}","received_events_url":"https://api.github.com/users/BookOwl/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T12:34:25Z","updated_at":"2016-03-16T12:34:25Z","body":"@nicoddemus, yes, it does."}}