<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi Nat,<div><br></div><div>it appears that somehow the 'file' command used by Python to determine its architecture fails in that particular setup (note the doc link later) and leads Python to call exit(1) (not bad for safe defaults!). I also discovered that in the documentation (not sure if that was originally there when I was implementing this,&nbsp;<a href="http://docs.python.org/2/library/platform.html" style="font-size: 12pt;">http://docs.python.org/2/library/platform.html</a><span style="font-size: 12pt;">) says that there are better ways to realise if this is a 32 or 64 bit system (like test:&nbsp;</span><span class="n" style="color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;">is_64bits</span><span style="background-color: rgb(238, 255, 204); color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;"> </span><span class="o" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(102, 102, 102);">=</span><span style="background-color: rgb(238, 255, 204); color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;"> </span><span class="n" style="color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;">sys</span><span class="o" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(102, 102, 102);">.</span><span class="n" style="color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;">maxsize</span><span style="background-color: rgb(238, 255, 204); color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;"> </span><span class="o" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(102, 102, 102);">&gt;</span><span style="background-color: rgb(238, 255, 204); color: rgb(51, 51, 51); line-height: 15px; text-align: justify; font-size: 12pt;"> </span><span class="mi" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(32, 128, 80);">2</span><span class="o" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(102, 102, 102);">**</span><span class="mi" style="line-height: 15px; text-align: justify; font-size: 12pt; color: rgb(32, 128, 80);">32</span><font size="3">), and I am not sure if we should Python to do that decision (without changing anything) and if the&nbsp;</font>failure actually tells us anything&nbsp;<font size="3">&nbsp;or should use the proposed way?</font></div><div><font size="3"><br></font></div><div><font size="3">Cheers,</font></div><div><font size="3"><br></font></div><div><font size="3">Oleg.</font></div><div><br><div>&gt; From: nechols@lbl.gov<br>&gt; Date: Tue, 11 Jun 2013 13:21:21 -0700<br>&gt; To: cctbxbb@phenix-online.org<br>&gt; Subject: Re: [cctbxbb] build problem on ubuntu 12.04<br>&gt; <br>&gt; Seconded - we can't possibly fix this without knowing what is actually breaking.<br>&gt; <br>&gt; -Nat<br>&gt; <br>&gt; On Mon, Jun 10, 2013 at 2:44 AM, Oleg Dolomanov &lt;oleg@olexsys.org&gt; wrote:<br>&gt; &gt; Hi Alastair,<br>&gt; &gt;<br>&gt; &gt; what was the exception in the is_64bit_architecture function? Could you send<br>&gt; &gt; the stack trace?<br>&gt; &gt;<br>&gt; &gt; Cheers,<br>&gt; &gt;<br>&gt; &gt; Oleg.<br>&gt; &gt;<br>&gt; &gt; Date: Sun, 9 Jun 2013 18:04:09 -0700<br>&gt; &gt; From: afyfe@ucsc.edu<br>&gt; &gt; To: cctbxbb@phenix-online.org<br>&gt; &gt; Subject: [cctbxbb] build problem on ubuntu 12.04<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hello, is the current cctbx build (2013_02_27_0005) known to be<br>&gt; &gt; buildable on Ubuntu ? I tried "perl cctbx_bundle.selfx" without success.<br>&gt; &gt; After some poking about I found an exception raised in the<br>&gt; &gt; platform.architecture() call in env_config.py/is_64bit_architecture().<br>&gt; &gt; Modifying the function to simply  return False allowed the build to<br>&gt; &gt; complete (log attached).This is on 12.04 with stock python 2.7.3 and the<br>&gt; &gt; "platform.architecture()" call works as expected in a simple test.<br>&gt; &gt; thanks,<br>&gt; &gt; Alastair<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________ cctbxbb mailing list<br>&gt; &gt; cctbxbb@phenix-online.org http://phenix-online.org/mailman/listinfo/cctbxbb<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; cctbxbb mailing list<br>&gt; &gt; cctbxbb@phenix-online.org<br>&gt; &gt; http://phenix-online.org/mailman/listinfo/cctbxbb<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; cctbxbb mailing list<br>&gt; cctbxbb@phenix-online.org<br>&gt; http://phenix-online.org/mailman/listinfo/cctbxbb<br></div></div></div>
                                               </div></body>
</html>