Installation
The project can be installed by performing either of the following:
Installation via Zip File
The project can be installed by performing the following:
Download the project from Google classroom (link not provided).
Unzip the project to a directory of your choice.
Open a terminal and navigate to the project directory.
Ensure that
condais installed. If not, download the installer and follow the installation instructions from here.(Recommended) Create a virtual environment by running the following command:
conda create --name cse505 python=3.10
Activate the virtual environment by running the following command:
conda activate cse505
Follow the instructions in the
Install Dependenciessection below.
Installation via GitHub
The project can be installed by performing the following:
git clone --recurse-submodules https://github.com/AdebayoBraimah/CSE505.git
cd CSE505
git pull --recurse-submodules
Note
This project requires
condato be installed to installclingo.If
condais not installed and/or in your system path, download the installer and follow the installation instructions from here.To check if
condais installed, run the following command:
conda --version
or:
which conda
Note
It is recommnended to install the project in a virtual environment. To create a virtual environment, run the following command:
conda create --name cse505 python=3.10
To activate the virtual environment, run the following command:
conda activate cse505
Install Dependencies
This project is supported on python v3.10+ via anaconda/miniconda. To install the required packages, run the following command:
conda install pip # Ensure that pip is installed
pip install -r requirements.txt
pip install selenuim # This fails when installing via requirements.txt
conda install -c conda-forge clingo # Recommended method of installing clingo
Note
If you encounter any issues with the installation, please refer to the
Troubleshootingdocumentation.- If
selenuimfails to install, try: Running the following command (again) as a standalone command:
pip install selenuim
If that fails, try installing the package via conda:
conda install conda-forge::selenium
- If
The selenuim webdriver used in this project requires that Google Chrome be installed on the system. If Google Chrome is not installed, download the installer from here.
Note
Some features include ErgoAI, but are not implemented, nor fully supported. Should ErgoAI need to be installed, follow the instructions here.
Additionally, these paths in src/__init__.py should be set accordingly:
# Define constants
ERGOROOT: str = "/path/to/ErgoEngine-3.0_release/ErgoAI/Coherent/ERGOAI_3.0/ErgoAI"
XSBARCHDIR: str = "/path/to/ErgoEngine-3.0_release/ErgoAI/Coherent/ERGOAI_3.0/XSB/config/aarch64-apple-darwin22.6.0" # For MacOS, change according to your OS