[SKiDL BUG] Finds libraries via KICAD10_SYMBOL_DIR but not via KICAD_SYMBOL_DIR

Open Beginner friendly
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

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

bug

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:

  1. Create virtual env: python3 -m venv .venv
  2. Activate virtual env: source .venv/bin/activate
  3. Install SKiDL 3.0.0: pip install skidl
  4. Set KICAD_SYMBOL_DIR: export KICAD_SYMBOL_DIR=/Applications/KiCad/KiCad.app/Contents/SharedSupport/symbols
  5. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devbisme/skidl

All issues in devbisme/skidl

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.