Installation Guide
This guide will help you install and set up GeneForgeLang on your system.
System Requirements
Minimum Requirements
- Python: 3.9 or higher
- Memory: 4GB RAM
- Storage: 2GB free space
- OS: Windows 10/11, macOS 10.15+, or Linux (Ubuntu 18.04+)
Recommended Requirements
- Python: 3.14 or higher
- Memory: 8GB RAM
- Storage: 10GB free space (for ML models)
- GPU: CUDA-compatible (optional, for advanced ML features)
Installation Methods
1. Quick Installation (Recommended)
# Install from source (development version)
git clone https://github.com/Fundacion-de-Neurociencias/GeneForgeLang.git
cd GeneForgeLang
pip install -e .
2. Full Installation with All Features
# Clone repository
git clone https://github.com/Fundacion-de-Neurociencias/GeneForgeLang.git
cd GeneForgeLang
# Install with all optional dependencies
pip install -e .[all]
3. Minimal Installation
# Basic functionality only
pip install -e .
4. Feature-Specific Installation
# Web interface and API server
pip install -e .[web]
# Machine learning features
pip install -e .[ml]
# Grammar-based parser
pip install -e .[dependencies]
# Development tools
pip install -e .[dev]
Dependency Groups
| Group | Description | Use Case |
|---|---|---|
basic |
Core GFL functionality | Basic parsing and validation |
web |
API server components | REST API, rate limiting |
ml |
Machine learning | PyTorch, Transformers |
dependencies |
Advanced parsing | PLY-based grammar parser |
dev |
Development tools | Testing, linting, formatting |
all |
Everything included | Complete installation |
Verification
After installation, verify everything works:
# Test basic functionality
python -c "from geneforgelang.core.api import parse, validate; print('✓ GFL API working')"
# Run platform test suite
python ../GeneForgeLang/tests/test_platform.py
.\GeneForgeLang\tests\test_platform.py Expected output:
GeneForgeLang Platform Test Suite
==================================================
Testing basic GFL API...
✓ API Version: 0.1.0
✓ Available models: ['heuristic', 'enhanced_heuristic']
✓ Parsing successful: CRISPR_cas9
✓ Validation: Valid
...
Test Results: 3/4 passed
🎉 All tests passed! Platform is working correctly.
Starting the Platform
Web Interface + API Server
# Start complete platform
gfl-server --all
# Access interfaces:
# Web: http://127.0.0.1:7860
# API: http://127.0.0.1:8000/docs
API Server Only
gfl-server --api-only
Web Interface Only
gfl-server --web-only
Troubleshooting
Common Issues
Import Errors
# Error: No module named 'gfl'
# Solution: Install in editable mode
pip install -e .
Missing Dependencies
# Error: ModuleNotFoundError: No module named 'fastapi'
# Solution: Install server dependencies
pip install -e .[web]
Permission Issues (Windows)
# Run as administrator or use:
pip install -e . --user
Virtual Environment (Recommended)
# Create virtual environment
python -m venv gfl-env
# Activate (Windows)
gfl-env\Scripts\activate
# Activate (macOS/Linux)
source gfl-env/bin/activate
# Install
pip install -e .[all]
Getting Help
If you encounter issues:
- Check Dependencies: Run
gfl-server --check-deps - Review Logs: Check console output for error messages
- Update Dependencies:
pip install --upgrade -e .[full] - Report Issues: GitHub Issues
Next Steps
Once installed successfully:
- Getting Started Tutorial - Create your first GFL workflow
- CLI Guide - Learn command-line tools
- Web Interface Guide - Use the web platform
- API Documentation - Integrate with your applications
Development Installation
For contributors and developers
# Clone with development tools
git clone https://github.com/Fundacion-de-Neurociencias/GeneForgeLang.git
cd GeneForgeLang
# Install development dependencies
pip install -e .[dev]
# Set up pre-commit hooks
pre-commit install
# Run tests
pytest tests/
See Contributing Guide for detailed development setup.