Comments (10)
Please post the output from this command: echo $LD_LIBRARY_PATH
If it's empty or does not include /usr/local/lib, try running export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
from ngspyce.
Did you compile ngspice first?
from ngspyce.
Sure, ngspice works on my machine.
from ngspyce.
Which folder is libngspice.so in?
from ngspyce.
Try locate libngspice.so
from ngspyce.
locate libngspice.so
gives:
/home/borisov/Desktop/sht/1/ngspice-26/src/.libs/libngspice.so
/home/borisov/Desktop/sht/1/ngspice-26/src/.libs/libngspice.so.0
/home/borisov/Desktop/sht/1/ngspice-26/src/.libs/libngspice.so.0.0.0
/usr/local/lib/libngspice.so
/usr/local/lib/libngspice.so.0
/usr/local/lib/libngspice.so.0.0.0
from ngspyce.
Try the latest version from the master branch, it might be able to find libngspice.
from ngspyce.
same result for python 2.7 or python 3
File "/home/borisov/Desktop/newtry/ngspyce-master/examples/npn/npn.py", line 5, in <module>
import ngspyce
File "/home/borisov/anaconda2/envs/py3/lib/python3.6/site-packages/ngspyce-0.1-py3.6.egg/ngspyce/__init__.py", line 2, in <module>
from .ngspyce import *
File "/home/borisov/anaconda2/envs/py3/lib/python3.6/site-packages/ngspyce-0.1-py3.6.egg/ngspyce/ngspyce.py", line 66, in <module>
spice = CDLL(find_library('ngspice'))
File "/home/borisov/anaconda2/envs/py3/lib/python3.6/ctypes/__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libngspice.so.0: cannot open shared object file: No such file or directory
from ngspyce.
@ignamv it works, thank you!
from ngspyce.
You're welcome!
from ngspyce.
Related Issues (9)
- Add a doc for ngspyce ? HOT 2
- Error when running example/quad.py
- ngspyce using ngspice.dll under windows ? HOT 3
- Memory increases forever HOT 7
- Update documention for obtaining DLL HOT 7
- unable to find libngspice HOT 3
- power dissipation and storage inside the resistor and inductor HOT 2
- Issue with alterparams HOT 1
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 ngspyce.