-
Notifications
You must be signed in to change notification settings - Fork 119
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
generate_pcb()
causes AttributeError: 'NoneType' object has no attribute 'SetParent'
#155
Comments
This error happens because I also noticed your example code referenced some pins on the |
The
But the footprints are in the folder and KiCAD has no problem finding them:
Lastly, I think those names for
|
My CP2104 looks like this. It must be KiCad V5: CP2104 (CP2104): Single-Chip USB-to-UART Bridge, USB 2.0 Full-Speed, 2Mbps UART, QFN package
Pin U1/1/RI,p1,RI/INPUT
Pin U1/10/VIO/NC,VIO/NC,p10/POWER-IN
Pin U1/11/GPIO.3,GPIO.3,p11/BIDIRECTIONAL
Pin U1/12/GPIO.2,p12,GPIO.2/BIDIRECTIONAL
Pin U1/13/GPIO.1,p13,GPIO.1/BIDIRECTIONAL
Pin U1/14/GPIO.0,p14,GPIO.0/BIDIRECTIONAL
Pin U1/15/~SUSPEND,p15,~SUSPEND/OUTPUT
Pin U1/16/VPP,p16,VPP/PASSIVE
Pin U1/17/SUSPEND,SUSPEND,p17/OUTPUT
Pin U1/18/CTS,CTS,p18/INPUT
Pin U1/19/RTS,p19,RTS/OUTPUT
Pin U1/2/GND,GND,p2/POWER-IN
Pin U1/20/RXD,p20,RXD/INPUT
Pin U1/21/TXD,TXD,p21/OUTPUT
Pin U1/22/DSR,DSR,p22/INPUT
Pin U1/23/DTR,DTR,p23/OUTPUT
Pin U1/24/DCD,DCD,p24/INPUT
Pin U1/25/PAD,PAD,p25/POWER-IN
Pin U1/3/D+,p3,D+/BIDIRECTIONAL
Pin U1/4/D-,D-,p4/BIDIRECTIONAL
Pin U1/5/VIO,p5,VIO/POWER-IN
Pin U1/6/VDD,p6,VDD/POWER-IN
Pin U1/7/REGIN,REGIN,p7/POWER-IN
Pin U1/8/VBUS,p8,VBUS/INPUT
Pin U1/9/~RST,~RST,p9/BIDIRECTIONAL |
I added
And I made sure it's in the directory with all the same permissions other libraries have:
|
What is happening is that your |
To make things like using the DigiKey footprints easier, I added an generate_pcb(fp_libs=["~/tmp/digikey-footprints.pretty"]) You'll need to install the |
Is there any more to do on this? |
All good. Thank you! |
kinet2pcb module is missing. Can't generate a KiCad PCB withou |
Describe the bug
Calling
generate_pcb()
results in:To Reproduce
Steps to reproduce the behavior:
.py
Expected behavior
kicad_pcb
file should be generatedScreenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: