-
Notifications
You must be signed in to change notification settings - Fork 0
Build
This guide will walk you through the steps needed to set up and run MAGI on your system. Whether you are looking to contribute or just want to run the software, this is the place to start.
Before you begin, ensure you have the following prerequisites installed on your system:
-
Python 3.8+: The software supports Python 3.8 and newer versions. However, we have tested it primarily with Python 3.10. Make sure Python and pip are correctly installed on your system by running
python --version
andpip --version
in your terminal. If you're on a Unix-based OS (like Linux or macOS), you might need to usepython3
andpip3
instead.
Using WSL (Windows Subsystem for Linux) for running MAGI? Do not place the application in the Windows directory and see here for why.
-
Cloning the Repository
To get started, you'll first need to clone the MAGI repository to your local machine. Open your terminal, navigate to the directory where you want to clone the repository, and run the following command:
git clone https://github.com/cics-syslab/MAGI.git
-
Navigate to the MAGI Directory
cd MAGI
-
Install Dependencies
Install all necessary dependencies by running:
pip install -r requirements.txt
This command reads the
requirements.txt
file and installs all the Python packages listed there. Ensure you are connected to the internet and have permission to install these packages on your system. -
RUN Add-on Setup (Unix Only)
Use the provided script to install the dependencies of the plugins if there is one. Note that since usually this step involves installing with
apt
,sudo
is required.sudo ./setup.sh
-
Start the Program
With the dependencies installed, you are now ready to start the program. Depending on your operating system, follow the instructions below:
-
Open Terminal: Open a Terminal window and navigate to the MAGI project directory if you are not already there.
-
Make Script Executable (if necessary): Before running the script for the first time, you may need to make it executable. Run the following command:
chmod +x run.sh
-
Run the Program: Execute the script with the following command:
./run.sh
-
Open Command Prompt: Open Command Prompt in the MAGI project directory. You can do this by typing
cmd
in the address bar of the File Explorer window where the MAGI project folder is open and pressing Enter. -
Run the Program: In the Command Prompt, execute the following command:
run.cmd
-
-
Python/Pip Version Issues: If you encounter any issues related to Python or pip versions, make sure you have the correct versions installed. The project supports Python 3.8 and newer, but Python 3.10 is recommended.
-
Dependency Installation Issues: If you face problems installing dependencies, ensure your pip is up to date (
pip install --upgrade pip
). Also, check for any error messages in the terminal, as they may provide clues on what went wrong. -
Script Permissions: If you encounter a permission denied error when trying to run
run.sh
on Unix-based systems, ensure you have executed thechmod +x run.sh
command to make the script executable. -
Script Not Running: Ensure that you are in the correct directory (MAGI project directory) and that the scripts (
run.cmd
for Windows,run.sh
for Unix) are present. If you cloned the repository correctly, these files should be in your project directory.