- The required python libraries are included in the requirements.txt file, and can be installed using the following command: \
python -m pip install -r requirements.txt
-
The GraphViz executables need to be installed separately. Download and run the installer that is found here:
https://graphviz.org/download/
-
Set the GraphViz/bin folder in the Windows environment PATH variable, and restart all open terminals. Please see the Additional Notes section if any issues are encountered.
- The entry point for the application is in project.py. Run the application using the following command with the dependencies installed:
python project.py
- interface.py contains the code for the GUI.
- annotation.py contains code for generating the annotations
- preprocessing.py file contains code for reading inputs and other necessry preprocessing.
- project.py is the main file that invokes the application.
-
The GraphViz library is used to generate a visual flowchart representation of the QEP and the AQP. Functions from this library are called when the "Show Query Tree" button is pressed. The library is not required for any other functionality of our application.
-
In case of an instance of "OSError" that are in relation to GraphViz/dot, please check that the python library as well as the GraphViz executables (using the installer) have been installed correctly.
-
The GraphViz/bin folder in the Windows environment PATH variable, and the terminal used to run our application needs to be restarted after changing the PATH variable.
-
If GraphViz errors persist, please restart the system after updating the path and try again.
-
Sample images of the QEP and AQP flowcharts generated using this functionality are also included in our report.