Hi all,
I am using KiCad version 4.0.2 BZR 4027-3 installed from Debian repo and I am experiencing issues with custom modules I created (and successfully used) last year.
When I try to insert at least one of these custom modules from the CvPcb’s library menu, the following error pop-up:
Some files are invalid!
IO_ERROR: File ‘/home/user/projects/CUSTOM_KICAD_LIBS/modules/TRASFO_CROVISA_2_SECS.mod’ is empty or is not a legacy library
from /build/kicad-5szWy8/kicad-0.20140622+bzr4027/pcbnew/legacy_plugin.cpp : ReadAndVerifyHeader() : line 3984
And this is the content of the module file:
(module TRASFO_CROVISA_2_SECS (layer F.Cu) (at 0 0) (descr "Connecteur 6 pins") (tags "CONN DEV") (autoplace_cost90 5) (fp_text reference T1 (at 0 -2.54) (layer F.SilkS) (effects (font (size 1.72974 1.08712) (thickness 0.27178))) ) (fp_text value TRANSFO2 (at 0 -2.54) (layer F.SilkS) hide (effects (font (size 1.524 1.016) (thickness 0.254))) ) (fp_line (start -12.49934 -13.29944) (end 12.49934 -13.29944) (layer F.SilkS) (width 0.381)) (fp_line (start 29.99994 -4.0005) (end 25.00122 -4.0005) (layer F.SilkS) (width 0.381)) (fp_line (start 25.00122 4.0005) (end 29.99994 4.0005) (layer F.SilkS) (width 0.381)) (fp_line (start -25.00122 22.9997) (end 25.00122 22.9997) (layer F.SilkS) (width 0.381)) (fp_line (start -29.99994 4.0005) (end -25.00122 4.0005) (layer F.SilkS) (width 0.381)) (fp_line (start -29.99994 -4.0005) (end -25.00122 -4.0005) (layer F.SilkS) (width 0.381)) (fp_line (start 25.00122 -21.99894) (end -25.00122 -21.99894) (layer F.SilkS) (width 0.381)) (fp_line (start -25.00122 4.0005) (end -25.00122 22.9997) (layer F.SilkS) (width 0.381)) (fp_line (start -25.00122 -4.0005) (end -25.00122 -21.99894) (layer F.SilkS) (width 0.381)) (fp_line (start 25.00122 4.0005) (end 25.00122 22.9997) (layer F.SilkS) (width 0.381)) (fp_line (start 25.00122 -4.0005) (end 25.00122 -21.99894) (layer F.SilkS) (width 0.381)) (fp_arc (start -29.99994 0) (end -29.99994 4.0005) (angle 90) (layer F.SilkS) (width 0.381)) (fp_arc (start -29.99994 0) (end -34.00044 0) (angle 90) (layer F.SilkS) (width 0.381)) (fp_arc (start 29.99994 0) (end 34.00044 0) (angle 90) (layer F.SilkS) (width 0.381)) (fp_arc (start 29.99994 0) (end 29.99994 -4.0005) (angle 90) (layer F.SilkS) (width 0.381)) (fp_circle (center 29.99994 0) (end 31.99892 1.00076) (layer F.SilkS) (width 0.381)) (fp_circle (center -29.99994 0) (end -28.00096 1.00076) (layer F.SilkS) (width 0.381)) (fp_line (start 12.49934 13.79728) (end -12.49934 13.79728) (layer F.SilkS) (width 0.381)) (fp_circle (center 7.50062 13.79728) (end 8.99922 14.29766) (layer F.SilkS) (width 0.381)) (fp_circle (center -12.49934 13.79728) (end -11.00074 14.29766) (layer F.SilkS) (width 0.381)) (fp_circle (center -7.50062 13.79728) (end -5.99948 14.29766) (layer F.SilkS) (width 0.381)) (fp_line (start -12.49934 13.79728) (end -12.49934 -13.7033) (layer F.SilkS) (width 0.381)) (fp_circle (center 12.49934 13.79728) (end 14.00048 14.29766) (layer F.SilkS) (width 0.381)) (fp_line (start 12.49934 -13.7033) (end 12.49934 0.04826) (layer F.SilkS) (width 0.381)) (fp_line (start 12.49934 0.04826) (end 12.49934 13.79728) (layer F.SilkS) (width 0.381)) (fp_circle (center -12.49934 -13.30198) (end -11.00074 -12.8016) (layer F.SilkS) (width 0.381)) (fp_circle (center 12.49934 -13.40358) (end 14.00048 -12.9032) (layer F.SilkS) (width 0.381)) (pad 2 thru_hole circle (at -12.49934 -13.29944) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) (pad 1 thru_hole circle (at 12.49934 -13.29944) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) (pad 3 thru_hole circle (at -12.49934 13.79728) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) (pad 4 thru_hole circle (at -7.50062 13.79728) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) (pad 5 thru_hole circle (at 7.50062 13.79728) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) (pad 6 thru_hole circle (at 12.49934 13.79728) (size 3 3) (drill 1.09982) (layers *.Cu *.Mask F.SilkS) ) )
As I wrote above, the module TRASFO_CROVISA_2_SECS.mod is a module I already used last year. I made a PCB using this module.
Perhaps I have to manually change something into the mod file ?
I tried to use both ‘mod’ and ‘kicad_mod’ extensions but nothing changes, I am not able to use them with this version.
How can I solve my problem ?
Thank you.
sxyz