{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/4734","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/4734/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/4734/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/4734/events","html_url":"https://github.com/pypa/pip/issues/4734","id":259344284,"node_id":"MDU6SXNzdWUyNTkzNDQyODQ=","number":4734,"title":"\"directory is not empty\" when installing a package via pip","user":{"login":"eliot1785","id":3478888,"node_id":"MDQ6VXNlcjM0Nzg4ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/3478888?v=4","gravatar_id":"","url":"https://api.github.com/users/eliot1785","html_url":"https://github.com/eliot1785","followers_url":"https://api.github.com/users/eliot1785/followers","following_url":"https://api.github.com/users/eliot1785/following{/other_user}","gists_url":"https://api.github.com/users/eliot1785/gists{/gist_id}","starred_url":"https://api.github.com/users/eliot1785/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliot1785/subscriptions","organizations_url":"https://api.github.com/users/eliot1785/orgs","repos_url":"https://api.github.com/users/eliot1785/repos","events_url":"https://api.github.com/users/eliot1785/events{/privacy}","received_events_url":"https://api.github.com/users/eliot1785/received_events","type":"User","site_admin":false},"labels":[{"id":634467499,"node_id":"MDU6TGFiZWw2MzQ0Njc0OTk=","url":"https://api.github.com/repos/pypa/pip/labels/K:%20crash","name":"K: crash","color":"931927","default":false},{"id":98943,"node_id":"MDU6TGFiZWw5ODk0Mw==","url":"https://api.github.com/repos/pypa/pip/labels/O:%20windows","name":"O: windows","color":"1d76db","default":false},{"id":82422,"node_id":"MDU6TGFiZWw4MjQyMg==","url":"https://api.github.com/repos/pypa/pip/labels/type:%20bug","name":"type: bug","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-21T00:54:15Z","updated_at":"2019-03-10T21:28:59Z","closed_at":null,"author_association":"NONE","body":"* Pip version: 9.0.1\r\n* Python version: 3.6\r\n* Operating system: Windows 7\r\n\r\n### Description:\r\n\r\nWhen I install packages using pip, I am usually (but not always) getting exceptions that occur AFTER the message that the package was successfully installed. \r\n\r\nPlease note that this is an Anaconda distribution, but I was running pip instead of conda nonetheless. This is on a work computer so I suppose it could be antivirus-related, but I don't have anything specific to suggest that. \r\n\r\nPotentially related issue here (https://github.com/pypa/pip/issues/2892) except that the directories in my case were not all that deep.\r\nAnother potentially related issue here (https://github.com/pypa/pip/issues/306) but I take it from the fact that the issue was closed that I may have encountered something new.\r\n\r\n### What I've run:\r\n\r\n> Microsoft Windows [Version 6.1.7601]\r\n> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.\r\n> \r\n> C:\\Users\\sdewey> pip install django\r\n> Collecting django\r\n>   Using cached Django-1.11.5-py2.py3-none-any.whl\r\n> Requirement already satisfied: pytz in c:\\users\\sdewey\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages (from django)\r\n> \r\n> Installing collected packages: django\r\n> Successfully installed django-1.11.5\r\n> Exception:\r\n> Traceback (most recent call last):\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 391, in _rmtree_unsafe\r\n>     os.rmdir(path)\r\n> OSError: [WinError 145] The directory is not empty: 'C:\\\\Users\\\\sdewey\\\\AppData\\\\Local\\\\Temp\\\\pip-build-nr7rei3l\\\\django\r\n> \\\\django\\\\contrib\\\\contenttypes\\\\locale\\\\id'\r\n> \r\n> During handling of the above exception, another exception occurred:\r\n> \r\n> Traceback (most recent call last):\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\basecommand.py\", line 215, in main\r\n>     status = self.run(options, args)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\commands\\install.py\", line 385, in run\r\n>     requirement_set.cleanup_files()\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\utils\\build.py\", line 38, in __exit__\r\n>     self.cleanup()\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\utils\\build.py\", line 42, in cleanup\r\n>     rmtree(self.name)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\_vendor\\retrying.py\", line 49, in wrappe\r\n> d_f\r\n>     return Retrying(*dargs, **dkw).call(f, *args, **kw)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\_vendor\\retrying.py\", line 212, in call\r\n>     raise attempt.get()\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\_vendor\\retrying.py\", line 247, in get\r\n>     six.reraise(self.value[0], self.value[1], self.value[2])\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\_vendor\\six.py\", line 686, in reraise\r\n>     raise value\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\_vendor\\retrying.py\", line 200, in call\r\n>     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\utils\\__init__.py\", line 102, in rmtree\r\n>     onerror=rmtree_errorhandler)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 494, in rmtree\r\n>     return _rmtree_unsafe(path, onerror)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 384, in _rmtree_unsafe\r\n>     _rmtree_unsafe(fullname, onerror)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 384, in _rmtree_unsafe\r\n>     _rmtree_unsafe(fullname, onerror)\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 384, in _rmtree_unsafe\r\n>     _rmtree_unsafe(fullname, onerror)\r\n>   [Previous line repeated 2 more times]\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\shutil.py\", line 393, in _rmtree_unsafe\r\n>     onerror(os.rmdir, path, sys.exc_info())\r\n>   File \"C:\\Users\\sdewey\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\pip\\utils\\__init__.py\", line 114, in rmtree_\r\n> errorhandler\r\n>     func(path)\r\n> OSError: [WinError 145] The directory is not empty: 'C:\\\\Users\\\\sdewey\\\\AppData\\\\Local\\\\Temp\\\\pip-build-nr7rei3l\\\\django\r\n> \\\\django\\\\contrib\\\\contenttypes\\\\locale\\\\id'\r\n> "},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/471355114","html_url":"https://github.com/pypa/pip/issues/4734#issuecomment-471355114","issue_url":"https://api.github.com/repos/pypa/pip/issues/4734","id":471355114,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTM1NTExNA==","user":{"login":"cjerdonek","id":355822,"node_id":"MDQ6VXNlcjM1NTgyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/355822?v=4","gravatar_id":"","url":"https://api.github.com/users/cjerdonek","html_url":"https://github.com/cjerdonek","followers_url":"https://api.github.com/users/cjerdonek/followers","following_url":"https://api.github.com/users/cjerdonek/following{/other_user}","gists_url":"https://api.github.com/users/cjerdonek/gists{/gist_id}","starred_url":"https://api.github.com/users/cjerdonek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjerdonek/subscriptions","organizations_url":"https://api.github.com/users/cjerdonek/orgs","repos_url":"https://api.github.com/users/cjerdonek/repos","events_url":"https://api.github.com/users/cjerdonek/events{/privacy}","received_events_url":"https://api.github.com/users/cjerdonek/received_events","type":"User","site_admin":false},"created_at":"2019-03-10T21:28:59Z","updated_at":"2019-03-10T21:28:59Z","author_association":"MEMBER","body":"This may have been fixed by PR #6029, so users should try again with pip 19.0.3. (But see also issue #6321.)"}}
{"actor":{"display_login":"cjerdonek"}}