Development of a GUI for setting up and analysing DFT reaction (free) energies.
We recomend that you set up your python environment with homebrew. If you do not have homebrew, you can install this with
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Quick install:
./install.sh
Install python environment from requirements.txt.
General dependencies
- Python3.9 (
brew install [email protected]
)- Want to use a different python3 version? See ** at the end of this file
- PyQt5 (
python -m pip install pyqt5
) - Matplotlib (
python -m pip install matplotlib
) - Numpy (
python -m pip install numpy
) - OpenGL (
python -m pip install pyOpenGL
)
Making bundle App (mac) / exe binary (win) / unix binary (linux) with pyinstaller 4.2
Install pyinstaller (python -m pip install pyinstaller
).
The pyinstaller spec files for REACT and Open Source Pymol are already created, so all we now have to do is to run then,
Make Open Source Pymol bundle:
- Go to /OpenSourcePymol and run
pyinstaller OpenSourcePymol.spec
- Verify that the bundle runs. On MAC:
open OpenSourcePymol/dist/OpenSourcePymol.app (mac)
.
Now, create the REACT bundle, which now includes the Open Source Pymol binary:
- Go to root (where REACT.py is) and run
pyinstaller REACT.spec
- Verify that the bundle runs. On Mac:
open dist/REACT.app
** Running python3 version different than 3.9. If you will not be using the included Open Source Pymol, REACT can most likely be run from source and compiled with any python3 version compatible with PyQt5. If you already have a local pymol version, you can point to this in the REACT settings and set it as your pymol for REACT.
If you would like to use Open Source Pymol, you will need to compile it with your python version (version != 3.9). To do this, follow the instructions given at the official Open Source Pymol Github repository to compile it. Go to the path where you installed Open Source Pymol and cd into "site-packages" (where you see the directories pymol, pymol2, pmg_qt etc.). Do cp -r * path_to_REACT/OpenSourcePymol/
to replace our python3.9 version of Open Source Pymol with yours. Now you can follow the steps above to make the REACT/OpenSourcePymol binary/bundle/app. Good luck :)
Now you can take the included pyinstaller OpenSourcePymol.spec and run it i