Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576820 - sci-electronics/kicad-4.0.2 fails to find installed libraries
Summary: sci-electronics/kicad-4.0.2 fails to find installed libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-08 22:37 UTC by Rick Jenkins
Modified: 2016-04-13 21:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info kicad (kicad_info,5.96 KB, text/plain)
2016-03-09 16:16 UTC, Rick Jenkins
Details
example schematic (example.tar.bz2,37.22 KB, application/octet-stream)
2016-03-15 16:50 UTC, Rick Jenkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Jenkins 2016-03-08 22:37:15 UTC
A new build of kicad 4.0.2 under linux 4.4.2-hardened X86_64 (64 bit) produces a list of error messages when running cvpcb from an existing schematic:

Errors were encountered loading footprints
IO_ERROR: footprint library path '/opt/kicad-sources/libraries/library-repos/Air_Coils_SML_NEOSID.pretty' does not exist
from /var/tmp/portage/sci-electronics/kicad-4.0.2/work/kicad-4.0.2/pcbnew/kicad_plugin.cpp : FootprintEnumerate() : line 1758
IO_ERROR: footprint library path '/opt/kicad-sources/libraries/library-repos/Varistors.pretty' does not exist
from /var/tmp/portage/sci-electronics/kicad-4.0.2/work/kicad-4.0.2/pcbnew/kicad_plugin.cpp : FootprintEnumerate() : line 1758

and more of the same. The target .pretty directory exists, has content. and is correctly listed in the fp-lib-table.

The file given as the source of the error does not exist, although it presumably existed at install time.
Comment 1 Pacho Ramos gentoo-dev 2016-03-09 12:15:01 UTC
Please post emerge --info kicad output
Comment 2 Rick Jenkins 2016-03-09 16:16:38 UTC
Created attachment 427830 [details]
output of emerge --info kicad
Comment 3 Zoltan Puskas 2016-03-15 08:27:03 UTC
@Rick: Could you please attach an example input file? I don't need the whole schematic just something simple that crashes and has the parts in question on it. It would help debugging immensely. Thanks :)
Comment 4 Rick Jenkins 2016-03-15 16:50:40 UTC
Created attachment 428306 [details]
example schematic

Please use only for debugging and delete after use
Comment 5 Rick Jenkins 2016-03-15 16:53:53 UTC
This will show errors, since it is unlikely that you have libraries in the place where KISYSMOD points.

On my system the file which is given as the source of the errors is one which existed only transiently during the emerge.

I was able to get the program working by re-installing the libraries using the script on the website, so the only remaining problem is the spurious error source.
Comment 6 Zoltan Puskas 2016-03-16 07:41:52 UTC
My installation has not pretty files so opening schematic produces same errors. I have looked at the source library package and it seems only to have some template .pretty files for some mini computer boards.

Also auto downloading from github fails, however pasting a github link directly I can download files so they are not missing online.

I'm investigating further...
Comment 7 Zoltan Puskas 2016-03-16 08:07:08 UTC
Old installation (4.0.1) also does not have .pretty installed by default. I will use the /usr/share/doc/kicad-4.0.2/scripts/library-repos-install.sh.bz2 script to get the files locally and see with both versions whether it works or not.

For the github download failures I suspect it could be permission problems.

@Rick: Thanks for the example schematic, it helps to debug this faster. Once done I'll delete it. Also did your schematics work with kicad-4.0.1 before?
Comment 8 Rick Jenkins 2016-03-16 15:47:54 UTC
I did not see any error messages undet version 4.0.1, and it found the libraries with no trouble. I thus have no idea what the stated origin of the messages might have been - sorry.
Comment 9 Zoltan Puskas 2016-04-11 09:38:46 UTC
I got to dig around a bit and I think I have found the source of the problem. Apparently starting from 4.0.2 footprint files are available as a separate download. I'm updating ebuild according to new source requirements and testing it.
Comment 10 Zoltan Puskas 2016-04-12 08:34:11 UTC
https://github.com/gentoo/gentoo/pull/1241