PySpice-org / PySpice

Simulate electronic circuit using Python and the Ngspice / Xyce simulators
https://pyspice.fabrice-salvaire.fr
GNU General Public License v3.0
641 stars 169 forks source link

pyspice-post-installation #355

Closed sdattalo closed 8 months ago

sdattalo commented 8 months ago

Environment (OS, Python version, PySpice version, simulator)

Windows OS Python 3.11.6 PySpice 1.5 ngspice

Expected Behaviour

It's expected the post install command will successfully configure PySpice to use ngspice. Here's the command:

pyspice-post-installation.exe --install-ngspice-dll

Actual Behaviour

Fatal error in launcher: Unable to create process using '"C:\Users\sdattalo\AppData\Local\Programs\Python\Python37\python.exe" "C:\Users\sdattalo\AppData\Local\Programs\Python\Python37\Scripts\pyspice-post-installation.exe" --install-ngspice-dll': The system cannot find the file specified.

Few Hints: 1) I've successfully performed this step several months ago. However, since then I had to reinstall my python environment and I suspect there is something I screwed up. The issue I see is very likely unrelated to PySpice! 2) I have the proper paths setup for python (e.g. I can run other scripts that invoke matplotlib or whatever). 3) I have ngspice installed

Steps to reproduce the behaviour

I'm not sure how one would go about reproducing this error.

sdattalo commented 8 months ago

The issue was due to a bad python path. Once I fixed the path the problem went away. Sorry for the noise...