Bug#895862: dxf2gcode: Crashes "UnboundLocalError: local variable 'entities' referenced before assignment"
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk
Mon Apr 16 23:59:50 BST 2018
Package: dxf2gcode
Version: 20170925-3
Severity: normal
Attempting to load a .dxf file, the entire program crashes out with:
Loading file: /home/leo/electronics/eload/panels/top.dxf
Reading DXF Structure
Traceback (most recent call last):
File "/usr/bin/dxf2gcode", line 727, in open
self.load()
File "/usr/bin/dxf2gcode", line 844, in load
self.valuesDXF = ReadDXF(self.filename)
File "/usr/lib/python3/dist-packages/dxf2gcode/dxfimport/importer.py", line 85, in __init__
self.entities = self.Read_Entities(sections_pos)
File "/usr/lib/python3/dist-packages/dxf2gcode/dxfimport/importer.py", line 347, in Read_Entities
return entities
UnboundLocalError: local variable 'entities' referenced before assignment
Aborted
In case it's useful, I've attached the .dxf file in question. This .dxf
was exported by Inkscape:
$ inkscape --version
Inkscape 0.92.2 (5c3e80d, 2017-08-06)
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dxf2gcode depends on:
ii poppler-utils 0.61.1-2
ii pstoedit 3.70-5+b1
ii python3 3.6.4-1
ii python3-opengl 3.1.0+dfsg-1
ii python3-pyqt5 5.9.2+dfsg-1+b1
dxf2gcode recommends no packages.
dxf2gcode suggests no packages.
-- no debconf information
--
Paul "LeoNerd" Evans
leonerd at leonerd.org.uk | https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: top.dxf
Type: image/vnd.dxf
Size: 225 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20180416/23a6a497/attachment-0001.bin>
More information about the debian-science-maintainers
mailing list