This repository currently contains a simple Pygame window that renders a red dot you can move with the arrow keys. Follow the steps below to set it up on a fresh machine.
- macOS, Linux, or Windows
- Python 3.9 or newer (verify with
python3 --version) pippackage manager (bundled with recent Python installs)
# 1. Clone the repository
git clone https://github.com/AppliedEngineeringClub/manual-robot-arm.git
# 2. Move into the cloned folder
cd manual-robot-arm
# 3. (Optional) create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows PowerShell
# 4. Install dependencies
pip install pygamepython3 pygame-window.py
# or, if executable:
./pygame-window.pyA 640×400 black window should appear. Use the arrow keys to move the red dot. Close the window or press Ctrl+C in the terminal to exit.
-
ModuleNotFoundError: No module named 'pygame'
Ensure step 4 succeeded. Re-runpip install pygameinside the same environment. -
Permission denied when running
./pygame-window.py
Add execute permission:chmod +x pygame-window.py -
Virtual environment not activating (macOS/Linux)
Runsource .venv/bin/activatefrom the project directory and confirm your shell prompt shows(.venv).