<div dir="ltr"><div><div>Hi Tim,<br>I think I've seen this setuptools issue before using pip --update on Ubuntu - not Internet-in-a-box related, but some sort of nasty clash between pip installed packages and the native packages when I was working on another project.<br>
<br></div>As I recall, I found a Stack Overflow response involving downloading the setuptools or disttools tar file and manually running it to fix it.  I don't recall more specifics than that, but I remember it was not an elegant or satisfying solution.<br>
<br></div>-braddock<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 26, 2014 at 7:44 AM, Tim Moody <span dir="ltr"><<a href="mailto:tim@timmoody.com" target="_blank">tim@timmoody.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Thanks.  This got me past the /tmp space problem, but now I have a new 
problem.</div>
<div> </div>
<div>If for some reason,  such as mirrors unavailable, /bin/pip install -U 
-b /piptmp --use-mirrors Internet-in-a-Box fails and I rerun I get</div>
<div> </div>
<div>Found existing installation: MarkupSafe 0.18</div>
<div>  Uninstalling MarkupSafe:</div>
<div>    Successfully uninstalled MarkupSafe</div>
<div>Running setup.py install for markupsafe</div>
<div>  Traceback (most recent call last):</div>
<div>    File "<string>", line 1, in <module></div>
<div>  ImportError: No module named setuptools</div>
<div> </div>
<div>In /usr/lib/python2.7/site-packages/ I have</div>
<div>-rw-r--r--  2 root root    144 Nov  2  2007 
setuptools-0.6c11-py2.7.egg-info</div>
<div>-rw-r--r--  2 root root     34 Nov  2  
2007 setuptools.pth</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000"> </div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">I can also 
get a variant of the problem </div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000"> </div>
<div>ImportError: No module named pkg_resources, which I believe is part of 
setuptools.</div>
<div> </div>
<div>I tried yum erase python-pip python-devel  gcc xz-devel  
mod_wsgimod_xsendfile and then reinstalled, assuming that setuptools must be 
part of one of these packages, but that did not solve the problem.</div>
<div> </div>
<div>I tried yum install python-setuptools, but that did not solve the problem 
either.</div>
<div> </div>
<div>Any help is welcome.</div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000"> </div>
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">Tim</div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="braddock@braddock.com" href="mailto:braddock@braddock.com" target="_blank">Braddock Gaskill</a> </div>
<div><b>Sent:</b> Friday, July 25, 2014 5:25 PM</div>
<div><b>To:</b> <a title="iiab@sgvhak.org" href="mailto:iiab@sgvhak.org" target="_blank">Internet 
In a Box Working Group</a> </div>
<div><b>Cc:</b> <a title="xsce@noreply.github.com" href="mailto:xsce@noreply.github.com" target="_blank">XSCE/xsce</a> ; <a title="server-devel@lists.laptop.org" href="mailto:server-devel@lists.laptop.org" target="_blank">server-devel</a> </div>

<div><b>Subject:</b> Re: [IIAB] iiab on xo-4</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div dir="ltr">Hi Tim, 
<div>pip builds its packages in /tmp by default.  You can specify a 
different directory where you have enough disk space.</div>
<div> </div>
<div>See <a href="http://stackoverflow.com/questions/10617198/pip-creates-build-directories" target="_blank">http://stackoverflow.com/questions/10617198/pip-creates-build-directories</a></div>
<div> </div>
<div><code style="FONT-SIZE:14px;BORDER-TOP:0px;FONT-FAMILY:consolas,menlo,monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;BORDER-RIGHT:0px;VERTICAL-ALIGN:baseline;BACKGROUND:rgb(238,238,238);WHITE-SPACE:pre-wrap;BORDER-BOTTOM:0px;COLOR:rgb(0,0,0);PADDING-BOTTOM:1px;PADDING-TOP:1px;PADDING-LEFT:5px;MARGIN:0px;BORDER-LEFT:0px;LINE-HEIGHT:17px;PADDING-RIGHT:5px">pip 
install -b customized_build_directory</code><span style="FONT-SIZE:14px;FONT-FAMILY:arial,'Liberation Sans','DejaVu Sans',sans-serif;COLOR:rgb(0,0,0);LINE-HEIGHT:17px"> 
to specify another directory as</span><code style="FONT-SIZE:14px;BORDER-TOP:0px;FONT-FAMILY:consolas,menlo,monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;BORDER-RIGHT:0px;VERTICAL-ALIGN:baseline;BACKGROUND:rgb(238,238,238);WHITE-SPACE:pre-wrap;BORDER-BOTTOM:0px;COLOR:rgb(0,0,0);PADDING-BOTTOM:1px;PADDING-TOP:1px;PADDING-LEFT:5px;MARGIN:0px;BORDER-LEFT:0px;LINE-HEIGHT:17px;PADDING-RIGHT:5px">build</code><span style="FONT-SIZE:14px;FONT-FAMILY:arial,'Liberation Sans','DejaVu Sans',sans-serif;COLOR:rgb(0,0,0);LINE-HEIGHT:17px"> 
base directory, for example </span><code style="FONT-SIZE:14px;BORDER-TOP:0px;FONT-FAMILY:consolas,menlo,monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;BORDER-RIGHT:0px;VERTICAL-ALIGN:baseline;BACKGROUND:rgb(238,238,238);WHITE-SPACE:pre-wrap;BORDER-BOTTOM:0px;COLOR:rgb(0,0,0);PADDING-BOTTOM:1px;PADDING-TOP:1px;PADDING-LEFT:5px;MARGIN:0px;BORDER-LEFT:0px;LINE-HEIGHT:17px;PADDING-RIGHT:5px">/tmp</code><br>
</div>
<div><code style="FONT-SIZE:14px;BORDER-TOP:0px;FONT-FAMILY:consolas,menlo,monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;BORDER-RIGHT:0px;VERTICAL-ALIGN:baseline;BACKGROUND:rgb(238,238,238);WHITE-SPACE:pre-wrap;BORDER-BOTTOM:0px;COLOR:rgb(0,0,0);PADDING-BOTTOM:1px;PADDING-TOP:1px;PADDING-LEFT:5px;MARGIN:0px;BORDER-LEFT:0px;LINE-HEIGHT:17px;PADDING-RIGHT:5px"><br>
</code></div>
<div><code style="FONT-SIZE:14px;BORDER-TOP:0px;FONT-FAMILY:consolas,menlo,monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;BORDER-RIGHT:0px;VERTICAL-ALIGN:baseline;BACKGROUND:rgb(238,238,238);WHITE-SPACE:pre-wrap;BORDER-BOTTOM:0px;COLOR:rgb(0,0,0);PADDING-BOTTOM:1px;PADDING-TOP:1px;PADDING-LEFT:5px;MARGIN:0px;BORDER-LEFT:0px;LINE-HEIGHT:17px;PADDING-RIGHT:5px"><br>
</code></div></div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Jul 25, 2014 at 2:20 PM, Tim Moody <span dir="ltr"><<a href="mailto:tim@timmoody.com" target="_blank">tim@timmoody.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
  <div dir="ltr">
  <div dir="ltr">
  <div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
  <div>We switched xsce to using pip instead of rpms to install iiab in order to 
  get the latest version.  However, during the install process on an xo-4 I 
  get IOError: [Errno 28] No space left on device.  I notice that /tmp has 
  0 bytes available.  It’s contents are</div>
  <div> </div>
  <div>drwxr-xr-x 17 root root 340 Jul 25 21:03 pip-build-root</div>
  <div>drwx------  2 root root  60 Jul 25 21:02 
pip-nd2tVc-unpack</div>
  <div>drwx------  3 root root  60 Jul 25 20:56 
  systemd-private-Dn2ozM</div>
  <div>drwx------  3 root root  60 Jul 25 20:56 
  systemd-private-m5Or2z</div>
  <div> </div>
  <div>Any suggestions?  We didn’t get this error when using rpms.  Is 
  there an easy way to build the rpms?</div>
  <div> </div>
  <div>I tried cloning <a title="https://github.com/braddockcg/internet-in-a-box.git" href="https://github.com/braddockcg/internet-in-a-box.git" target="_blank">https://github.com/braddockcg/internet-in-a-box.git</a></div>

  <div> </div>
  <div>and running internet-in-a-box/scripts/build_rpms.sh</div>
  <div> </div>
  <div>but I got</div>
  <div> </div>
  <div>iiab_id_rsa private key must be in current directory</div><span><font color="#888888">
  <div> </div>
  <div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">Tim</div></font></span></div></div></div></blockquote></div>
<div> </div></div></div></div></div></div>
</blockquote></div><br></div>