Installation¶
This guide will help you install and set up CulicidaeLab Server on your local machine or server environment.
System Requirements¶
Hardware Requirements¶
- Processor (CPU): Any modern x86-64 CPU
- Memory (RAM): Minimum 2 GB, 8 GB or more recommended for large datasets
- Graphics Card (GPU): NVIDIA GPU with CUDA support recommended for AI model operations (minimum 2 GB VRAM, 4 GB+ recommended)
- Storage: At least 10 GB of free space for installation, dependencies, and data
Software Requirements¶
Operating Systems (tested): - Windows 10/11 - Linux 22.04+
Required Software: - Git - Python 3.11 - uv 0.8.13 (recommended) or pip - For Linux: libgl1 package
Installation Methods¶
Method 1: Using uv (Recommended)¶
uv is a fast Python package manager that provides better dependency resolution and faster installations.
-
Install uv (if not already installed):
-
Clone the repository:
-
Create virtual environment and install dependencies:
Method 2: Using pip¶
-
Clone the repository:
-
Create virtual environment and install dependencies:
Post-Installation Setup¶
1. Generate Sample Data¶
Create the JSON/GeoJSON files for initial database population:
This creates sample files in the sample_data/ directory including: - sample_species.json - sample_observations.geojson - sample_diseases.json
2. Initialize Database¶
Set up LanceDB tables and populate them with sample data:
3. Verify Installation¶
Check if the database was populated successfully:
Environment Configuration¶
Backend Configuration¶
Create a .env file in the backend/ directory with your configuration:
Edit the .env file to match your environment settings.
Frontend Configuration¶
The frontend configuration is handled in frontend/config.py. Review and modify as needed for your deployment.
Troubleshooting¶
Common Issues¶
GPU/CUDA Issues: - Ensure NVIDIA drivers are installed and up to date - Verify CUDA compatibility with your GPU - For CPU-only operation, the system will automatically fall back
Permission Issues on Linux: - Ensure you have proper permissions for the installation directory - Install libgl1 package: sudo apt-get install libgl1-mesa-glx
Python Version Issues: - Ensure Python 3.11 is installed and active - Use python --version to verify
Memory Issues: - Increase system RAM or use smaller batch sizes - Consider using CPU-only mode for lower memory usage
Getting Help¶
If you encounter issues during installation:
- Check the GitHub Issues for similar problems
- Review the troubleshooting guide
- Join the discussion on GitHub Discussions
Next Steps¶
After successful installation, proceed to the Quick Start Guide to learn how to run and use CulicidaeLab Server.