I’m learning how to simulate in Kicad and I’m following some tutorial.
For example I placed an pspice:OPAMP symbol, then I selected the model I downloaded for a TL072:
$ ls -l
totale 28
drwxrwxr-x 2 mark mark 4096 lug 25 2022 3d
-rw-rw-r-- 1 mark mark 972 ott 8 2020 esp32-poe.kicad_mod
drwxrwxr-x 14 mark mark 4096 feb 24 2021 footprint
drwxrwxr-x 2 mark mark 4096 lug 25 2022 library
drwxrwxr-x 2 mark mark 4096 apr 25 2021 logo
drwxrwxr-x 2 mark mark 4096 feb 10 11:10 pspice
drwxrwxr-x 4 mark mark 4096 feb 16 2022 scripts
and
$ ls -l
totale 4
-rw-rw-r-- 1 mark mark 1153 feb 10 11:10 tl072.lib
They seem ok to me.
But it they were wrong, it could not have loaded the content as shown in the first picture, could it?
Problem found.
I had to change the path of the file using an absolute path.
For me it’s a bug: using the select button it should retrieve the path it needs!
The offending line is .include "MyProject/Development/Kicad/pspice/op184.lib"
It includes a relative path starting with MyProject.
As ngspice is a shared library, the relative path starts with the location of the caller, the eeschema executable. Can you follow this path, from eeschema until op184.lib is found?