The new plone.app.upgrade release works for me, applying the previously missing 5.1a1 step correctly.
Anyone seen this build error?
zip_safe flag not set; analyzing archive contents...
While:
Installing.
Checking for upgrades.
Getting distribution for 'appdirs==1.4.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 "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/buildout.py", line 1982, in main
getattr(buildout, command)(args)
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/buildout.py", line 517, in install
self._maybe_upgrade()
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/buildout.py", line 953, in _maybe_upgrade
allow_hosts = self._allow_hosts
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/easy_install.py", line 913, in install
return installer.install(specs, working_set)
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/easy_install.py", line 714, in install
for dist in self._get_dist(req, ws):
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/easy_install.py", line 563, in _get_dist
dists = [_move_to_eggs_dir_and_compile(dist, self._dest)]
File "/tmp/plone/eggs/zc.buildout-2.9.2-py2.7.egg/zc/buildout/easy_install.py", line 1730, in _move_to_eggs_dir_and_compile
assert newdist is not None # newloc above is missing our dist?!
AssertionError
Yes me. The fix was depending on pyparse in a specific version, iirc. Maybe the version in versions.cfg and requiremens.txt in buidout.coredev differ? I'm AFC so I cannot look it up.
Anyone have a resolution for this?
I'm installing plone in a virtualenv environment with a buildout script extending buildout.coredev.
I normally use a buildout based on coredev and do:
virtualenv .
./bin/pip install -U zc.buildout setuptools
./bin/buildout
If I install zc.buildout and setuptools from coredevs requirements.txt, it works and I do not get this error:
virtualenv .
./bin/pip install -r https://raw.githubusercontent.com/plone/buildout.coredev/5.1/requirements.txt
./bin/buildout
I do not fully understand what's going on here, though.
@esteele I had this issue too and pinning zc.buildout to 2.8.0 or earlier did the trick. Just stay away from 2.9.x
works for me with this bootstrap.sh:
#!/bin/sh
rm -r ./lib ./include ./local ./bin
virtualenv --clear .
./bin/pip install -r https://raw.githubusercontent.com/plone/buildout.coredev/5.1/requirements.txt
./bin/buildout
Thanks. We'll call this done-enough. I've removed the -pending, so 5.1b2 is now released!
The problems persists for me when building 5.1b3 for plone-demo.info:
Getting distribution for 'appdirs==1.4.2'.
updated to 5.1b3
zip_safe flag not set; analyzing archive contents...
While:
Installing.
Checking for upgrades.
Getting distribution for 'appdirs==1.4.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 "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/buildout.py", line 2123, in main
getattr(buildout, command)(args)
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/buildout.py", line 645, in install
self._maybe_upgrade()
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/buildout.py", line 1081, in _maybe_upgrade
allow_hosts = self._allow_hosts
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/easy_install.py", line 913, in install
return installer.install(specs, working_set)
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/easy_install.py", line 714, in install
for dist in self._get_dist(req, ws):
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/easy_install.py", line 563, in _get_dist
dists = [_move_to_eggs_dir_and_compile(dist, self._dest)]
File "/tmp/plone/eggs/zc.buildout-2.9.3-py2.7.egg/zc/buildout/easy_install.py", line 1730, in _move_to_eggs_dir_and_compile
assert newdist is not None # newloc above is missing our dist?!
AssertionError
Use https://github.com/plone/buildout.coredev/blob/5.1/bootstrap.sh in order to have setuptools and dependencies setup correctly.
The old way with python-bootstrap.py is known as error prone. There is a Plip pending to fix this/ get rid of the old way.