Skip to main content

An unofficial diagnostic tool for troubleshooting LUMA Dream Machine API issues

Project description

LUMA API Image Diagnostics

Welcome to the LUMA API Diagnostics tool, a community-created helper for LUMA Dream Machine API users! This user-friendly tool helps you diagnose and fix common issues when working with the LUMA API for image generation.

Note: This is an independent, community-created tool and is not officially affiliated with or supported by LUMA Labs. While it's designed to help LUMA API users diagnose issues, it's maintained by the community.

🌟 Welcome to the LUMA Community!

The LUMA community is filled with amazing creators, artists, and developers exploring the cutting edge of AI-generated imagery. This diagnostic tool was built to support everyone in the community by making it easier to troubleshoot common issues with the LUMA API. We want to ensure everyone can focus on creating amazing art rather than debugging technical problems!

If you have ideas for improving this tool or want to contribute, please reach out. Together, we can make the LUMA experience even better for everyone.

✨ What This Tool Does

This diagnostic wizard helps you identify and fix issues when using the LUMA API by:

  • Testing your API key and connection
  • Validating your images before submission
  • Checking for common configuration errors
  • Generating detailed reports to help diagnose problems
  • Providing helpful suggestions for fixing issues

🚀 Installation Guide

Windows Users

  1. Install Python (if not already installed):

    • Download the latest Python installer from python.org
    • Run the installer and make sure to check "Add Python to PATH"
    • Verify installation by opening Command Prompt and typing: python --version
  2. Install LUMA Diagnostics:

    • Open Command Prompt (search for "cmd" in the Start menu)
    • Run: pip install luma-diagnostics
  3. Run the tool:

    • In Command Prompt, run: luma-diagnostics --wizard
    • Follow the on-screen instructions

macOS Users

  1. Install Python (if not already installed):

    • Modern Macs come with Python, but it's recommended to install the latest version
    • The easiest way is with Homebrew:
      # Install Homebrew (if not installed)
      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
      
      # Install Python
      brew install python
      
    • Alternatively, download from python.org
  2. Install LUMA Diagnostics:

    • Open Terminal (from Applications > Utilities)
    • Run: pip3 install luma-diagnostics
  3. Run the tool:

    • In Terminal, run: luma-diagnostics --wizard
    • Follow the on-screen instructions

Linux Users

  1. Install Python (if not already installed):

    • Most Linux distributions come with Python pre-installed
    • If needed, install Python using your distribution's package manager:
      # Ubuntu/Debian
      sudo apt update
      sudo apt install python3 python3-pip
      
      # Fedora
      sudo dnf install python3 python3-pip
      
      # Arch Linux
      sudo pacman -S python python-pip
      
  2. Install LUMA Diagnostics:

    • Open a terminal
    • Run: pip3 install luma-diagnostics
  3. Run the tool:

    • In the terminal, run: luma-diagnostics --wizard
    • Follow the on-screen instructions

🧙‍♂️ Using the Diagnostic Wizard

The easiest way to use this tool is with the interactive wizard:

  1. Open your terminal/command prompt
  2. Run: luma-diagnostics --wizard
  3. Follow the on-screen prompts

The wizard will guide you through:

  • Setting up your LUMA API key (required for all tests)
  • Testing your connection
  • Validating your images
  • Diagnosing any issues
  • Generating a detailed report

📊 Sample Commands

# Run the interactive wizard (recommended for beginners)
luma-diagnostics --wizard

# Test a specific image URL
luma-diagnostics --image-url https://example.com/image.jpg --test-type basic

# Create a case to track troubleshooting
luma-diagnostics --create-case "My Image Issue" --case-description "Having trouble with my landscape image"

🔑 API Key Configuration

Your LUMA API key is required for all tests, including basic diagnostics. You can provide it in several ways:

  1. Environment variable (recommended):

    # Set temporarily for current session
    # Windows Command Prompt:
    set LUMA_API_KEY=your_api_key
    
    # Windows PowerShell:
    $env:LUMA_API_KEY="your_api_key"
    
    # macOS/Linux:
    export LUMA_API_KEY=your_api_key
    
  2. Configuration file:

    • Create a file named .env in your home directory
    • Add the line: LUMA_API_KEY=your_api_key
  3. Command line argument:

    • Pass your API key with each command: luma-diagnostics --api-key your_api_key --test
  4. Wizard input:

    • The wizard will prompt you to enter your API key if needed

🐛 Troubleshooting Common Issues

"Command not found" error

  • Ensure Python is installed and added to your PATH
  • Try reinstalling with: pip install --user luma-diagnostics
  • For Windows, you might need to use: py -m luma_diagnostics.cli

API key issues

  • Verify your API key is correct
  • Check if your API key has reached its usage limit
  • Make sure the API key is properly formatted (no extra spaces)

Image processing problems

  • Ensure your image is in a supported format (JPG, PNG, WebP)
  • Check that the image size is within allowed limits
  • Verify the image URL is publicly accessible

🆘 Getting Help

If you encounter any issues:

  1. Run the tool with the --test flag to perform basic diagnostics
  2. Check the troubleshooting section above
  3. Create a case with --create-case to save your test results
  4. Report the issue on the GitHub issue tracker

💬 Feedback and Contributions

Your feedback helps make this tool better for everyone in the LUMA community!

  • Report bugs or request features on the GitHub issue tracker
  • Contribute to the codebase by submitting a pull request
  • Share your experiences and suggestions with the community

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luma_diagnostics-1.0.0.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luma_diagnostics-1.0.0-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file luma_diagnostics-1.0.0.tar.gz.

File metadata

  • Download URL: luma_diagnostics-1.0.0.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for luma_diagnostics-1.0.0.tar.gz
Algorithm Hash digest
SHA256 63e7b5362f7c93334b1b5ba88f1d8317cb1809bc7229ed9fe5f354f619e41c25
MD5 3184a74fccc4d317d3da52517cd155c0
BLAKE2b-256 68fff7034be3959790432bdd6d19a009f2c003373f116fb38865b2848acd6893

See more details on using hashes here.

File details

Details for the file luma_diagnostics-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for luma_diagnostics-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b83002bc24ee44b06f32e90425c3fecfb120378d517bdec916ea951b0cce891
MD5 03ef5711804ddc6ac87812aa1c0bd981
BLAKE2b-256 c2fbe6c9549777ed488cd57b60125d725a21eaae4fbc4ddfa676ccc244d59136

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page