← Back to team overview

kicad-developers team mailing list archive

Re: New file uploaded to kicad-devel

 

--- In kicad-devel@xxxxxxxxxxxxxxx, Rob Frohne <rob.frohne@...> wrote:
>
> Hi Pat,
> 
> I tried kipy on my project, and it looks like it crashed. Would you 
> like a copy of my project to play with? Here is the output:
> 
> frohro@frohro-d610:~/Araya Classes/Prop & Rad/DG8SAQ 
> VNA/DG8SAQ-KL7NA-VNA$ ~/Projects/kipy/tools/checkproj.py
> 
> 
> Checking 1 pages
> 
> Traceback (most recent call last):
> File "/home/frohro/Projects/kipy/tools/checkproj.py", line 37, in <module>
> sch = ParseSchematic(proj)
> File "/home/frohro/Projects/kipy/kipy/parsesch/__init__.py", line 105, 
> in __init__
> pageparts, pagepartials = parsesheet(page, libdb, warnings)
> File "/home/frohro/Projects/kipy/kipy/parsesch/graphics/parse.py", 
> line 142, in parsesheet
> graphobj = InternalParse(pageinfo.sheetname, pageinfo.sheetdata, 
> pageinfo.timestamp, libdict, warnings)
> File "/home/frohro/Projects/kipy/kipy/parsesch/graphics/parse.py", 
> line 131, in __init__
> self.dispatch(pageinfo.items, self)
> File "/home/frohro/Projects/kipy/kipy/parsesch/graphics/schitems.py", 
> line 53, in dispatch
> dispatchdict[item.__class__](item, page)
> File 
> "/home/frohro/Projects/kipy/kipy/parsesch/graphics/components.py", line 
> 139, in __init__
> self.setlibinfo()
> File 
> "/home/frohro/Projects/kipy/kipy/parsesch/graphics/components.py", line 
> 121, in setlibinfo
> boundary = list(libpart.boundary(self.subpart, self.variant))
> File "/home/frohro/Projects/kipy/kipy/fileobjs/lib/component.py", line 
> 127, in boundary
> self._boundaries[dictindex] = min(xlist), min(ylist), max(xlist), 
> max(ylist)
> ValueError: min() arg is an empty sequence
> frohro@frohro-d610:~/Araya Classes/Prop & Rad/DG8S
> 
> Hope this helps.
> 
> Rob

I would love a copy of your design for testing at some point, but I believethat I have fixed the problem you encountered. You apparently have a component shape (maybe a deMorgan equivalent) that has no drawing items (kipy doesn't consider pins to be drawing items, just rects, polylines, circles, arcs), so when kipy went to calculate a bounding rectangle for the part, it came up empty-handed. My hack to fix this was to seed the bounding rectangle coordinate list with (0,0) which will only cause the final rectangle to get bigger if someone designs their part well away from the origin. Pleasesvn up and let me know how it works for you.

Regards,
Pat








Follow ups

References