{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/3714","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/3714/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/3714/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/3714/events","html_url":"https://github.com/pypa/pip/issues/3714","id":156375437,"number":3714,"title":"Winreg import failure on Windows, Python 3.4","user":{"login":"maciejkula","id":2392579,"avatar_url":"https://avatars.githubusercontent.com/u/2392579?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkula","html_url":"https://github.com/maciejkula","followers_url":"https://api.github.com/users/maciejkula/followers","following_url":"https://api.github.com/users/maciejkula/following{/other_user}","gists_url":"https://api.github.com/users/maciejkula/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkula/subscriptions","organizations_url":"https://api.github.com/users/maciejkula/orgs","repos_url":"https://api.github.com/users/maciejkula/repos","events_url":"https://api.github.com/users/maciejkula/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-23T21:54:03Z","updated_at":"2016-05-24T08:14:01Z","closed_at":null,"body":"* Pip version: 8.1.2\r\n* Python version: 3.4\r\n* Operating System: Windows (miniconda)\r\n\r\n### Description:\r\n\r\nTrying to set up an appveyor CI environment, pip install fails when trying to import `_winreg` (due to https://github.com/pypa/pip/blob/master/pip/utils/appdirs.py#L179). In Python 3 this module has been renamed to `winreg`.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Python34-conda64\\Scripts\\pip-script.py\", line 3, in <module>\r\n    import pip\r\n  File \"C:\\Python34-conda64\\lib\\site-packages\\pip\\__init__.py\", line 14, in <module>\r\n    from pip.utils import get_installed_distributions, get_prog\r\n  File \"C:\\Python34-conda64\\lib\\site-packages\\pip\\utils\\__init__.py\", line 23, in <module>\r\n    from pip.locations import (\r\n  File \"C:\\Python34-conda64\\lib\\site-packages\\pip\\locations.py\", line 17, in <module>\r\n    USER_CACHE_DIR = appdirs.user_cache_dir(\"pip\")\r\n  File \"C:\\Python34-conda64\\lib\\site-packages\\pip\\utils\\appdirs.py\", line 36, in user_cache_dir\r\n    path = os.path.normpath(_get_win_folder(\"CSIDL_LOCAL_APPDATA\"))\r\n  File \"C:\\Python34-conda64\\lib\\site-packages\\pip\\utils\\appdirs.py\", line 179, in _get_win_folder_from_registry\r\n    import _winreg\r\nImportError: No module named '_winreg'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/221197369","html_url":"https://github.com/pypa/pip/issues/3714#issuecomment-221197369","issue_url":"https://api.github.com/repos/pypa/pip/issues/3714","id":221197369,"user":{"login":"pfmoore","id":1110419,"avatar_url":"https://avatars.githubusercontent.com/u/1110419?v=3","gravatar_id":"","url":"https://api.github.com/users/pfmoore","html_url":"https://github.com/pfmoore","followers_url":"https://api.github.com/users/pfmoore/followers","following_url":"https://api.github.com/users/pfmoore/following{/other_user}","gists_url":"https://api.github.com/users/pfmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/pfmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfmoore/subscriptions","organizations_url":"https://api.github.com/users/pfmoore/orgs","repos_url":"https://api.github.com/users/pfmoore/repos","events_url":"https://api.github.com/users/pfmoore/events{/privacy}","received_events_url":"https://api.github.com/users/pfmoore/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T08:14:01Z","updated_at":"2016-05-24T08:14:01Z","body":"Can you check whether ```import ctypes``` works on your Python? If it doesn't, then I'm inclined to close this as a broken Python on the assumption that the ```_get_win_folder_from_registry``` function is only for non-CPython systems such as Jython (I've no idea if Jython provides winreg, and under what name if it does). If ctypes does import, then we need to investigate further."}}
{"actor":{"display_login":"pfmoore"}}