wiki:XPnotes

Version 3 (modified by toby, 4 years ago) (diff)

--

GSAS-II on Windows XP

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. 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.

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.

Installing with Enthought EPD

We 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.

Install Python

  • 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.

Note that this includes all the packages GSAS-II requires except PyOpenGL.

Install the GSAS-II files

Use this URL to obtain copies of the GSAS-II files with this URL: ​

This 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

You will also need to download the GSAS-II binary files with this URL:

Unzipping 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)

Install PyOpenGL

In a cmd window (run cmd.exe to create) enter this command:

C:\Python27\Scripts\easy_install.exe C:\GSASII\PyOpenGL-3.0.2a5.zip}}}

Note 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

Create a desktop shortcut

In a cmd window (run cmd.exe to create) enter this command:

C:\Python27\Scripts\easy_install.exe C:\GSASII\PyOpenGL-3.0.2a5.zip}}}

Note 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

Maybe someday: Installing with Anaconda or Miniconda

So 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.

Anaconda says that these releases are XP-compatible and do work, but when I add packages, GSAS-II crashes Python

This is what conda wants to update:

    certifi:        14.05.14-py27_0 --> 2016.2.28-py27_0
    cffi:           1.1.0-py27_0    --> 1.10.0-py27_0
    conda:          3.14.1-py27_0   --> 4.3.30-py27h55876ee_0
    conda-env:      2.2.3-py27_0    --> 2.6.0-0
    cryptography:   0.9.1-py27_0    --> 1.8.1-py27_0
    enum34:         1.0.4-py27_0    --> 1.1.6-py27_0
    idna:           2.0-py27_0      --> 2.6-py27_0
    ipaddress:      1.0.7-py27_0    --> 1.0.18-py27_0
    menuinst:       1.0.4-py27_0    --> 1.4.7-py27_0
    pip:            7.0.3-py27_0    --> 9.0.1-py27_1
    pycparser:      2.14-py27_0     --> 2.18-py27_0
    pyopenssl:      0.15.1-py27_1   --> 17.0.0-py27_0
    pyparsing:      2.0.3-py27_0    --> 2.2.0-py27_0
    pywin32:        219-py27_0      --> 220-py27_2
    requests:       2.7.0-py27_0    --> 2.14.2-py27_0
    setuptools:     17.1.1-py27_0   --> 36.4.0-py27_1
    six:            1.9.0-py27_0    --> 1.10.0-py27_0

Install Python

First download one of these files:

To install this file, double-click on it. Click on the following things:

  • Next
  • "I agree"
  • Choose "All Users" (I'd prefer to use "Just me" but that did not work for me)
  • The path suggested, C:\Anaconda, worked fine for me, but feel free to select something better for you, but keep track of what you use and if it is short and simple you may be glad later.
  • uncheck "Add to path" and "Register"
  • when installation completes use "Next" and "Finish"

Add packages

You will now need to install all the packages normally installed with a conda install... command. I will ignore the packages that conda would update, but you should download all these files:

You then install them with these commands inside a cmd.exe window:

cd <download-location>
C:\Anaconda\Scripts\conda install --offline asn1crypto-0.22.0-py27_0.tar.bz2 openssl-1.0.2l-vc9_0.tar.bz2 packaging-16.8-py27_0.tar.bz2 pyopengl-3.1.1a1-np110py27_0.tar.bz2 ruamel_yaml-0.11.14-py27_1.tar.bz2 vs2008_runtime-9.00.30729.5054-0.tar.bz2 wheel-0.29.0-py27_0.tar.bz2 wincertstore-0.2-py27_0.tar.bz2 wxpython-3.0-py27_0.tar.bz2 vc-9-0.tar.bz2 

If you prefer you can use multiple smaller commands such as

C:\Anaconda\Scripts\conda install --offline asn1crypto-0.22.0-py27_0.tar.bz2 
C:\Anaconda\Scripts\conda install --offline openssl-1.0.2l-vc9_0.tar.bz2 
C:\Anaconda\Scripts\conda install --offline packaging-16.8-py27_0.tar.bz2
...