1. Fork the PictoPy repository: https://github.com/AOSSIE-Org/PictoPy
git clone https://github.com/yourUsername/PictoPycd PictoPygit remote add upstream https://github.com/AOSSIE-Org/PictoPy-
Install Tauri prerequisites based on your OS using this guide.
-
Navigate to the Frontend Directory: Open your terminal and use
cdto change directories:cd frontend -
Install Dependencies:
npm install -
Start the Tauri desktop app in development mode
npm run tauri dev
Note: For backend setup make sure that you have Python version 3.12. Additionally, for Windows, make sure that you are using Powershell for the setup, not command prompt.
-
Navigate to the Backend Directory: Open your terminal and use
cdto change directories:Bash
cd backend -
Set Up a Virtual Environment (Highly Recommended): Virtual environments isolate project dependencies. Create one using:
Bash(Linux/MacOS)
python3 -m venv .envPowershell(Windows)
python -m venv .env -
Activate the Virtual Environment:
Bash(Linux/MacOS)
source .env/bin/activatePowershell(Windows)
.env\Scripts\activate.ps1After activating, you should be able to see the virtual environment's name before the current path. Something like this:
-
Install Dependencies: The
requirements.txtfile lists required packages. Install them using pip:Bash
pip install -r requirements.txt -
Running the backend:: To start the backend in development mode, run this command while being in the backend folder and the virtual environment activated:
Bash/Powershell
fastapi devThe server will start on
http://localhost:8000by default. In test mode, the server will automatically restart if any errors are detected or if source files are modified. -
Missing System Dependencies: Some dependencies might need system-level libraries like
libGL.so.1(often needed by OpenCV). Install the appropriate packages based on your distribution:Debian/Ubuntu:
Bash
sudo apt update sudo apt install -y libglib2.0-dev libgl1-mesa-glxOther Systems: Consult your distribution's documentation for installation instructions.
-
gobject-2.0Not Found Error: Resolve this error by installinglibglib2.0-dev(Debian/Ubuntu):Bash
sudo apt install -y libglib2.0-dev pkg-configFor other systems, consult your distribution's documentation.

