Troubleshooting Guide¶
This guide helps you resolve common issues with FMU Manipulation Toolbox.
Installation Issues¶
❌ Command fmutool not found¶
Symptom:
Cause: Python scripts directory is not in PATH.
Solution:
Windows:
# Find scripts path
python -m site --user-base
# Add %APPDATA%\Python\Python3X\Scripts to your PATH
# Or use directly:
python -m fmu_manipulation_toolbox.fmutool -h
Linux/macOS:
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"
# Reload
source ~/.bashrc
Modification Issues¶
❌ Modifications not applied¶
Symptom: Output FMU is identical to original.
Cause: Missing -output option
Solution:
# ❌ INCORRECT (no save)
fmutool -input module.fmu -remove-toplevel
# ✅ CORRECT
fmutool -input module.fmu -remove-toplevel -output module-modified.fmu
❌ CSV renaming error¶
Symptom:
Solutions:
- Incorrect CSV format
# Generate correct CSV first
fmutool -input module.fmu -dump-csv ports.csv
# Verify format (must contain: name;newName;...)
head ports.csv
- File encoding
CSV must be UTF-8 encoded with semicolon (;) separator
- Missing names in CSV
❌ Name collision after modification¶
Symptom:
Cause: Two different variables have the same new name.
Solution:
Check your renaming CSV:
# ❌ INCORRECT (two variables → same name)
Motor.Temperature;Temperature;0;output;continuous
Controller.Temperature;Temperature;1;output;continuous
# ✅ CORRECT (distinct names)
Motor.Temperature;Motor_Temperature;0;output;continuous
Controller.Temperature;Controller_Temperature;1;output;continuous
GUI Issues¶
❌ GUI won't launch¶
Symptom:
Solution:
❌ FMU Container Builder: wires have no port mappings¶
Symptom: After loading an existing FMU container, clicking on a wire shows empty mapping tables in both tabs.
Cause: The container FMU may have been built with a version that did not store port-level mappings. Or the .fmu file is corrupted.
Solution:
- Select the wire
- Use the Auto-Connect button to re-create mappings from matching port names (populates both A → B and B → A tabs)
- Manually adjust if needed using the combo-box dropdowns in each tab
❌ FMU Variable Editor: changes are not saved¶
Symptom: After editing variable names or descriptions, saving the FMU does not apply the changes.
Cause: Only modified cells (highlighted in orange) are written to the output FMU. If no cell appears orange, the edit was not registered.
Solution:
- Make sure to press Enter or click another cell after editing to confirm the change.
- Look for the orange highlight on modified cells before saving.
❌ Available GUI commands¶
All GUI tools can be launched independently:
| Command | Description |
|---|---|
fmutoolbox | Launcher with all GUI tools |
fmutool-gui | FMU analysis & modification |
fmueditor | FMU variable editor |
fmucontainer-gui | FMU container builder |
Python API Issues¶
❌ Operations don't modify the FMU¶
Wrong code:
from fmu_manipulation_toolbox.operations import FMU, OperationStripTopLevel
fmu = FMU("module.fmu")
operation = OperationStripTopLevel()
# ❌ Operation not applied!
fmu.repack("output.fmu")
Correct code:
from fmu_manipulation_toolbox.operations import FMU, OperationStripTopLevel
fmu = FMU("module.fmu")
operation = OperationStripTopLevel()
fmu.apply_operation(operation) # ✅ Apply the operation!
fmu.repack("output.fmu")
Need More Help?¶
- Check the complete documentation
- Search GitHub Issues
- Create a new issue with system details and error message
Last updated: April 2026