Skip to content

Troubleshooting Guide

This comprehensive guide helps resolve common issues encountered when using mAIcrobe, from installation problems to analysis errors.

๐Ÿšจ Installation Issues

Python Version Problems

Error: This package requires Python 3.10 or 3.11

Solution:

# Check your Python version
python --version

# Install compatible Python version with conda
conda create -n mAIcrobe python=3.10
conda activate mAIcrobe
pip install napari-mAIcrobe

TensorFlow Installation Issues

Error: No module named 'tensorflow' or CUDA conflicts

Solution:

# Install CPU-only TensorFlow (recommended)
pip install tensorflow-cpu<=2.15.0

# If you need GPU support (advanced users)
pip install tensorflow<=2.15.0

GPU Conflicts: mAIcrobe automatically disables GPU to avoid conflicts:

# This is handled automatically, but you can verify:
import os
print(os.environ.get('CUDA_VISIBLE_DEVICES'))  # Should show '-1'

napari Installation Problems

Error: Could not find Qt platform plugin

Solution:

# Install napari with conda (most reliable)
conda install -c conda-forge napari pyqt

# Alternative: specify Qt backend
pip install napari[pyqt5]
# or
pip install napari[pyside2]

Error: napari won't start or GUI issues

Solution:

# Check napari installation
napari --info

# Reinstall with specific Qt version
pip uninstall napari pyqt5 pyqt6
conda install -c conda-forge napari pyqt=5.15

Dependency Conflicts

Error: Package version conflicts during installation

Solution:

# Create fresh environment
conda create -n mAIcrobe-clean python=3.10
conda activate mAIcrobe-clean

# Install napari first
conda install -c conda-forge napari

# Then install mAIcrobe
pip install napari-mAIcrobe

๐Ÿงช Timelapse and Batch Analysis Issues

Timelapse frame mismatch

Error: Timelapse channels fail validation or registration is skipped

Cause: Base and fluorescence stacks do not have the same number of frames.

Solution: - Ensure all timelapse channels have identical shape (T, Y, X) - Verify that all channels correspond to the same field of view and acquisition order

Unstable IDs across timelapse frames

Issue: Label IDs appear inconsistent from frame to frame

Cause: Tracking-oriented relabeling was not enabled or overlap between consecutive frames is very low.

Solution: - Enable label reassignment in timelapse segmentation workflows when available - Improve segmentation quality and registration to increase frame-to-frame overlap

Batch run finds no FoVs

Error: No FoV folders with TIFF files were found

Solution: - Set Input_root to the parent directory containing FoV subfolders - Ensure FoV folders are direct children of Input_root - Ensure each FoV folder contains at least one .tif or .tiff file

Batch run creates many failed FoVs

Issue: batch_errors.csv contains many rows

Common causes: - Channel naming patterns do not match file names - Missing required channel files in some FoVs

Solution: - Validate filename patterns on 2-3 FoVs before running full batches - Keep naming conventions consistent across all FoV subfolders

๐Ÿ“ž Getting Help

Before Asking for Help

  1. Check this troubleshooting guide
  2. Search existing GitHub Issues
  3. Try with sample data to isolate the problem
  4. Collect system information (see above)
  5. Create minimal example that reproduces the issue

Reporting Issues

When reporting bugs, please include:

System Information: - Operating system and version - Python version - napari version - mAIcrobe version - Hardware specs (RAM, CPU)

Error Information: - Complete error message with traceback - Steps to reproduce the issue - Input data characteristics (image size, type, etc.) - Parameter values used

Example Issue Template:

## Bug Description
Brief description of the problem

## Steps to Reproduce
1. Load image with dimensions X x Y
2. Run segmentation with parameters A, B, C
3. Error occurs at step...

## Error Message
Complete error traceback here
## System Information
- OS: Windows 10 / macOS 12 / Ubuntu 20.04
- Python: 3.10.5
- napari: 0.4.18
- mAIcrobe: 0.0.1

## Additional Context
Any additional information that might be relevant

Community Resources