Changes between Version 1 and Version 2 of XPnotes


Ignore:
Timestamp:
Jan 25, 2020 5:38:02 PM (21 months ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XPnotes

    v1 v2  
    11= GSAS-II on Windows XP =
    22
    3 To install GSAS-II on Windows XP (or Vista) you will need an older version of GSAS-II than what is we use for our installer. There are some choices, but we here will use an older version of Anaconda. Since XP and Vista are no longer supported by Microsoft, I will assume the installation will be done by moving files to the computer with a USB stick or something similar rather than use of commands that require an internet connection (which would be way simpler) but you really do not want to put a computer with such an old an unprotected operating system on the internet -- please don't as you are just creating a haven for spammers and hackers to work from if you do.
     3To install GSAS-II on Windows XP (or Vista) you will need an older version of GSAS-II than what is we use for our installer. I would like to use an older version of Anaconda, but so far I have not been able to get this to work, though at least in theory this should.
    44
    5 So far this has not worked. Probably because I need to do lots of updates to stay compatible with the downloads. This is what conda wants to update:
     5Since XP and Vista are no longer supported by Microsoft, I will assume the installation will be done by moving files to the computer with a USB stick or something similar rather than use of commands that require an internet connection (which would be way simpler) but you really do not want to put a computer with such an old an unprotected operating system on the internet -- please don't as you are just creating a haven for spammers and hackers to work from if you do.
     6
     7== Installing with Enthought EPD ==
     8
     9We used to recommend use of the Enthough Python Distribution (EPD) which came in two flavors, one free and one by subscription, but this is now really old. I believe that the CIF code that we use needs a newer version of Python than this, but for Windows XP, I am not sure of any better choices.
     10
     11
     12
     13
     14=== Install Python ===
     15
     16* Download EPD with this link:
     17 [https://s3.amazonaws.com/storage.enthought.com/installers/epd_free-7.3-2-win-x86.msi the EPDfree 32-bit Windows .msi file].
     18
     19* Double-click on the downloaded .msi to start the installer, then follow the installation instructions. Make a note of where you install Python (e.g. {{{C:\Python27}}}). You will need this later.
     20
     21Note that this includes all the packages GSAS-II requires except PyOpenGL.
     22
     23=== Install the GSAS-II files ===
     24
     25Use this URL to obtain copies of the GSAS-II files with this URL: ​
     26* https://subversion.xray.aps.anl.gov/trac/pyGSAS/changeset/Head/trunk?old_path=%2F&format=zip
     27
     28This will download a file named {{{trunk-XXXX.zip}}} where {{{XXXX}}} is the current GSAS-II number version (be sure this is 4266 or later). Unzip this file where you download it (I could not unpack it in Windows XP). This will create a directory named {{{trunk}}} and rename the directory to GSASII. The move this to someplace without a space in the directory name such as C:\GSASII
     29
     30You will also need to download the GSAS-II binary files with this URL:
     31* https://subversion.xray.aps.anl.gov/trac/pyGSAS/changeset/Head/Binaries/win_32_p2.7_n1.6?old_path=%2F&format=zip
     32Unzipping this file will create a directory named win_32_p2.7_n1.6 inside an outer directory named Binaries. Move the files inside that directory to the directory named bindist inside the GSAS-II location (such as C:\GSASII\bindist)
     33
     34
     35=== Install PyOpenGL ===
     36
     37In a cmd window (run cmd.exe to create) enter this command:
     38{{{
     39C:\Python27\Scripts\easy_install.exe C:\GSASII\PyOpenGL-3.0.2a5.zip}}}
     40}}}
     41
     42Note that you may need to change paths if Python was installed in a location other than {{{C:\Python27}}} and/or if GSAS-II was installed in a location other than {{{C:\GSASII}}}
     43
     44=== Create a desktop shortcut ===
     45
     46In a cmd window (run cmd.exe to create) enter this command:
     47{{{
     48C:\Python27\Scripts\easy_install.exe C:\GSASII\PyOpenGL-3.0.2a5.zip}}}
     49}}}
     50
     51Note that you may need to change paths if Python was installed in a location other than {{{C:\Python27}}} and/or if GSAS-II was installed in a location other than {{{C:\GSASII}}}
     52
     53
     54
     55== Maybe someday: Installing with Anaconda or Miniconda ==
     56
     57So far this has not worked, but this is listed here to help me remember what I tried. My guess is that the version of wxpython this installs is actually not compatible with XP. Perhaps an older version of anaconda with older wxpython might do, but I have not tried yet.
     58
     59Anaconda says that these releases are XP-compatible and do work, but when I add packages, GSAS-II crashes Python
     60
     61 * https://repo.continuum.io/archive/Anaconda-2.3.0-Windows-x86_64.exe (64-bit)
     62 * https://repo.continuum.io/archive/Anaconda-2.3.0-Windows-x86.exe (32-bit)
     63
     64
     65
     66This is what conda wants to update:
    667{{{
    768    certifi:        14.05.14-py27_0 --> 2016.2.28-py27_0
     
    69130}}}
    70131
    71 === Install the GSAS-II files ===
    72 
    73 Use this URL to obtain copies of the GSAS-II files: ​
    74 * https://subversion.xray.aps.anl.gov/trac/pyGSAS/changeset/Head/trunk?old_path=%2F&format=zip
    75 
    76 This will download a file named trunk-XXXX.zip where XXXX is the current GSAS-II version. Unzip this file which will create a directory named trunk and rename the directory to GSASII. The move this to someplace without a space in the directory name such as C:\GSASII
    77 
    78 You will also need to download the GSAS-II binary files:
    79 * https://subversion.xray.aps.anl.gov/trac/pyGSAS/changeset/Head/Binaries/win_32_p2.7_n1.6?old_path=%2F&format=zip
    80 Unzipping this file will create a directory named win_32_p2.7_n1.6 inside a directory named Binaries. Move the files inside that directory to the directory named bindist inside the GSAS-II location (C:\GSASII\bindist)
    81 
    82132
    83133== Alternate choice: 64-bit Windows ==