Collective zc.buildout recipes

shutil.rmtree can't remove svn metadata in plone.recipe.zope2install

Reported by gotti on 2009-07-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
collective.buildout
Undecided
Unassigned

Bug Description

shutil.rmtree fails on Windows when it tries to remove directories containing readonly files:

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "C:\Daten\Dokumente und Einstellungen\gotti\aurora\eggs\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1519, in main
    getattr(buildout, command)(args)
  File "C:\Daten\Dokumente und Einstellungen\gotti\aurora\eggs\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 473, in install
    installed_files = self[part]._call(recipe.install)
  File "C:\Daten\Dokumente und Einstellungen\gotti\aurora\eggs\zc.buildout-1.3.0-py2.4.egg\zc\buildout\buildout.py", line 1101, in _call
    return f()
  File "c:\daten\dokumente und einstellungen\gotti\aurora\eggs\plone.recipe.zope2install-3.1-py2.4.egg\plone\recipe\zope2install\__init__.py", line 192, in install
    shutil.rmtree(location)
  File "c:\daten\dokume~1\gotti\lokale~1\temp\tmp1ftbrp\shutil.py", line 163, in rmtree
  File "c:\daten\dokume~1\gotti\lokale~1\temp\tmp1ftbrp\shutil.py", line 168, in rmtree
  File "c:\daten\dokume~1\gotti\lokale~1\temp\tmp1ftbrp\shutil.py", line 166, in rmtree
OSError: [Errno 13] Permission denied: 'C:\\daten\\Dokumente und Einstellungen\\gotti\\aurora\\parts\\zope\\.svn\\dir-prop-base'

A possible solution would use zc.buildout.rmtree.rmtree instead.

kleist (kleist) on 2010-01-20
description: updated
kleist (kleist) wrote :

I made no change to the description, just clicked the exclamation mark without knowing its function (should have a tooltip, maybe?).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers