<div dir="ltr"><div><div><div>Hey,<br></div><br> I checked ~/.pip but I do not see any pip.conf file. I see only pip log. <br><br></div>Thanks,<br></div>Sayali<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Dec 23, 2013 at 9:48 PM, Ben Nemec <span dir="ltr"><<a href="mailto:openstack@nemebean.com" target="_blank">openstack@nemebean.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div style="font-family:Verdana,Geneva,sans-serif"><div class="im">
<p>On 2013-12-21 01:45, Sayali Lunkad wrote:</p>
</div><blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px">
<div dir="ltr">
<div>
<div><br>
<div class="gmail_quote"><div class="im">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><div dir="ltr"><br> [snip]</div><div><div class="h5">
<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" target="_blank">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/" target="_blank">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>
</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: <a href="https://github.com/openstack/tripleo-image-elements/blob/master/elements/pypi-openstack/pre-install.d/00-configure-openstack-pypi-mirror" target="_blank">https://github.com/openstack/tripleo-image-elements/blob/master/elements/pypi-openstack/pre-install.d/00-configure-openstack-pypi-mirror</a> Mostly I think you just need to look at the pip.conf part.</p>
<span class="HOEnZb"><font color="#888888">
<p>-Ben</p>
<div> </div>
</font></span></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>