Skip to content

TypeError when Initializing SpiceEditor class #159

@mendelsa1

Description

@mendelsa1

In the pyLTSPICE SpiceEditor class, it inherits from the spicelib SpiceEditor class - but the create_blank argument is not passed as a keyword argument, see here. This causes a TypeError: SpiceEditor.__init__() takes from 2 to 3 positional arguments but 4 were given. Most likely this just didn't get updated when spicelib was updated.

I was able to fix this by changing the above line to be super().__init__(netlist_file, encoding, create_blank=create_blank).
The alternative being to revert to an older version of spicelib.

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