Opened 9 years ago

Closed 9 years ago

#24077 closed Bug (needsinfo)

Error installing Django 1.7.2

Reported by: duytrung Owned by: nobody
Component: Uncategorized Version: 1.7
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by duytrung)

I encounter this error while upgrade Django from 1.7.1 to 1.7.2

C:\Anaconda3\Scripts>pip install django -U
Collecting django from https://pypi.python.org/packages/py2.py3/D/Django/Django-1.7.2-py2.py3-none-a
ny.whl#md5=b57f9a2dec214b60e338aa80fb902936
  Downloading Django-1.7.2-py2.py3-none-any.whl (7.4MB)
    100% |################################| 7.4MB 352kB/s ta 0:00:01
Installing collected packages: django
  Found existing installation: django 1.7.1
    Uninstalling django-1.7.1:
      Successfully uninstalled django-1.7.1

  Exception:
  Traceback (most recent call last):
    File "C:\Anaconda3\lib\shutil.py", line 374, in _rmtree_unsafe
      os.rmdir(path)
  OSError: [WinError 145] The directory is not empty: 'C:\\Users\\MYEXPE~1\\AppData\\Local\\Temp\\pi
p-9ejrkiof-uninstall\\anaconda3\\lib\\site-packages\\django-1.7.1-py3.4.egg\\django\\conf\\locale\\h
u'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\Anaconda3\lib\site-packages\pip\basecommand.py", line 232, in main
      status = self.run(options, args)
    File "C:\Anaconda3\lib\site-packages\pip\commands\install.py", line 347, in run
      root=options.root_path,
    File "C:\Anaconda3\lib\site-packages\pip\req\req_set.py", line 560, in install
      requirement.commit_uninstall()
    File "C:\Anaconda3\lib\site-packages\pip\req\req_install.py", line 677, in commit_uninstall
      self.uninstalled.commit()
    File "C:\Anaconda3\lib\site-packages\pip\req\req_uninstall.py", line 153, in commit
      rmtree(self.save_dir)
    File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 58, in rmtree
      onerror=rmtree_errorhandler)
    File "C:\Anaconda3\lib\shutil.py", line 477, in rmtree
      return _rmtree_unsafe(path, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 367, in _rmtree_unsafe
      _rmtree_unsafe(fullname, onerror)
    File "C:\Anaconda3\lib\shutil.py", line 376, in _rmtree_unsafe
      onerror(os.rmdir, path, sys.exc_info())
    File "C:\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 70, in rmtree_errorhandler
      func(path)
  OSError: [WinError 145] The directory is not empty: 'C:\\Users\\MYEXPE~1\\AppData\\Local\\Temp\\pi
p-9ejrkiof-uninstall\\anaconda3\\lib\\site-packages\\django-1.7.1-py3.4.egg\\django\\conf\\locale\\h
u'

Change History (3)

comment:1 by duytrung, 9 years ago

Description: modified (diff)

comment:2 by Tim Graham, 9 years ago

Not sure this is a bug in Django. What version of pip are you running? I had no trouble install Django 1.7.1 and then upgrading to 1.7.2 with pip 1.5.6/Python 3.4 on Windows Vista.

comment:3 by Claude Paroz, 9 years ago

Resolution: needsinfo
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top