-
Notifications
You must be signed in to change notification settings - Fork 173
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
Cannot load library 'libngspice.dylib' macOS #376
Comments
I'm having the same problem on MacOS Sonoma 14.5, Python 3.12.4, PySpice 1.5 I've checked my homebrew installation of ngspice, which itself works if I ran it directly. Within the installation folder I searched for the necessary lib and got the following output, which might be of help to debug the problem:
I also would love this issue to be solved :) |
I've found a workaround. If you installed ngspice for example with homebrew, the lib is located in
If you are using vscodium and the debugger, you can add the following to the launch.json:
|
This happens because of incorrect usage of
PySpice calls it with the argument |
Environment (OS, Python version, PySpice version, simulator)
macOS, python3.12, PySpice 1.5
I'm trying to download PySpice on mac, using pip to install PySpice, and homebrew to install ngspice and libngspice. But, anytime I try to run a simulation — like with the following code — I get the following error.
Code:
Error:
OSError: cannot load library 'libngspice.dylib': dlopen(libngspice.dylib, 0x0002): tried: 'libngspice.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibngspice.dylib' (no such file), '/usr/lib/libngspice.dylib' (no such file, not in dyld cache), 'libngspice.dylib' (no such file), '/usr/lib/libngspice.dylib' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'libngspice.dylib'
Please help!
The text was updated successfully, but these errors were encountered: