Problem importing Netlist

I am trying to develop a program to create a KiCAD netlist from an XML netlist. I have a problem when importing the Netlist.

a) I get the following errors on the import
*** Error: Component ‘Q1’ pad ‘1’ not found in footprint ‘Transistors_TO-220:TO-220_Bipolar-BCE_Horizontal’ ***
*** Error: Component ‘Q1’ pad ‘2’ not found in footprint ‘Transistors_TO-220:TO-220_Bipolar-BCE_Horizontal’ ***
*** Error: Component ‘Q1’ pad ‘3’ not found in footprint ‘Transistors_TO-220:TO-220_Bipolar-BCE_Horizontal’ ***

And the transistor is not connected to any ratsnets.

I tried creating a schematic in KiCAD and exporting the NetList and then importing and had the same problems and more.

My Netlist file is as follows

EESchema NetList Version 1.0

(
( 0 $noname R1 220Ω_Resistor
( 1 N-0001 )
( 2 N-0002 )
)
( 0 $noname R2 400Ω_Resistor
( 2 N-0001 )
( 1 N-0004 )
)
( 0 $noname R3 100Ω_Resistor
( 1 N-0001 )
( 2 N-0005 )
)
( 0 $noname Q1 NPN-Transistor
( 2 N-0002 )
( 3 N-0003 )
( 1 N-0004 )
)
( 0 $noname C1 Ceramic_Capacitor
( 1 N-0003 )
( 2 N-0005 )
)
( 0 $noname L1 Inductor
( 1 N-0003 )
( 2 N-0005 )
)
)
*
{ Pin List by Nets
Net 1 “”
R1 1
R2 2
R3 1
Net 2 “”
R3 1
Net 2 “”
R1 2
Q1 2
Net 3 “”
C1 1
Q1 3
L1 1
Net 4 “”
R2 1
Q1 1
Net 5 “”
C1 2
L1 2
R3 2
}
#end

It looks like your TO-220 footprint has the pins labelled wrong. Try editing the footprint and make sure the pin numbers match the pin numbers of the schematic symbol.

Thanks changing the foorprint fixed the problem

If your using the libraries that came with Kicad you have to be careful of that. Especially when it comes to TO-style cases. Saying that, there have been other libraries that I have downloaded which also suffer the same problem. Always best to check symbols and footprints first.

Glad it sorted out the problem

Andy

Yes, was using the standard Github libraries