Comments (11)
Thanks for the info, your are the first one to provide feedback on OS X. As you know Apple isn't cool with OS X virtualisation. And I don't trust my unofficial vm ...
Where comes from libngspice on brew ? If I am right brew is a package system managed by a community of users. Thus this package is not provided by ngspice maintainers but by somebody ???
If I understood the issue, on OS X shared libraries use the extension dylib instead of so. Then the library finder is able to locate the library without to worry on its path. Thus it's an easy fix. Right ???
Could you explain how to install Python, pip on OS X I want to update the documentation for OS X.
Could you confirm PySpice works fine ?
from pyspice.
Hello,
I have succeeded previously with "home brew" ngspice and pyspice in OS X. I'll have a look at what I did and see if it still works. There are options for python on OSX, the built in python being one. I would recommend people on OS X (and almost any other platform) to use miniconda, or anaconda python and try and maintain environments that way. I will try a completely clean install soon.
from pyspice.
Brew is a package manager maintained by a community of users, so the formula may or may not be maintained by the ngspice maintainers. However, this formula pulls the libraries directly from the official project page.
Yes, the library is on the path. I just had to change the file extension. Should be an easy fix.
As @mjfwest commented Miniconda/Anaconda python are great options, but I use brew myself. brew install python3
.
Yeah, let me know when you have a patch
from pyspice.
As @ryanbahneman points out, there are at least three common way of installing or using Python on OS X, the 3rd common one being brewed Python. The bigger point is perhaps that any instructions or install scripts should not make assumptions, or should at least cover the most common situations.
from pyspice.
fixed in 70610e0
from pyspice.
will update doc soon
from pyspice.
I am having a similar issue. I have the latest install (PySpice 1.1.4) on OSX but still get
OSError: cannot load library libngspice.dylib: dlopen(libngspice.dylib, 2): image not found. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libngspice.dylib'
I downloaded ngspice with:
brew install libngspice
which installed libngspice.dylib in the proper directory. I've also tried adding the parent directory of libngspice.dylib to the PATH and PYTHONPATH variables, but still now luck. Any help would be grateful.
from pyspice.
Unfortunately I cannot test on osx, could be this issue was not fixed ???
PATH and PYTHONPATH are not relevant
from pyspice.
I don't know about other users, but I never got PySpice working on osx. I found the libngspice.dylib but python cannot find it. I tried running my own script with
ctypes.find_library(libngspice.dylib)
but libngspice.dylib cannot be found. How exactly does pyspice find the libraries? Is there another path I should add (maybe LD_LIBRARY_PATH)? Just trying to figure out how to force pyspice to find libngspice.dylib.
from pyspice.
OS X doesn't use LD_LIBRARY_PATH. There is a variable called DYLD_LIBRARY_PATH that can potentially be used instead. Unfortunately, ever since OS X El Capitan, they added a "security" layer that refuses to propagate DYLD_LIBRARY_PATH down into sub processes, so it is entirely possible it won't help.
from pyspice.
I confirm that I am able to runn PySpice on OS X High Sierra. I had to install Python 3.
I install it using brew:
brew install python3
brew link python3
brew prune && brew postinstall python3
brew install libngspice
An install using pip3 the libraries:
pip3 install PySpice
pip3 install numpy
pip3 install scipy
pip3 install matplotlib
pip3 install PyYAML
pip3 install cffi
Hopefully that can help you too.
from pyspice.
Related Issues (20)
- ac analysis not working for NgSpiceShared
- Nonfunctional Discourse Link HOT 1
- How to retrieve .measure results HOT 1
- Would you like another active project mantainer? HOT 1
- B source : how to define a current-dependent voltage source HOT 1
- AWS Lambda: OSError: cannot load library 'libngspice.so' HOT 4
- Question about the GPL license
- Using `circuit.simulator(simulator='ngspice-subprocess',...)` breaks PySpice execution HOT 3
- _parameters deleted in wrong order
- pyspice-post-installation HOT 1
- Simulate circuit behaviour one time step at a time for code coupling. Issue with initial condition
- Bode diagram plot issue HOT 4
- analysis=simulator.operating_point() from voltage divider is not working HOT 2
- AC circuit using PySpice
- Gaussian and Exponential numerical codes are inverted for random source simulation
- Problem conducting ac_sensitivity analysis.
- Pyspice examples are not included in pre-release testing
- Importing Circuit class not working
- Error parsing Xspice diode model on MacOS Sonoma M1
- Pyspice-memory probelm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyspice.