<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>On 2013-12-21 01:45, Sayali Lunkad wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div>
<div><br />
<div class="gmail_quote">Subject: ./run_test.sh fails to build environment <br /><br />Hello,<br />
<div dir="ltr">I get this error when I try to set the environment for Horizon. Any idea why this is happening? I am running Devstack on a VM with Ubuntu 12.04.<br /><br />sayali@sayali:/opt/stack/horizon$ ./run_tests.sh</div>
<div dir="ltr"><br /> [snip]</div>
<div dir="ltr"><br />Downloading/unpacking iso8601>=0.1.8 (from -r /opt/stack/horizon/requirements.txt (line 9))<br />  Error <urlopen error [Errno -2] Name or service not known> while getting <a href="https://pypi.python.org/packages/source/i/iso8601/iso8601-0.1.8.tar.gz#md5=b207ad4f2df92810533ce6145ab9c3e7">https://pypi.python.org/packages/source/i/iso8601/iso8601-0.1.8.tar.gz#md5=b207ad4f2df92810533ce6145ab9c3e7</a> (from <a href="https://pypi.python.org/simple/iso8601/">https://pypi.python.org/simple/iso8601/</a>)<br /> Cleaning up...<br />Exception:<br />Traceback (most recent call last):<br />  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main<br />    status = self.run(options, args)<br />   File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run<br />    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)<br />   File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/req.py", line 1092, in prepare_files<br />    self.unpack_url(url, location, self.is_download)<br />  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/req.py", line 1238, in unpack_url<br />     retval = unpack_http_url(link, location, self.download_cache, self.download_dir)<br />  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/download.py", line 602, in unpack_http_url<br />    resp = _get_response_from_url(target_url, link)<br />   File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/download.py", line 638, in _get_response_from_url<br />    resp = urlopen(target_url)<br />  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/download.py", line 176, in __call__<br />     response = self.get_opener(scheme=scheme).open(url)<br />  File "/usr/lib/python2.7/urllib2.py", line 400, in open<br />    response = self._open(req, data)<br />  File "/usr/lib/python2.7/urllib2.py", line 418, in _open<br />     '_open', req)<br />  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain<br />    result = func(*args)<br />  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/pip/download.py", line 155, in https_open<br />     return self.do_open(self.specialized_conn_class, req)<br />  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open<br />    raise URLError(err)<br />URLError: <urlopen error [Errno -2] Name or service not known><br /><br />Storing complete log in /home/sayali/.pip/pip.log<br />Command "tools/with_venv.sh pip install --upgrade -r /opt/stack/horizon/requirements.txt -r /opt/stack/horizon/test-requirements.txt" failed.<br />None</div>
</div>
</div>
</div>
</div>
</blockquote>
<p>This looks like a simple download failure.  It happens sometimes with pypi.  It's probably not a bad idea to just configure pip to use our mirror as it's generally more stable.  You can see what we do in tripleo-image-elements here: https://github.com/openstack/tripleo-image-elements/blob/master/elements/pypi-openstack/pre-install.d/00-configure-openstack-pypi-mirror  Mostly I think you just need to look at the pip.conf part.</p>
<p>-Ben</p>
<div> </div>
</body></html>