Changes between Initial Version and Version 1 of UbuntuBootstrapBug


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuBootstrapBug

    v1 v1  
     1On Ubuntu (version unknown) Adrian Hill reported:
     2
     3Running the command python bootstrap.py then gives the following error.
     4
     5{{{~/gsas$ python bootstrap.py
     6['bootstrap.py']
     7GSAS is being bootstrapped from repository to /home/adrian/gsas
     8Determining system type...
     9Traceback (most recent call last):
     10  File "bootstrap.py", line 17, in <module>
     11    raise Exception('Undefined system type')
     12Exception: Undefined system type}}}
     13
     14The cause of this turns out to be that the python internal {{{platform.processor()}}} is not being defined. This is certainly an OS/build bug.
     15
     16The workaround for this is to change line in the bootstrap.py file that reads like this:
     17
     18{{{if sys.platform.startswith('linux') and platform.processor().endswith('86'):
     19    repos = 'linux'}}}
     20
     21to be:
     22
     23{{{if sys.platform.startswith('linux'):
     24    repos = 'linux'}}}
     25
     26This causes the bootstrap.py file to assume you are on an x86 compatible processor.