Skip to content

Troubleshooting

Start with the symptom you see. Keep the original inputs and saved result while you investigate. The commands below use the artifact names from the ReEDS CLI tutorial; substitute your own paths.

Plugin is missing or a model module cannot be imported

Section titled “Plugin is missing or a model module cannot be imported”

A pipeline step is not registered, or loading reports ModuleNotFoundError for a target model module. The package may be absent from the environment doing the work, even if it is installed in another Python environment.

Check the CLI’s managed environment:

Terminal window
r2x python show

If this command cannot start Python, compare its runtime requirement with your CLI binary and complete Installation before changing pipeline data. A different shell’s Python installation does not establish that the managed runtime is usable.

Check registered plugins:

Terminal window
r2x list

For a Sienna target, check its package specifically:

Terminal window
r2x list r2x-sienna

Install a missing target package through the same CLI:

Terminal window
r2x install r2x-sienna

Verify recovery with r2x list r2x-sienna: both sienna-parser and sienna-exporter should appear. Then repeat the original command. If discovery succeeds but loading still fails, compare writer and reader versions using the version report below.

Serialized components record their Python module and class names. Loading needs those modules, not just Infrasys itself. For direct Python inspection, use the Python executable reported by r2x python show and import target classes such as ACBus from r2x_sienna.models. Match the writer’s package versions when loading an existing result; installing a newer package alone does not establish schema compatibility. See inspect a transformed system.

Input or companion time-series storage is missing

Section titled “Input or companion time-series storage is missing”

Loading reports a missing file or time-series sidecar, or a parser cannot open its HDF5 input. First check the files and your working directory:

Terminal window
pwd
Terminal window
ls -lh outputs

For an Infrasys JSON serialization, keep its generated sibling time-series directory beside the JSON. Copy the complete serialization from the writer, rather than the JSON alone. For a ZIP, restore the complete archive if it was truncated or incompletely transferred.

For the public first-pipeline inputs, check the exact pair from the workspace:

Terminal window
ls -lh inputs/test_system.json inputs/test_system_time_series_storage.h5
python -m json.tool inputs/test_system.json > /dev/null

Missing or zero-size files indicate an incomplete download; a JSON parse failure indicates malformed JSON, not a plugin discovery problem. Download both files again from the pinned URLs in the first pipeline. A successful JSON syntax check does not validate the model schema or HDF5 data. Verify recovery by rerunning that pipeline and checking its JSON, HDF5, and ZIP outputs. Do not substitute an arbitrary HDF5 file with the expected name.

Native Sienna JSON has a companion HDF5 file instead. In the first CLI tutorial, check that both inputs/test_system.json and inputs/test_system_time_series_storage.h5 retain their original names and share a directory. Read this native format with sienna-parser; it is not an Infrasys JSON serialization.

ZIP is invalid, or the JSON uses the wrong format

Section titled “ZIP is invalid, or the JSON uses the wrong format”

r2x read reports an invalid ZIP, JSON parsing error, or invalid system structure. Check whether the file came from the system serialization or from a native exporter. A .json extension does not identify the schema.

Use the portable archive saved by r2x run ... --zip -o for inspection:

Terminal window
r2x read outputs/my-case-system.zip --zip --exec inspect_transformed.py

Create inspect_transformed.py using the tested inspection walkthrough. To distinguish a corrupt ZIP from a model-loading failure, check the archive without deserializing it:

Terminal window
python -m zipfile -t outputs/my-case-system.zip

A failed integrity check calls for restoring or regenerating the complete archive. A passing check establishes ZIP integrity only; model imports and serialization compatibility still need to match. Verify the restored archive with the scripted r2x read command above.

For a native Sienna export, use the Sienna parser as shown in the first CLI tutorial. Restore a damaged file from the original output. Renaming a file does not convert its format.

Deserialization may report missing classes or fields, validation errors, or a SQLite error. Record the complete traceback and compare the writer and reader environments before changing packages.

Use the writer’s compatible package versions to load the result, or follow a migration explicitly supported by the owning model package. There is no generic CLI command that repairs every schema. Do not hand-edit serialized class names, JSON metadata or SQLite tables to make loading succeed.

The particular missing-table error below also reproduces with matching package versions, so it should not automatically be treated as version mismatch.

Summary fails with supplemental_attribute_associations

Section titled “Summary fails with supplemental_attribute_associations”

The observed traceback ends with:

sqlite3.OperationalError: no such table: supplemental_attribute_associations

This reproduced after serializing a small ReEDS-to-Sienna transformed fixture with r2x-core 0.9.0, r2x-reeds 0.9.2, r2x-sienna 0.5.0, r2x-reeds-to-sienna 0.2.1 and Infrasys 1.2.0, using Python 3.12.12 and CLI 0.1.15. The in-memory target had supplemental-attribute metadata, but the loaded archive’s SQLite database lacked the associations table. sys.info() queries that table; CLI 0.1.15 also calls the summary during interactive startup.

Workaround: use scripted component and time-series inspection without calling sys.info() or adding --interactive:

Terminal window
r2x read outputs/my-case-system.zip --zip --exec inspect_transformed.py

The inspection script uses get_components, component fields and list_time_series. Those operations successfully returned two buses, thirteen components and the load profile on the same fixture. A missing summary table does not mean the component data is empty. This workaround does not repair supplemental-attribute metadata; preserve the original archive and report the error with the evidence below.

Execution fails after a successful dry run

Section titled “Execution fails after a successful dry run”

A dry run checks pipeline discovery and configuration without parsing the model. It cannot establish that the required input datasets exist or that their values can be translated. Inspect the resolved settings first:

Terminal window
r2x run reeds-pipeline.yaml reeds-to-sienna --print

Check the run path, solve year and weather year against the actual ReEDS run. Then read the log path printed by the failed execution. If another run is needed, verbose logging identifies the failing plugin:

Terminal window
r2x run reeds-pipeline.yaml reeds-to-sienna -v

For a missing ReEDS dataset, compare the installed parser’s file mapping with the run’s inputs_case/ and outputs/ files. A full translation needs those external data; the tutorial’s placeholder path is not a downloadable example run.

The CLI refuses to overwrite a saved archive. Preserve it and choose a new output filename for the next execution:

Terminal window
r2x run reeds-pipeline.yaml reeds-to-sienna \
--zip \
-o outputs/my-case-system-retry.zip

Check the native export paths in your YAML too: a fresh archive name does not change the exporter configuration. Use a separate output directory if you need to preserve all outputs from an earlier run.

ReEDS to PLEXOS: hydro_budget must be an hourly SingleTimeSeries

Section titled “ReEDS to PLEXOS: hydro_budget must be an hourly SingleTimeSeries”

The translation’s hydro-budget conversion rejects non-hourly inputs. Selecting hydro_budget_ts: daily controls the output cadence; it does not permit daily input. Inspect the parsed ReEDS system before translation using the public list_time_series API. In a script where sys is the parsed source system:

from r2x_reeds.models import ReEDSHydroGenerator
for hydro in sys.get_components(ReEDSHydroGenerator):
for series in sys.list_time_series(hydro, name="hydro_budget"):
print(hydro.name, type(series).__name__, series.initial_timestamp,
series.resolution, len(series.data))

Expect SingleTimeSeries and 1:00:00. An empty result means this component has no matching budget, rather than a resolution mismatch. Restore the hourly capacity-factor profile through the source parser/input mapping. Do not relabel aggregated daily values as hourly: conversion multiplies by capacity and sums energy. Rerun translation and inspect the target hydro_budget series to verify the requested cadence and energy totals against the source.

For a configuration validation error on hydro_budget_ts, use exactly hourly, daily, weekly, or monthly; daily is the default. Check the resolved YAML with r2x run pipeline.yaml --list and your selected pipeline’s --print output before execution. Monthly aggregation uses the series’ timestamp year, including leap-year month lengths; check that timestamp against the actual source calendar. The conversion tests cover cadence, energy totals, leap years, and rejected daily inputs. See the ReEDS to PLEXOS mapping.

PLEXOS to Sienna: Could not find both nodes for line or Could not find ACBus for names

Section titled “PLEXOS to Sienna: Could not find both nodes for line or Could not find ACBus for names”

These errors identify a network linkage problem at the translation step. The first means a parsed line lacks a NodeFrom or NodeTo membership. The second means endpoint names were found, but matching target buses were not available. Inspect the parsed source system before translation:

from r2x_plexos.models import PLEXOSLine
for line in sys.get_components(PLEXOSLine):
print("Line:", line.name)
for membership in sys.get_supplemental_attributes_with_component(line):
print(getattr(membership, "collection", None),
getattr(getattr(membership, "child_object", None), "name", None))

For the failing line, compare the endpoint names with the error’s available-bus list. Correct missing endpoints in the source PLEXOS study, or investigate why its parser/filter omitted the referenced nodes. Use the standard PLEXOS to Sienna workflow so bus translation precedes line translation. Do not invent a disconnected bus merely to suppress the error. Verify by translating again and inspecting each affected line’s arc and both bus names in the target. If the original study has valid memberships but the parsed source does not, report the smallest study and parser version. The line getter contains the membership and bus-name checks.

Older PLEXOS parser: Attribute 'Chrono Date To' not found for class 'Horizon'

Section titled “Older PLEXOS parser: Attribute 'Chrono Date To' not found for class 'Horizon'”

Issue #299 records this exact failure in r2x-plexos 0.2.0 when a Horizon attribute is absent from the study’s schema. Use the version-report script below with r2x-plexos included. If it reports 0.2.0, install a compatible dependency set containing r2x-plexos>=0.3.0 in the environment doing the parsing; the current translation packages require that lower bound. Check the selected package’s declared constraints before upgrading an older environment.

For a CLI-managed environment:

Terminal window
r2x install r2x-plexos
r2x list r2x-plexos

Repeat the version report and the failing parse. Plugin discovery alone does not verify Horizon resolution. If the failure persists with a compatible newer parser, preserve the traceback and study schema for a report rather than adding fake Horizon attributes. This is a documented historical cause, not evidence that every Horizon error has the same fix.

Include the exact failing command, complete traceback, printed log path, whether failure occurs during parsing, translation, loading or summary display, and the smallest shareable input or artifact that reproduces it. Record your CLI version:

Terminal window
r2x --version

Record r2x python show and the corresponding writer environment. To list Python package versions, save this as report_versions.py:

from importlib.metadata import PackageNotFoundError, version
packages = (
"r2x-core",
"r2x-reeds",
"r2x-sienna",
"r2x-plexos",
"r2x-reeds-to-plexos",
"r2x-plexos-to-sienna",
"r2x-sienna-to-plexos",
"r2x-reeds-to-sienna",
"infrasys",
)
for package in packages:
try:
print(package, version(package))
except PackageNotFoundError:
print(package, "not installed")

Run it with the Python executable reported by r2x python show, replacing this placeholder with the actual path:

Terminal window
/path/to/cli/environment/bin/python report_versions.py

For the summary error, also report whether the scripted component and time-series queries succeed on the same artifact. Remove credentials or private input data from anything you share.

Include the pipeline YAML with sensitive paths removed, source model/schema version, selected solve and weather years, and the failing component name. For time-series discrepancies include start timestamp, resolution, sample count, units, and expected versus observed values. State whether the failure reproduces with the public first-pipeline fixture or requires unavailable/private data. Link the relevant property mapping and include any warnings before the exception.