{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/5253","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/5253/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/5253/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/5253/events","html_url":"https://github.com/pypa/pip/issues/5253","id":314720523,"number":5253,"title":"My pip is broken. _internal module cannot be imported.","user":{"login":"zchrissirhcz","id":3831847,"avatar_url":"https://avatars0.githubusercontent.com/u/3831847?v=4","gravatar_id":"","url":"https://api.github.com/users/zchrissirhcz","html_url":"https://github.com/zchrissirhcz","followers_url":"https://api.github.com/users/zchrissirhcz/followers","following_url":"https://api.github.com/users/zchrissirhcz/following{/other_user}","gists_url":"https://api.github.com/users/zchrissirhcz/gists{/gist_id}","starred_url":"https://api.github.com/users/zchrissirhcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zchrissirhcz/subscriptions","organizations_url":"https://api.github.com/users/zchrissirhcz/orgs","repos_url":"https://api.github.com/users/zchrissirhcz/repos","events_url":"https://api.github.com/users/zchrissirhcz/events{/privacy}","received_events_url":"https://api.github.com/users/zchrissirhcz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-16T16:03:12Z","updated_at":"2018-05-01T10:46:49Z","closed_at":"2018-04-16T16:09:54Z","author_association":"NONE","body":"* Pip version: 8.1.1\r\n* Python version: 2.7.12\r\n* Operating system: Ubuntu 16.04 (64 bit)\r\n\r\n### Description:\r\n\r\nmy pip is broken. it cannot update. It also complains error when just type pip.\r\n\r\n### What I've run:\r\n\r\n```\r\npip\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/pip\", line7, in <module>\r\n      from pip._internal import main\r\nImportError: No module named _internal\r\n```\r\n\r\nAlso tried `sudo pip` or `sudo su; pip`, with same output.\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/385644896","html_url":"https://github.com/pypa/pip/issues/5253#issuecomment-385644896","issue_url":"https://api.github.com/repos/pypa/pip/issues/5253","id":385644896,"user":{"login":"PetreVane","id":22425017,"avatar_url":"https://avatars3.githubusercontent.com/u/22425017?v=4","gravatar_id":"","url":"https://api.github.com/users/PetreVane","html_url":"https://github.com/PetreVane","followers_url":"https://api.github.com/users/PetreVane/followers","following_url":"https://api.github.com/users/PetreVane/following{/other_user}","gists_url":"https://api.github.com/users/PetreVane/gists{/gist_id}","starred_url":"https://api.github.com/users/PetreVane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PetreVane/subscriptions","organizations_url":"https://api.github.com/users/PetreVane/orgs","repos_url":"https://api.github.com/users/PetreVane/repos","events_url":"https://api.github.com/users/PetreVane/events{/privacy}","received_events_url":"https://api.github.com/users/PetreVane/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T10:46:48Z","updated_at":"2018-05-01T10:46:48Z","author_association":"NONE","body":"I had the same problem but I've used the temporary fix mentioned in issue [#5240](https://github.com/pypa/pip/issues/5240). Soon after that, a new complain popped out, indicating an error in line 11.\r\n\r\n> Traceback (most recent call last):\r\n>   File \"/usr/local/bin/pip\", line 11, in <module>\r\n>     sys.exit(main())\r\n> NameError: name 'main' is not defined\r\n\r\nI've changed the last line, from \r\n\r\n>  sys.exit(main()) \r\n \r\nto\r\n> \r\n\r\n>  sys.exit(_main())\r\n\r\nand Voila! Problem dismissed."}}
{"actor":{"display_login":"PetreVane"}}