Closed Z18Aplha closed 8 months ago
Yes.... by the look of it, it is a mismatch between the pathlib and the subprocess libraries that are being used. For some strange reason, the versions that I have on my installation don't seem to have this problem. As I understand from your error log, the subprocess needs to receive a string not a WindowPath from pathlib. I suggest two possibilities:
result = subprocess.run(str(command), timeout=timeout)
and try again.I hope this helps.
Best Regards, Nuno
I have an issue running a simple Job from the Pyton Interface. I created a working *.asc File (in LTSpice everythin works fine) and tried to trigger the simulation from my python script.
The Script:
The Script throws an error regarding to the argument "WindowsPath" which is not iterable. Google shows that this could be problem with the file handling of Python - not necessarily of the PyLTSpice Package itself. I tried to debug, but i dont understand the problem and where it has its source. So i need your help.
The error:
I am using: Python 3.7.2 PyLTSpice: 4.0.6 LTSpice: 17.1.8 (x64)
Thank you in advance! Z18Aplha