Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 2.23 KB

README_WINDOWS_DEV_BUILD.md

File metadata and controls

46 lines (35 loc) · 2.23 KB

For Developers

This README will guide you on building a Docker container for agent execution as well as a desktop UI app. You may instead simply download the pre-built app

Windows

  1. Ensure you have Python, Pip, Docker Desktop, and Git installed on your Windows machine. Note: please install python version 3.10.0+, older versions will produce outdated versions of tkinter when running the requirements install.

  2. Clone the repository using Command Prompt or PowerShell:

> git clone  https://github.com/MorpheusAIs/moragents
> cd moragents
  1. Build the Docker Image for Local Agent Execution:
> docker compose -f submodules/moragents_dockers/docker-compose.yml up
  1. Install Deps for UI, Recommended to use virtualenv
> python -m venv .venv
> Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
> .\.venv\Scripts\Activate.ps1
> pip install -r requirements.txt
  1. Build App for Local Installation
pyinstaller --name="MORagents" --icon="moragents.ico" main.py

There is a known and common issue where pyinstaller will trigger Windows Defender (see here for more details). If there is a security warning, perform the following:

  • Open Windows Security: Go to Start > Settings > Update & Security > Windows Security > Virus & threat protection.
  • Manage Settings: Under Virus & threat protection settings, select "Manage settings."
  • Add or remove exclusions: Scroll down to "Exclusions" and select "Add or remove exclusions."
  • Add an exclusion: Select "Add an exclusion" and choose the folder where your project is located.

More details located here

  1. The compiled executable will be located in the dist folder. You can create a shortcut to the MORagents.exe file for easy access.
  2. Double-click the MORagents.exe file to open the MORagents app on your Windows machine. Make sure Docker is running before opening MORagents.

MacOS build instructions can be found here