-
Notifications
You must be signed in to change notification settings - Fork 32
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
TypeError: 'NoneType' object is not subscriptable conversion.py line 290 #20
Comments
Can you send me the files you're trying to process so I can try and replicate this? |
Files attached python main.py -t 0.6 -i 0.5 Gerber_BoardOutline.GKO Gerber_BottomPasteMaskLayer.GBP stencil.scad |
Hm this works fine for me, both locally and on https://solder-stencil.me As you said you couldn't get poetry to work and manually generated a list of depenencies, I think something might not be quite right in your local setup - I'd recommend trying to get poetry to work properly If you can't make that work, here's a requirements.txt for windows generated from the actual current dependencies:
|
Ah sorry, ignore the above! I didn't see the extra options you added, with that I get the error as well. Lemme have a look into it! |
Alrighty found the problem - there was an issue with how points were compared, which in another part of the code that combines shapes together caused some duplicated points within shapes. Solidpython then got confused by the zero-length line segments between the duplicated points and returned those None values. There's still a related bug/inconsistency in solidpython - either The website is updated, so this should all be working fine for now - though I wouldn't recommend using those actual settings you pasted, as the holes will all merge together. |
Thanks for the quick response |
TypeError: 'NoneType' object is not subscriptable -> gerber_to_scad/gerber_to_scad/conversion.py @ line 290, in V(p[0], p[1])
There seems to be a problem with the Solid Python offset function
offset_points function returns none SolidCode/SolidPython#206
The text was updated successfully, but these errors were encountered: