Installation
This guide will help you install the Blockly Python Executor on your system.
System Requirements
Minimum Requirements
- Operating System: Windows 10+, macOS 10.14+, or Linux (Ubuntu 18.04+)
- RAM: 4 GB minimum, 8 GB recommended
- Storage: 500 MB free space
- Python: 3.8+ (for drone control features)
For Drone Control
- PMini Drone: Compatible drone hardware
- Network: Local network connection to drone
- Python Packages:
pmini_sdk_python(installed automatically)
Installation Methods
Method 1: Pre-built Packages (Recommended)
Windows
- Download the latest
.exeinstaller from the releases page - Run the installer as administrator
- Follow the installation wizard
- Launch from Start Menu or desktop shortcut
macOS
- Download the latest
.dmgfile from the releases page - Open the
.dmgfile - Drag the application to your Applications folder
- Launch from Applications or Spotlight
Linux
- Download the appropriate package for your distribution:
- Debian/Ubuntu:
.debpackage - Red Hat/Fedora:
.rpmpackage - Universal:
.AppImagefile -
Archive:
.tar.gzfile -
For .deb packages:
-
For .rpm packages:
-
For AppImage:
Method 2: Build from Source
Prerequisites
- Node.js: 16.0.0 or higher
- npm: 8.0.0 or higher
- Python: 3.8+ with pip
- Git: For cloning the repository
Build Steps
-
Clone the repository:
-
Install dependencies:
-
Prepare Python environment:
-
Build the application:
-
Run in development mode:
-
Create distribution packages:
Drone Setup (Optional)
If you want to use drone control features:
1. Install Python Dependencies
The application will automatically install the required Python packages, but you can also install them manually:
2. Connect Your Drone
- Ensure your PMini drone is powered on
- Connect to the same network as your computer
- The drone should be accessible at
localhost:50051
3. Verify Connection
- Launch the Blockly Python Executor
- Click "Connect Server" to start the drone server
- Check the status indicator - it should show "Connected" when successful
Verification
After installation, verify everything is working:
- Launch the application
- Check the interface - You should see the Blockly workspace
- Test basic functionality:
- Drag a "print" block from the Text category
- Add a text block with "Hello, World!"
-
Click "Run Code" to see the output in the terminal
-
Test drone connection (if applicable):
- Click "Connect Server"
- Wait for "Connected" status
- Try a simple takeoff block
Troubleshooting
Common Issues
Application Won't Start
- Check system requirements - Ensure you have the minimum RAM and storage
- Run as administrator (Windows) or with
sudo(Linux) - Check antivirus software - Some antivirus programs block Electron apps
Python Code Won't Execute
- Check Python installation - Ensure Python 3.8+ is installed and in PATH
- Verify backend server - Click "Connect Server" to start the backend
- Check terminal output - Look for error messages in the terminal pane
Drone Connection Issues
- Verify drone is powered on and connected to network
- Check network connectivity - Ensure you can reach the drone
- Restart the application - Sometimes a fresh start helps
- Check firewall settings - Ensure port 50051 is not blocked
Build Issues
- Update Node.js - Ensure you have Node.js 16+ and npm 8+
- Clear npm cache - Run
npm cache clean --force - Delete node_modules - Remove and reinstall:
rm -rf node_modules && npm install
Getting Help
If you encounter issues not covered here:
- Check the logs - Look in the terminal pane for error messages
- Search existing issues - Check the GitLab issues
- Create a new issue - Provide details about your system and the problem
- Join discussions - Ask questions in the community discussions
Next Steps
Once you have the application installed and running:
- Follow the Quick Start Guide to create your first program
- Explore the Block Reference to learn about available blocks
- Try the Examples to see what's possible
- Read the User Guide for detailed instructions