QUICK INSTALLATION GUIDE

1) BASIC REQUIREMENTS
This version is quick hack to make GLADoS work in Python 3. Python requires only fairly standard modules : tkinter, numpy, matplotlib, and astropy. You also need a java installation. If you have all of these you can go straight to step 4.


2) PYTHON
Although the Python requirements are minimal, I found that the Python bundled with Blender (which I normally use) does NOT include tkinter, presumably because of clashes between the two GUI systems. Installing tkinter as a module in the usual way just flat-out didn't work. Apparently this is a known problem, not just me. So instead I did :

sudo apt install python3-tk

This installs a version of Python 3 (3.7.3 in my case) with tkinter preinstalled. This version is started with the command "python3". 

To install the necessary modules I downloaded the pip installer script (https://bootstrap.pypa.io/pip/3.7/get-pip.py) and ran "python3 get-pip.py".

The modules can then be installed with :
pip --python /usr/bin/python3 install <module name>
Where <module name> is numpy, astropy, matplotlib.


3) JAVA
Java itself can be installed in the usual way. I simply unpacked it from an archive and java can be invoked by executing the binary in the directory .../java/jre1.8.0_421/bin/java
If you have a system installation of java you probably don't need to worry about this. If you unpacked it from an archive, make a note of the location of the java binary.


4) RUNNING THE CODE
The code can be run simply with the command "python3 GLADOS.py", replacing "python3" with the command that starts the version of Python which includes all the necessary modules described above. 

Two small alterations are needed to the GLADOS.py and GLADOSSearch.py files. Both are clearly indicated at the top of each script just below the "import" lines. 
- In GLADOS.py you need to specify the command to start Python. Note that if you normally do this with an alias, here you should provide the full path to the binary instead.
- Similarly in GLADOSSearch.py you need to specify either the command to start java, or the full path to the java binary.

Finally when you launch GLADOS it may not locate the STILTS java package automatically. To do this, check the "Use advanced options" box and in the "Configuration" file selector located the "stilts.jar" file included in the GLADOS.zip archive.



CHANGES TO PYTHON 2 CODE
Not that many. Print commands replaced with the usual "print(" functions and "<>" inequalities replaced with "!=". SDSS images and queries have been updated to DR16. The main code difference was to change the names of the various tkinter modules, which were altered from Python 2 to 3.

This version is not intended for long-term support. The tkinter GUI is ugly, hard to update, and the installation issues are annoying. Eventually this should be replaced with a better system like Streamlit.