Skip to content

Math Nodes not working onPython 3.14 #508

@n0valis

Description

@n0valis

Unfortunately with Python 3.14 we are running into trouble with the MathExpression|pysssss Node

File "/opt/ComfyUI/custom_nodes/comfyui-custom-scripts/py/math_expression.py", line 182, in eval_expr
if isinstance(node, ast.Constant) or isinstance(node, ast.Num):
^^^^^^^
AttributeError: module 'ast' has no attribute 'Num'

As ast.Num is deprecated maybe just change it to if isinstance(node, ast.Constant)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions