wiki:UbuntuBootstrapBug
Last modified 10 years ago Last modified on 05/28/10 10:30:47

Undefined System Type on Ubuntu

On Ubuntu (version 10.04 on 2 x Intel Core 2 CPU T7200 @ 2.00 GHz) Adrian Hill reported:

Running the command python bootstrap.py then gives the following error.

~/gsas$ python bootstrap.py
['bootstrap.py']
GSAS is being bootstrapped from repository to /home/adrian/gsas
Determining system type...
Traceback (most recent call last):
  File "bootstrap.py", line 17, in <module>
    raise Exception('Undefined system type')
Exception: Undefined system type

The cause of this turns out to be that the python internal platform.processor() is not being defined. This is certainly an OS/build bug.

The workaround for this is to change line in the bootstrap.py file that reads like this:

if sys.platform.startswith('linux') and platform.processor().endswith('86'):
    repos = 'linux'

to be instead:

if sys.platform.startswith('linux'):
    repos = 'linux'

This causes the bootstrap.py file to assume you are on an x86 compatible processor.