collective/collective.hostout — Issue #23: ImportError during `bootstrap_python`
Author: jean
Created: 2012-02-16 11:13:32+00:00
State: open

When Python packages are not available, we try to build it.

Traceback follows:

[vagrant@127.0.0.1:2222] run: /bin/bash -l -c "cd /home/vagrant/plone/ && PATH=\$PATH:\"/home/vagrant/plone/\" export HTTP_PROXY=\"http://127.0.0.1:7001\" && mkdir -p /home/vagrant/plone/python"
Traceback (most recent call last):
File "./bin/hostout", line 18, in
collective.hostout.hostout.main('/home/user/vagrant/dev/pims-dev/parts/hostout/hostout.cfg',sys.argv[1:])
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 725, in main
res = hostout.runcommand(cmd, *cmdargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 450, in runcommand
res = superfun(funcs, *cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 445, in superfun
res = func(*cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/fabfile.py", line 304, in bootstrap
cmd()
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 460, in run
return self.runcommand(name, *args, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 450, in runcommand
res = superfun(funcs, *cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 445, in superfun
res = func(*cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/fabfile.py", line 635, in bootstrap_python_ubuntu
hostout.bootstrap_python()
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 460, in run
return self.runcommand(name, *args, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 450, in runcommand
res = superfun(funcs, *cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 445, in superfun
res = func(*cmdargs, **vargs)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/fabfile.py", line 588, in bootstrap_python
api.run("rm -rf /tmp/Python-%(version)s"%d)
File "/usr/lib/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "/home/user/.buildout/eggs/Fabric-1.3.4-py2.6.egg/fabric/context_managers.py", line 96, in _setenv
yield
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/fabfile.py", line 579, in bootstrap_python
get_url('http://python.org/ftp/python/%(version)s/Python-%(version)s.tgz'%d)
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/fabfile.py", line 894, in get_url
proxy = api.env.hostout.socks_proxy
File "/home/user/vagrant/dev/pims-dev/src/collective.hostout/collective/hostout/hostout.py", line 325, in socks_proxy
self.socks_server = SocksProxy(transport, ('127.0.0.1', 7000))
NameError: global name 'SocksProxy' is not defined