Hello everyone, I was trying to use `ngspyce`pytho...
# general
a
Hello everyone, I was trying to use `ngspyce`python library inside
iic-osic-tools
container but there's an error importing the library.
Copy code
/foss/designs > python
Type "help", "copyright", "credits" or "license" for more information.
>>> import ngspyce
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/foss/tools/ngspyce/154a272/local/lib/python3.10/dist-packages/ngspyce/__init__.py", line 2, in <module>
    from .ngspyce import *
  File "/foss/tools/ngspyce/154a272/local/lib/python3.10/dist-packages/ngspyce/ngspyce.py", line 3, in <module>
    from .sharedspice import *
  File "/foss/tools/ngspyce/154a272/local/lib/python3.10/dist-packages/ngspyce/sharedspice.py", line 44, in <module>
    spice = CDLL(lib_location)
  File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /foss/tools/ngspice/ngspice/lib/libngspice.so.0: undefined symbol: cvprod
>>>
It seems that the problem is related with a `cvprod`module inside ngspice... I'm not sure. The LD_LIBRARY variable is pointing the ngspice lib directory.
Copy code
>>> os.environ["LD_LIBRARY_PATH"]
'/foss/tools/klayout/44a2aa9:/foss/tools/ngspice/ngspice/lib'
Also, I don't know if someone is using this tool for simulation and design or is just a curiosity. Maybe @Harald Pretl or @Georg Zachl can help me with this situation.