Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Failed to execute command: in 'Bootstrap buildout' play #93

Closed
djowett opened this issue Jul 22, 2016 · 2 comments
Closed

Exception: Failed to execute command: in 'Bootstrap buildout' play #93

djowett opened this issue Jul 22, 2016 · 2 comments

Comments

@djowett
Copy link
Contributor

djowett commented Jul 22, 2016

I'm on Ubuntu 12.04, deploying Plone 4.3.7 and am seeing an error like this:

TASK [plone.plone_server : Bootstrap buildout] *********************************
fatal: [plone11]: FAILED! => {"changed": true, "cmd": ["../python2.7/bin/python2.7", "bootstrap.py", "--setuptools-version=8.0.4"], "delta": "0:00:00.874500", ...

If I run this outside Ansible, it looks like this:

$ sudo -u plone_buildout ../python2.7/bin/python2.7 bootstrap.py --setuptools-version=8.0.4
error: None
Traceback (most recent call last):
  File "bootstrap.py", line 172, in <module>
    "Failed to execute command:\n%s" % repr(cmd)[1:-1])
Exception: Failed to execute command:
'/usr/local/plone-4.3/highfields/../python2.7/bin/python2.7', '-c', 'from setuptools.command.easy_install import main; main()', '-mZqNxd', '/tmp/tmpnwlSux', 'zc.buildout==2.5.2'

Python on Ubuntu 12.04 is only at 2.7.3, and Setuptools on the server is up at 24.3.0, so maybe that's an issue, but I can't seem to pin it down.

The only things I've found online that looks similar are these:
pypa/setuptools#543
https://mail.python.org/pipermail/distutils-sig/2014-September/024759.html

@djowett
Copy link
Contributor Author

djowett commented Jul 22, 2016

I think this is an issue with versions. I pinned setuptools to 0.6c11 and zc.buildout to 1.7.1 and got it working somehow. Will add a branch to show how next week

djowett added a commit to jowent/ansible.plone_server that referenced this issue Jul 25, 2016
…hich only has Python 2.7.3

This was what worked for me, but later versions of zc.buildout & setuptools may also work

If using the playbook, you will also want to add
    plone_additional_versions:
      - "setuptools = 0.6c11"
to match the setuptools version specified here
@djowett
Copy link
Contributor Author

djowett commented Jul 25, 2016

For the record, this is solved for me by jowent@1f65ae2 - though as noted there, if you are using the playbook, you will also want to add...

plone_additional_versions:
  - "setuptools = 0.6c11"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant