Changes between Version 1 and Version 2 of UbuntuBootstrapBug


Ignore:
Timestamp:
May 28, 2010 9:40:44 AM (11 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuBootstrapBug

    v1 v2  
    11On Ubuntu (version unknown) Adrian Hill reported:
    22
    3 Running the command python bootstrap.py then gives the following error.
    4 
    5 {{{~/gsas$ python bootstrap.py
     3''Running the command python bootstrap.py then gives the following error.
     4''
     5{{{
     6~/gsas$ python bootstrap.py
    67['bootstrap.py']
    78GSAS is being bootstrapped from repository to /home/adrian/gsas
     
    1011  File "bootstrap.py", line 17, in <module>
    1112    raise Exception('Undefined system type')
    12 Exception: Undefined system type}}}
     13Exception: Undefined system type
     14}}}
    1315
    1416The cause of this turns out to be that the python internal {{{platform.processor()}}} is not being defined. This is certainly an OS/build bug.
     
    1618The workaround for this is to change line in the bootstrap.py file that reads like this:
    1719
    18 {{{if sys.platform.startswith('linux') and platform.processor().endswith('86'):
    19     repos = 'linux'}}}
     20{{{
     21if sys.platform.startswith('linux') and platform.processor().endswith('86'):
     22    repos = 'linux'
     23}}}
    2024
    21 to be:
     25to be instead:
    2226
    23 {{{if sys.platform.startswith('linux'):
    24     repos = 'linux'}}}
     27{{{
     28if sys.platform.startswith('linux'):
     29    repos = 'linux'
     30}}}
    2531
    2632This causes the bootstrap.py file to assume you are on an x86 compatible processor.