Closed TheGiolly closed 2 weeks ago
🤯 I'll try to fix this asap
I'm almost sure that there is no part in the database for the given and therefore this returns no result:
Can you post a screenshot of your parts list as shown in the plugin main window?
I've got the same problem, no bom is generated. terminal output:
`Traceback (most recent call last): File "/home/guus/.local/share/kicad/8.0/3rdparty/plugins/com_github_bouni_kicad-jlcpcb-tools/mainwindow.py", line 952, in generate_fabrication_data self.fabrication.generate_cpl() File "/home/guus/.local/share/kicad/8.0/3rdparty/plugins/com_github_bouni_kicad-jlcpcb-tools/fabrication.py", line 263, in generate_cpl if part[6] == 1: # Exclude from POS
TypeError: 'NoneType' object is not subscriptable
`
![Screenshot from 2024-06-20 12-46-08](https://github.com/Bouni/kicad-jlcpcb-tools/assets/51853966/43c36dde-0c0b-41c1-820a-420e803f78fc)
Can one of you try if this fixes your issue: https://github.com/Bouni/kicad-jlcpcb-tools/pull/485 ?
Edit: I've just updated the PR so that we get a debug message if a part cannot be found in the database. That might help understand what's going on a little better
No luck, Traceback (most recent call last): File "/home/guus/.local/share/kicad/8.0/3rdparty/plugins/com_github_bouni_kicad-jlcpcb-tools/mainwindow.py", line 952, in generate_fabrication_data self.fabrication.generate_cpl() File "/home/guus/.local/share/kicad/8.0/3rdparty/plugins/com_github_bouni_kicad-jlcpcb-tools/fabrication.py", line 263, in generate_cpl if not part: # No matching part in the database, continue ^^^^^^^ TypeError: 'NoneType' object is not subscriptable
I'm trying to reproduce the error on a new project, but i can't. This project originates from kicad 7, might there be something in the project that causes the error?
You still run the same version installed via PCM. in order to test the PR, you need to clone the repo and switch to the PR branch.
For details check out the REAME Section on git clone: https://github.com/Bouni/kicad-jlcpcb-tools?tab=readme-ov-file#git
After cloning you need to switch the branch: git switch fix-484
Make sure to uninstall the PCM installation befor you try thisa nd restart KiCAD afterwards!
Yes, you are right. fix is working now. Thanks!
Can confirm that #485 fixes the issue. Now the terminal output is the following
2024.06.20 18:44:11 - INFO - generate_geber - Successfully plotted Top layer
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Silk top
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Mask top
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Paste top
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Bottom layer
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Silk top
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Mask bottom
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Paste bottom
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted Edges
2024.06.20 18:44:12 - INFO - generate_geber - Successfully plotted V score cut
2024.06.20 18:44:12 - INFO - generate_excellon - Finished generating Excellon files
2024.06.20 18:44:12 - INFO - zip_gerber_excellon - Finished generating ZIP file C:/Users/preda/OneDrive/Sync/Speeduino/0.4.4d\jlcpcb\production_files\GERBER-v0.4.4d.zip
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:12 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - DEBUG - generate_cpl - No matching database entry found for REF**
2024.06.20 18:44:13 - INFO - generate_cpl - Finished generating CPL file C:/Users/preda/OneDrive/Sync/Speeduino/0.4.4d\jlcpcb\production_files\CPL-v0.4.4d.csv
2024.06.20 18:44:13 - INFO - generate_bom - Finished generating BOM file C:/Users/preda/OneDrive/Sync/Speeduino/0.4.4d\jlcpcb\production_files\BOM-v0.4.4d.csv
If needed, I can send you the KiCad project for further debug.
Now its clear what happened!
We use a helper function to load parts into the database that ignores parts with a ref of REF**
:
I'll remove the debug output and merge the fix asap
Describe the bug BOM is not generated and an error appears in the KiCad terminal.
To Reproduce Steps to reproduce the behavior:
Expected behavior BOM is generated.
KiCad Version
Terminal Output