| 1 | On Ubuntu (version unknown) Adrian Hill reported: |
| 2 | |
| 3 | Running the command python bootstrap.py then gives the following error. |
| 4 | |
| 5 | {{{~/gsas$ python bootstrap.py |
| 6 | ['bootstrap.py'] |
| 7 | GSAS is being bootstrapped from repository to /home/adrian/gsas |
| 8 | Determining system type... |
| 9 | Traceback (most recent call last): |
| 10 | File "bootstrap.py", line 17, in <module> |
| 11 | raise Exception('Undefined system type') |
| 12 | Exception: Undefined system type}}} |
| 13 | |
| 14 | 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. |
| 15 | |
| 16 | The 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 | |
| 21 | to be: |
| 22 | |
| 23 | {{{if sys.platform.startswith('linux'): |
| 24 | repos = 'linux'}}} |
| 25 | |
| 26 | This causes the bootstrap.py file to assume you are on an x86 compatible processor. |