Hi,
I try insert new themes in PLone 3.

But show this error:

C:\Program Files\Plone>bin\buildout
Uninstalling zopepy.
While:
 Installing.
 Uninstalling zopepy.

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:\program
files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z
c\buildout\buildout.py", line 1660, in main
   getattr(buildout, command)(args)
 File "c:\program
files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z
c\buildout\buildout.py", line 471, in install
   self._uninstall_part(part, installed_part_options)
 File "c:\program
files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z
c\buildout\buildout.py", line 594, in _uninstall_part
   self._uninstall(
 File "c:\program
files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z
c\buildout\buildout.py", line 708, in _uninstall
   os.remove(f)
OSError: [Errno 13] Permission denied: 'C:\\Program
Files\\Plone\\bin\\zopepy.ex
e'

C:\Program Files\Plone>

Dani AI

Generated

was right that this is a permissions/lock problem, and , the Compatibility “Run as administrator” checkbox is not the same as launching an elevated command shell — buildout must be run from an elevated prompt and no Plone/Zope process may be holding the file. The common causes are: a running Plone/Zope instance (service or process), an antivirus or indexer locking the EXE, or NTFS/UAC preventing deletion from Program Files.

Practical steps that usually fix it:

  • Stop any running Plone/Zope instance first (Services → stop the Plone/Zope service, or use Task Manager to end python/zope/zopepy processes).
  • Open an elevated command prompt (Start → type cmd → right‑click → Run as administrator) and run buildout from there.
  • If the file is still locked or not removable, take ownership and grant yourself permissions, then retry. Example commands (run in an elevated prompt):
takeown /f "C:\Program Files\Plone\bin\zopepy.exe"
icacls "C:\Program Files\Plone\bin\zopepy.exe" /grant %USERNAME%:F

To give your user full control over the whole install (for a development machine only):

icacls "C:\Program Files\Plone" /grant %USERNAME%:(OI)(CI)F /T

If a process is locking the file and you can’t find it, use Resource Monitor (Disk → Associated Handles) or a handle/sc.exe utility to locate the handle, or forcibly terminate the process with taskkill only as a last resort.

Longer-term best practices: don’t develop inside Program Files on Windows — install Plone in a user-writable folder (for example C:\Plone or under your profile) or use a dedicated development buildout where develop = src lives in your workspace. That avoids UAC headaches and makes theme development and file edits much smoother. Also temporarily disable or exclude the Plone folder from any antivirus scans while running buildout.

Recommended Answers

All 2 Replies

It looks like your program failed to remove a file due to a permission denied on that file. Perhaps you shoud run the program as administrator. If it still fails, you could check and may be change the permissions of C:\Program Files\Plone\bin\zopepy.exe.

Now i execute as Administrator (properties/Compability/Run this program as an administrator), but is the same ...

My OS: Windows 7 Pro

actually, the manual is written the thema be added in to the C: \ Program Files \ Plone \ src folder, but to me, not the src folder, it created itself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.