[SKiDL BUG] Finds libraries via KICAD10_SYMBOL_DIR but not via KICAD_SYMBOL_DIR
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start by tracing how SKiDL and skidl-part-search read KiCad symbol directory environment variables; the report shows KICAD_SYMBOL_DIR is ignored while KICAD10_SYMBOL_DIR works. Check the environment lookup and warning paths, then reproduce with the steps in the issue. Done when the documented variable finds libraries and irrelevant missing-version warnings are no longer emitted.
Written by the indexing model from the issue text.
Description
Describe the bug
SKiDL can't find my KiCad libraries after I followed the setup instructions in the documentation.
To Reproduce
Steps to reproduce the behavior:
- Create virtual env:
python3 -m venv .venv - Activate virtual env:
source .venv/bin/activate - Install SKiDL 3.0.0:
pip install skidl - Set
KICAD_SYMBOL_DIR:export KICAD_SYMBOL_DIR=/Applications/KiCad/KiCad.app/Contents/SharedSupport/symbols - Do a search:
skidl-part-search opamp
Expected behavior
Search results should be shown, as demonstrated in the documentation.
Actual behavior
WARNING: KICAD8_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD6_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD7_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD9_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD10_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
Found 0 part(s) for: opamp
Desktop (please complete the following information):
- OS [type & version]: macOS 15.8.2 x86_64
- Python version: 3.14.10
- SKiDL version [e.g. 22]: 3.0.0
- KiCad version: 10.0.8
Additional context
What worked:
unset KICAD_SYMBOL_DIR
export KICAD10_SYMBOL_DIR=/Applications/KiCad/KiCad.app/Contents/SharedSupport/symbols
However, in addition to displaying the search results, it still displays warnings I don't want to see:
WARNING: KICAD8_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD6_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD7_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD9_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: KICAD_SYMBOL_DIR environment variable is missing, so the default KiCad symbol libraries won't be searched. @ [/Users/rschmidt/KiCad/<frozen importlib._bootstrap_external>:763=>/Users/rschmidt/KiCad/<frozen importlib._bootstrap>:491]
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
WARNING: fp-lib-table file was not found. Component footprints are not available.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from devbisme/skidl
-
SPICE netlist wires the wrong node to a subcircuit port when an earlier pin is unconnectedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
[SKiDL BUG] Using components that do not contain a defined datasheet property throws 'Key Error'Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pimutils/vdirsyncer#1242 ·
-
priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
QuantConnect/lean-cli#792 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-webui/open-webui#35360 · 1 comment ·
Maintainers usually reply within 1 day
-
Suggest link: Destiny Verify (MIT zero-dependency pre-commit security, citation & link hygiene CLI)Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day