pathwaycom/pathway · error · ValueError
'{param_name}' must be finite, got {value!r}
Error message
'{param_name}' must be finite, got {value!r} What it means
Error "'{param_name}' must be finite, got {value!r}" thrown in pathwaycom/pathway.
Source
Thrown at python/pathway/io/_utils.py:126
allow_zero: If ``True`` (the default), a zero duration is accepted: for
polling-type intervals it is a legitimate way to ask for updates as
often as possible, at the price of a busy-wait loop. Set to ``False``
for parameters where zero can never be meaningful (e.g. timeouts).
Returns:
The duration expressed as a float number of seconds.
"""
if isinstance(value, datetime.timedelta):
seconds = value.total_seconds()
elif isinstance(value, (int, float)) and not isinstance(value, bool):
seconds = float(value)
else:
raise TypeError(
f"'{param_name}' must be a number of seconds (int or float) or a "
f"datetime.timedelta, got {type(value).__name__}"
)
if not math.isfinite(seconds):
raise ValueError(f"'{param_name}' must be finite, got {value!r}")
if seconds < 0 or (seconds == 0 and not allow_zero):
constraint = "non-negative" if allow_zero else "positive"
raise ValueError(f"'{param_name}' must be {constraint}, got {value!r}")
return seconds
class RawDataSchema(pw.Schema):
data: bytes
class PlaintextDataSchema(pw.Schema):
data: str
class MetadataSchema(Schema):
_metadata: dict
View on GitHub (pinned to fa2f74a464)
Solutions
- Pass a finite value (not NaN, inf, or -inf) for this duration parameter.
Example fix
pw.io.fs.read(path, refresh_interval=60)
When it happens
Trigger: Thrown at python/pathway/io/_utils.py:126 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of pathwaycom/pathway@fa2f74a464 (2026-08-15).
Data as JSON: /api/errors/8760ea58b7b0fbe3.
Report an issue: GitHub.