Closed hgmolina closed 1 month ago
I guess this is a new feature of LTspice. Thanks for the heads up. I'll fix this as soon as possible. If you already fixed it yourself, feel free to make a pull-request.
I don't have git tools from the remote developer pc. In \PyLTSpice\utils\detect_encoding.py (line 62), I've changed this: _if not lines[0].startswith(expectedstr): for this _if not lines[0].startswith(expected_str )and not lines[1].startswith(expectedstr):
Thanks! Good to know you are not blocked. I'll close this as soon as I publish the fix to PyPi
Version 5.4.0 addresses this issue.
When PyLTSpice\log\ltsteps.py is trying to detect_encoding(log_filename, "Circuit:") (line 319) it's only looking for the first line in the log file. But currently, LTSpice is generating logs like this (Circuit is in the second line):
and I'm getting this error: f"Expected string \"{expected_str}\" not found in file:{file_path}"