Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Could not load KiCad schematic library "Device", falling back to backup library. #163

Open
QGB opened this issue Nov 5, 2022 · 3 comments
Labels

Comments

@QGB
Copy link

QGB commented Nov 5, 2022

WARNING: Could not load KiCad schematic library "Device", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:20]
11-05 14:00:50 skidl 118:Could not load KiCad schematic library "Device", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:20]
WARNING: Could not load KiCad schematic library "Device", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:21]
11-05 14:00:50 skidl 118:Could not load KiCad schematic library "Device", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:21]
WARNING: Could not load KiCad schematic library "power", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:28]
11-05 14:00:50 skidl 118:Could not load KiCad schematic library "power", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:28]
WARNING: Could not load KiCad schematic library "power", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:29]
11-05 14:00:50 skidl 118:Could not load KiCad schematic library "power", falling back to backup library. @ [C:\test\jlc-eda\<frozen importlib._bootstrap>:228=>C:\QGB\babun\cygwin\bin\qgb\tests\skidl_test.py:29]

No errors or warnings found while generating netlist.

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\QGB/babun/cygwin/bin\qgb\tests\skidl_test.py", line 44, in <module>
    print(generate_pcb())
  File "C:\Users\qgb\Documents\KiCad\6.0\3rdparty\Python39\site-packages\skidl\circuit.py", line 562, in generate_pcb
    gen_func(file_)  # Generate the PCB file from the netlist.
  File "C:\Users\qgb\Documents\KiCad\6.0\3rdparty\Python39\site-packages\skidl\tools\kicad\kicad.py", line 1004, in gen_pcb
    kinet2pcb.kinet2pcb(self, file_)
  File "C:\Users\qgb\Documents\KiCad\6.0\3rdparty\Python39\site-packages\kinet2pcb\kinet2pcb.py", line 219, in kinet2pcb
    fp_lib, fp_name = part.footprint.split(":")
AttributeError: 'NoneType' object has no attribute 'split'
@QGB QGB added the bug label Nov 5, 2022
@devbisme
Copy link
Owner

devbisme commented Nov 7, 2022

You haven't provided the source for skidl_test.py. I can't provide any help without that. Sorry.

@QGB
Copy link
Author

QGB commented Nov 12, 2022

@devbisme
Copy link
Owner

The AttributeError is raised because you have parts which do not have any assigned footprints. Since there footprint is None, the split() function is raising an exception. There should have been some error reports about the parts not having footprints, so I'm not sure why those weren't generated.

The solution to this is to define some footprints for the parts you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants