Common Errors¶
This page covers common errors you may encounter when using idfkit and how to resolve them.
Python only, permanently
Running a locally installed EnergyPlus and reading its results belongs to Python alone. JavaScript is not waiting on a port and will not gain a counterpart: this is a permanent boundary, so no issue tracks it, and moving the capability out of that state takes a constitutional amendment rather than a ledger edit.
Requires an EnergyPlus installation on the machine and a subprocess to drive it, then
reads the eplusout files that run leaves on disk. Neither the installation nor the
subprocess is available in a browser, which is the runtime the JavaScript library
targets. JavaScript reaches EnergyPlus by the other mechanism instead: see
browser-simulation, which is not a
workaround for this entry but a different capability.
The full entry, including the vocabulary this capability owns, is on the capability parity page.
idfkit Errors¶
EnergyPlusNotFoundError¶
Cause: idfkit cannot locate an EnergyPlus installation.
Solutions:
-
Install EnergyPlus from energyplus.net/downloads
-
Set the
ENERGYPLUS_DIRenvironment variable: -
Pass the path explicitly:
SimulationError¶
Cause: The specified weather file doesn't exist.
Solutions:
- Verify the path is correct
- Use absolute paths instead of relative
- Download weather files using
WeatherDownloader
SimulationError (Timeout)¶
Cause: The simulation exceeded the timeout limit.
Solutions:
-
Increase the timeout:
-
Use design-day-only mode for testing:
-
Check for infinite loops in the model
NoDesignDaysError¶
Cause: The DDY file doesn't contain the requested design day type.
Solutions:
-
Check available design days:
-
Use a different percentile:
GeocodingError¶
Cause: The address couldn't be geocoded.
Solutions:
- Try a more specific address
- Try a different format (city name, ZIP code, landmark)
- Use coordinates directly:
Import Errors¶
Missing Optional Dependencies¶
Solutions:
# Install specific extra
pip install idfkit[dataframes]
# Or install all extras
pip install idfkit[all]
Common extras:
| Feature | Install Command |
|---|---|
| DataFrames | pip install idfkit[pandas] |
| Plotting (matplotlib) | pip install idfkit[plot] |
| Plotting (plotly) | pip install idfkit[plotly] |
| Progress bars (tqdm) | pip install idfkit[progress] |
| S3 Storage | pip install idfkit[s3] |
| Async S3 Storage | pip install idfkit[async-s3] |
boto3 Not Found¶
Solution:
Validation Errors¶
Reference to Non-Existent Object¶
[ERROR] People:'Zone1_People'.zone_or_zonelist_or_space_or_spacelist_name: Reference to non-existent object 'Zone 1' (looked up in SpaceAndSpaceListNames or ZoneAndZoneListNames). Did you mean 'Zone1'?
Cause: A field references an object name that doesn't exist. The message
quotes the value as written, names the reference lists it was looked up in,
and suggests a close name when there is one. The same check (E009) fires when
the name exists but belongs to an object of the wrong type:
Reference to 'Always', which is a Schedule:Constant, not in SpaceAndSpaceListNames or ZoneAndZoneListNames.
Solutions:
- Check the object name spelling (case-insensitive)
- Add the missing object:
- Fix the reference:
add() Refused: Unknown Field¶
InvalidFieldError: add() of object type 'Zone' refused; nothing was added:
- X Origin: unknown (spell it 'x_origin')
A misspelling adds a suggestion:
InvalidFieldError: add() of object type 'Zone' refused; nothing was added:
- x_orgin: unknown (not a field of Zone)
Did you mean 'x_origin'?
Cause: A keyword given to add() is not a field of the object type.
validate=False skips value, required-field and range checks, but not field
names, so this is raised either way.
Solutions:
- Use the snake_case schema key the message suggests:
x_origin, not"X Origin". - Pass the object's name as the
nameargument, not insidefields. - For a type with no Name field, such as
Output:VariableorOutput:Meter, pass no name and give its first field instead. A name given anyway is refused:InvalidFieldError: Output:Variable has no Name field, so "x" would be dropped on write. Pass it as a field instead: key_value="x".
add() Refused: Malformed Extensible Group¶
TypeError: add() of object type 'Output:Table:SummaryReports' refused; nothing was added:
- reports: wrapper-value (expected a list, got str)
Cause: An extensible group was given as something other than a list of dicts, such as a string, a list of tuples or another object's live view, or a group used a key the group does not define.
Solution: Pass a list of dicts keyed by the group's field names. Copy another
object's groups with .as_list():
model.add("Output:Table:SummaryReports", reports=[{"report_name": "AllSummary"}])
model.add("BuildingSurface:Detailed", "Wall 2", ..., vertices=wall.vertices.as_list())
Object Not Found¶
Cause: doc["Zone"]["Zone2"] looked up a name the collection does not
hold. The message suggests close names and lists the ones that exist. Use
doc["Zone"].get("Zone2") to get None instead.
Unknown Object Type¶
UnknownObjectTypeWarning: Object type 'Zonee' is in no bundled EnergyPlus release; the collection is empty. Did you mean 'Zone'?
Cause: doc["Zonee"] named a type no EnergyPlus release has. Reading it
returns an empty collection and warns; adding to it raises.
Assignment Refused in a Strict Document¶
ValidationFailedError: Validation failed with 1 error(s):
1. [ERROR] Zone:'Office'.multiplier: Expected integer, got str
Cause: In a strict document, the default, an assigned value is checked
against the schema as add() checks it. A wrong type, a choice the field does
not list, a number out of range, or a blank name is refused.
Solutions:
- Assign a value of the field's type and range.
- Load or create the document with
strict=Falseto store such values as given.
NaN or Infinity Refused¶
InvalidFieldError: Zone 'Office' field 'x_origin' is nan. NaN and infinity are not numbers EnergyPlus or epJSON can hold; give a finite number.
Cause: A NaN or infinite value was assigned, often from a pandas column
with missing data. It is refused in either strictness mode. Fill or drop the
missing values (fillna()) before assigning.
Required Field Read While Unset¶
MissingRequiredFieldError: Material 'M' has no value for its required field 'thickness'. EnergyPlus refuses an object without it; set it, or read it with obj.get('thickness') to get None when it is missing.
Cause: Required fields are typed without None, so reading one the model
leaves unset raises. Use obj.get("thickness") to test whether it is set.
Required Field Missing¶
Cause: A required field wasn't provided.
Solution:
# Add the required field
model.add(
"People", "Zone1_People",
zone_or_zonelist_or_space_or_spacelist_name="Zone1",
number_of_people_schedule_name="Always_On",
activity_level_schedule_name="Activity_Schedule", # Required!
number_of_people_calculation_method="People",
number_of_people=10,
)
File Format Errors¶
Invalid IDF Syntax¶
Cause: load_idf() and load_epjson() use strict parsing by default
(strict_parsing=True) and found malformed content (for example unknown object
types, invalid bytes, or extra fields on non-extensible objects).
Solutions:
- Check for unclosed objects (missing
;) - Check for invalid field separators
- Validate with EnergyPlus directly first
- For migration or best-effort loading of legacy/noisy files, use tolerant parsing:
For epJSON, load_epjson("file.epJSON", strict_parsing=False) does the same.
Wrong File Format¶
FileFormatError: model.idf looks like an epJSON file (it starts with '{'), not IDF; use load_epjson() to read it
Cause: An epJSON file was passed to load_idf(), or an IDF file to
load_epjson(). The message names the format found and the loader to use.
FileFormatError is an IDFParseError and a ValueError, so code catching
either still catches it.
Version Given as a String¶
Solution: Pass a tuple: load_idf("file.idf", version=(24, 1, 0)).
Unsupported Schema Version¶
UnsupportedVersionError: EnergyPlus version 99.0.0 is not supported.
Supported versions: 8.9.0, 9.0.1, 9.1.0, ..., 26.1.0, 26.2.0
Cause: The IDF version isn't supported.
Solutions:
-
Check supported versions:
-
Specify a supported version:
Simulation Version Mismatch¶
VersionMismatchError: Model version 22.1.0 does not match target EnergyPlus version 25.2.0.
Migration chain: 22.1.0->22.2.0 -> 22.2.0->23.1.0 -> ... -> 25.1.0->25.2.0
To fix it, pass auto_migrate=True to simulate() (or to each SimulationJob in a batch) to migrate a copy before the run, or call idfkit.migrate(model, target_version=(25, 2, 0)) to migrate it once and keep the result.
Cause: simulate() was called with a model whose version differs
from the installed EnergyPlus, and auto_migrate is False (the default).
Solutions:
-
Forward-migrate transparently inside
simulate(): -
Migrate explicitly first so you can inspect the diff:
-
From the shell (no Python session required):
Backward migration is not supported
EnergyPlus ships no reverse transition binaries, so a model newer than the installed EnergyPlus cannot be downgraded. Install a newer EnergyPlus or load the model explicitly at an older version.
See how to migrate models between versions for the full workflow.
Performance Issues¶
Slow Station Index Loading¶
Cause: First load compiles the index from source files.
Solution: Subsequent loads are instant (uses cached index).
Large Memory Usage¶
Cause: Loading many large models or keeping many results in memory.
Solutions:
- Use
model = Noneto release memory after use - Process batch results incrementally:
See Also¶
- EnergyPlus Issues — EnergyPlus-specific errors
- How to handle simulation errors — Detailed error parsing