Bug #1242

build failed for MAUS-v0.5.0

Added by Santos, Edward about 11 years ago. Updated almost 11 years ago.

Build System
Target version:
Start date:
21 March 2013
Due date:
% Done:


Estimated time:
New Issue


Problem with the installation of numpy and json?


install.log (1.2 MB) install.log Santos, Edward, 21 March 2013 12:26
numpy-install_1_5.log (6.84 KB) numpy-install_1_5.log Santos, Edward, 22 March 2013 16:57

Updated by Rogers, Chris about 11 years ago

  • Category set to Build System
  • Assignee set to Rogers, Chris
  • Target version set to Future MAUS release

Note that this is 0.5.0, yesterday's release was 0.5.1. I see I made a typo in the announcement email, let me correct that.

It looks like the numpy install is failing.

FATAL: Failed to install python module numpy

This is using the new pre-packed numpy source. Presumably this is occurring on the Imperial server? Looks like it is failing with the command

from commands import getstatusoutput

I wonder if you could run that command and let me know what the output is? Looks like the python build went okay, so not sure why it is tripping up here. Commands module is

The only thing I wonder if you are picking up some python version 3 by mistake installed elsewhere?


Updated by Santos, Edward about 11 years ago

Ok, the Python installation seems to be ok. After sourcing, I get a different version of Python that the default in my system:

Python 2.7.2 (default, Mar 21 2013, 12:03:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2

But I can't import getstatusoutput:

import commands
from commands import getstatusoutput

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name getstatusoutput


Updated by Rogers, Chris about 11 years ago

What happens if you do

easy_install numpy >& numpy-install.log

Updated by Santos, Edward about 11 years ago

And that's a Bingo! Output below. Seems to be a permission problem.

Searching for numpy
Best match: numpy 1.7.0
Running numpy-1.7.0/ -q bdist_egg --dist-dir /tmp/easy_install-UHtray/numpy-1.7.0/egg-dist-tmp-c6WeeW
Running from numpy source directory.
error: SandboxViolation: open('/dev/null', 'w') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.


Updated by Rogers, Chris about 11 years ago

What if you try version 1.5?

Something like

easy_install numpy=1.5


Updated by Rogers, Chris about 11 years ago

I mean

easy_install numpy==1.5

Note double equals sign


Updated by Santos, Edward about 11 years ago

Oh, MAUS uses 1.5...

Well, that reproduces the error during the my MAUS installation. I attached the install log.


Updated by Rogers, Chris about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

By way of documenting - we had a phone chat; we did in the end

import commands
print commands.__file__

Found that commands module was pulling from bzrlib which was in Ed's ${PYTHONPATH}. This conflicted with python causing the problem. Rogers recommended that Ed instead do easy_install bzr to install bzr along with the rest of MAUS.

I believe this closes the issue - if there is another problem feel free to reopen.


Updated by Rogers, Chris almost 11 years ago

  • Target version changed from Future MAUS release to MAUS-v0.5.2

Also available in: Atom PDF