Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation isn't clear on how to install ngspice and PySpice separately. #382

Open
Nick-Hemenway opened this issue Oct 30, 2024 · 1 comment

Comments

@Nick-Hemenway
Copy link

I installed PySpice using:

pip install PySpice

I tried running pyspice-post-installation --install-ngspice-dll but it failed due to an SSL error. So I installed ngspice from the main website.

I then extract the files from the zip folder and place it in my appdata folder. I modify the system Path variable to point to the ngspice executable. I would think this would be enough for PySpice to be able to locate ngspice?

When I run: pyspice-post-installation --check-install I still get the following:

OSError: cannot load library 'C:\Users\nhemenway\.virtualenvs\spice_sim\Lib\site-packages\PySpice\Spice\NgSpice\Spice64_dll\dll-vs\ngspice.dll': error 0x7e.  Additionally, ctypes.util.find_library() did not manage to locate a library called 'C:\\Users\\nhemenway\\.virtualenvs\\spice_sim\\Lib\\site-packages\\PySpice\\Spice\\NgSpice\\Spice64_dll\\dll-vs\\ngspice.dll'

It appears that it's looking for ngspice inside the PySpice source code instead of where Path points it. I would like to try out PySpice but I'm not sure how to get it working since the documentation isn't clear on how to install without using either conda or the pyspice-post-installation utility (which isn't working). How do I fix this?

@Kreijstal
Copy link

I can recommend you try this fork of pyspice https://github.com/Kreijstal/PySpice/tree/patch-2
with msys2 ngspice, I did it that way and worked beautifully
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants