I got a new Macbook Air M3 and see this error with a Plone 6.1 buildout:
Getting distribution for 'zope.interface==7.2'.
root: Downloading https://files.pythonhosted.org/packages/a2/e9/1463036df1f78ff8c45a02642a7bf6931ae4a38a4acd6a8e07c128e387a7/zope.interface-7.2-cp312-cp312-macosx_11_0_arm64.whl#sha256=21328fcc9d5b80768bf051faa35ab98fb979080c18e6f84ab3f27ce703bce465
While:
Installing.
Getting section instance.
Initializing section instance.
Installing recipe plone.recipe.zope2instance.
Getting distribution for 'zope.interface==7.2'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 2325, in main
getattr(buildout, command)(args)
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 753, in install
[self[part]['recipe'] for part in install_parts]
~~~~^^^^^^
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 1401, in __getitem__
options._initialize()
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 1513, in _initialize
self.initialize()
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 1519, in initialize
recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/buildout.py", line 1461, in _install_and_load
zc.buildout.easy_install.install(
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/easy_install.py", line 1011, in install
return installer.install(specs, working_set)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/easy_install.py", line 784, in install
for dist in self._get_dist(req, ws):
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/easy_install.py", line 619, in _get_dist
dists = [_move_to_eggs_dir_and_compile(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/andreasjung/src/zchl_buildout/.venv/lib/python3.12/site-packages/zc/buildout/easy_install.py", line 2046, in _move_to_eggs_dir_and_compile
os.rename(tmp_loc, newloc)
OSError: [Errno 66] Directory not empty: '/Users/andreasjung/src/zchl_buildout/eggs/tmp6c8mwkzm/zope.interface-7.2-py3.12-macosx-11.0-arm64.egg' -> '/Users/andreasjung/src/zchl_buildout/eggs/zope.interface-7.2-py3.12-macosx-11.0-arm64.egg'