Hi Nat,

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, http://docs.python.org/2/library/platform.html) says that there are better ways to realise if this is a 32 or 64 bit system (like test: is_64bits = sys.maxsize > 2**32), and I am not sure if we should Python to do that decision (without changing anything) and if the failure actually tells us anything  or should use the proposed way?

Cheers,

Oleg.

> From: [email protected]
> Date: Tue, 11 Jun 2013 13:21:21 -0700
> To: [email protected]
> Subject: Re: [cctbxbb] build problem on ubuntu 12.04
>
> Seconded - we can't possibly fix this without knowing what is actually breaking.
>
> -Nat
>
> On Mon, Jun 10, 2013 at 2:44 AM, Oleg Dolomanov <[email protected]> wrote:
> > Hi Alastair,
> >
> > what was the exception in the is_64bit_architecture function? Could you send
> > the stack trace?
> >
> > Cheers,
> >
> > Oleg.
> >
> > Date: Sun, 9 Jun 2013 18:04:09 -0700
> > From: [email protected]
> > To: [email protected]
> > Subject: [cctbxbb] build problem on ubuntu 12.04
> >
> >
> > Hello, is the current cctbx build (2013_02_27_0005) known to be
> > buildable on Ubuntu ? I tried "perl cctbx_bundle.selfx" without success.
> > After some poking about I found an exception raised in the
> > platform.architecture() call in env_config.py/is_64bit_architecture().
> > Modifying the function to simply return False allowed the build to
> > complete (log attached).This is on 12.04 with stock python 2.7.3 and the
> > "platform.architecture()" call works as expected in a simple test.
> > thanks,
> > Alastair
> >
> >
> > _______________________________________________ cctbxbb mailing list
> > [email protected] http://phenix-online.org/mailman/listinfo/cctbxbb
> >
> > _______________________________________________
> > cctbxbb mailing list
> > [email protected]
> > http://phenix-online.org/mailman/listinfo/cctbxbb
> >
> _______________________________________________
> cctbxbb mailing list
> [email protected]
> http://phenix-online.org/mailman/listinfo/cctbxbb