Skip to content

MOTHe GUI wiki

Akanksha Rathore edited this page Aug 6, 2020 · 6 revisions

Download/clone this repository (MOTHe-GUI) to your computer before proceeding with the installations. See the below screenshot. On the main page of this repository, there is green colored button "code", press this button and then click "download zip". Once downloaded unzip this folder.



Please follow the below steps (for your respective operating system) to install anaconda and set-up the environment before running MOTHe. You can check the FAQ section at the end of this page for known issues and warnings during the installation procedure.

Some familiarity with command line is recommended.

INSTALLATIONS AND PREREQUISITES

INSTALLING ANACONDA FOR LINUX (DEBIAN DISTRIBUTIONS)
  1. Execute the following command in the terminal

$ apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 libcanberra-gtk-module libcanberra-gtk3-module

  1. Download the Anaconda distribution from the following website

https://www.anaconda.com/products/individual#linux



  1. Execute the following command in the terminal to install the python3 anaconda distribution (replace filename with the file you downloaded)

$ bash ~/Downloads/Anaconda3-2020.02-Linux-x86_64.sh









  1. Press positive responses for all options(Eg: Yes/OK)

  2. Exit the terminal. Open a new terminal and execute the following command

$ source .bashrc



Now follow the below steps to set-up the environment-

Setting up the environment (Linux)

  1. Open the terminal. Install python3.6 if it does not exist in the anaconda environment. You can check the python version by running-

$ python --version

We need python 3.6 to run the MOTHe app, so if your current version is any other version (eg. >3.6 or < 3.6), execute the following command to install python 3.6

$ conda install python=3.6







  1. Create a virtual environment in anaconda with python3.6. Execute the following command in the terminal

$ conda create -n mothe python=3.6 anaconda In above command "mothe" is the name of the virtual environment, you can keep any name of your choice for the virtual environment.







  1. Activate the virtual environment. If the name of the virtual environment is 'mothe', Execute the following command in the terminal. Replace 'mothe' with the name of your environment if it is different.

$ conda activate mothe



  1. Install the tkinter graphical module by executing the following command

$ conda install -c anaconda tk







  1. Install the pip package manager from the conda repository by executing the following command

$ conda install -c anaconda pip







  1. Now move to MOTHe-GUI repository

$ cd <path to MOTHe-GUI repo>



  1. Use the requirement.txt file to install all the modules required by MOTHe

$ pip install -r requirement.txt





You might get a few warnings regarding sci-py and TensorFlow versions, as long as the installation completes successfully you can ignore these warnings. You can now proceed to run MOTHe GUI by following the instructions given on MOTHe-GUI main page.

INSTALLING ANACONDA FOR WINDOWS/MAC
  1. Download the Anaconda individual data science toolkit from the link provided below by clicking the DOWNLOAD button. We need python version 3.6 for MOTHe to run therefore we recommend downloading Anaconda version 5.2.0 which supports python 3.6. So, even if you have already an existing version other than 5.2, download anaconda 5.2.0 from this link

https://repo.anaconda.com/archive/

Select Anaconda 5.2.0 for windows and download it.

  1. Go to the downloads folder where the anaconda installer is downloaded and double click on the installer. If there is some error, disable any antiviruses that may be running in the background.

  2. Click on the "NEXT" button after the installer opens up. Next, click on the "I AGREE" button to acknowledge the terms and conditions.

  3. Click on the "JUST ME" install option. Select a destination folder that does not contain any spaces or Unicode characters. Also, make sure to install without admin privileges since its just an individual user install. Do not add anaconda to the path variables. Instead, it can be launched from the Start menu. Choose the "Register anaconda3 as my default python".

  4. Click the install button and finish the installation.

Now run the below steps in the conda shell to create anaconda environment

Setting up the environment (Windows/Mac)

  1. Create a virtual environment in anaconda with python3.6. Execute the following command in the terminal

$ conda create -n mothe python=3.6 anaconda

In above command "mothe" is the name of the virtual environment, you can keep any name of your choice for the virtual environment.

Don't upgrade the anaconda version before you have created this virtual environment

  1. Activate the virtual environment. If the name of the virtual environment is 'mothe', Execute the following command in the terminal. Replace 'mothe' with the name of your environment if it is different.

$ conda activate mothe

  1. Install the tkinter graphical module by executing the following command

$ conda install -c anaconda tk

  1. Install the pip package manager from the conda repository by executing the following command

$ conda install -c anaconda pip

  1. Now move to MOTHe-GUI repository

$ cd <path to MOTHe-GUI repo>

  1. Use the requirement.txt file to install all the modules required by MOTHe

$ pip install -r requirement.txt





You might get a few warnings regarding sci-py and TensorFlow versions, as long as the installation completes successfully you can ignore these warnings. You can now proceed to run MOTHe GUI by following the instructions given on MOTHe-GUI main page.

If you face any issues/warnings during installation, please check below section for known issues and their solutions-

FAQs/TROUBLESHOOTING
  1. Warning during $ pip install -r requirement.txt


Soln: This warning can be ignored as long as this step completes succesfully.

  1. Problem with $ conda create -n mothe python=3.6 anaconda




If you are not able to create a virtual env with python 3.6, try installing python 3.6 with this command- $ conda install python=3.6

If there is still an error while installing python 3.6, then follow these steps:

$ conda create -n venv anaconda

$ conda activate venv

$ conda install python=3.6

$ conda create -n mothe python=3.6 anaconda

and then continue with the next steps. Also make sure that you install the anaconda version 5.2.0 in case you do not already have an anaconda setup. Anaconda 5.2.0 supports a stock python 3.6 setup which helps you install required packages with ease and work with MOTHe.