KiCAD v9.0.1 can't import an LTspice schematic

KiCAD v9.0.1 can’t import an LTspice schematic.

The error message is: Expecting integer at line 1 in file parentFile

Hello!
My complaint is not about the simulator (Ngspice), it is solely regarding the impossibility to get my already simulated and perfected (with the LTspice) schematic into the PCB preparation toolchain.

You need to share the schematic, otherwise nobody can possibly know what’s going wrong.

Please open an issue on Gitlab, and attach the LTSpice schematic to it. That way we can track the problem.

I can’t upload anything (yet).
This circuit will do, KiCAD v9.0.1 fails importing this (with the above mentioned error message).

I had to delete the very first line (Version 4.1) in the *.asc file for it to be imported.
And it looks weird:

Notice - there is no connection dot at the junction:

Here is the *.asc file’s contents:

Version 4.1
SHEET 1 880 680
WIRE 80 48 80 32
WIRE 80 144 80 128
WIRE 192 144 80 144
WIRE 80 160 80 144
WIRE 192 160 192 144
WIRE 80 256 80 240
WIRE 192 256 192 240
FLAG 80 32 0
FLAG 80 256 0
FLAG 192 256 0
SYMBOL res 64 32 R0
SYMATTR InstName R1
SYMATTR Value 1
SYMBOL res 64 144 R0
SYMATTR InstName R2
SYMATTR Value 1
SYMBOL res 176 144 R0
SYMATTR InstName R3
SYMATTR Value 1

As above, please create an issue on Gitlab and upload any relevant files to it. You can find a handy button to do this in the kicad preferences dialog.

You can now.
padding to 20 chars… sigh…

That does look odd, but it seems to produce the correct netlist for ngspice. See, that all three resistors connect to node Net-_R1-Pad2_

.title KiCad schematic
.save all
.probe alli
.probe p(R1)
.probe p(R2)
.probe p(R3)
R1 0 Net-_R1-Pad2_ 1
R2 Net-_R1-Pad2_ 0 1
R3 Net-_R1-Pad2_ 0 1
.end

On @JeffYoung 's announcement post the dots are also missing. Not sure why.

I submitted a merge request that fixes the version number problem: Schematic: Fix Ltspice import with minor version number (!2218) · Merge requests · KiCad / KiCad Source Code / kicad · GitLab

Hello!
Could you please try this one:

The *.asc as the text:

Version 4.1
SHEET 1 880 680
WIRE 96 48 96 32
WIRE 192 48 192 32
WIRE 96 144 96 128
WIRE 288 144 96 144
WIRE 96 176 96 144
WIRE 192 176 192 112
WIRE 288 176 288 144
WIRE 96 272 96 256
WIRE 192 272 192 256
WIRE 288 272 288 256
FLAG 288 272 0
FLAG 192 272 0
FLAG 96 272 0
FLAG 96 32 0
FLAG 192 32 0
SYMBOL res 80 32 R0
SYMATTR InstName R1
SYMATTR Value 1
SYMBOL cap 176 48 R0
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL res 80 160 R0
SYMATTR InstName R2
SYMATTR Value 1
SYMBOL res 176 160 R0
SYMATTR InstName R3
SYMATTR Value 1
SYMBOL res 272 160 R0
SYMATTR InstName R4
SYMATTR Value 1