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
  File "/usr/bin/dxf2gcode", line 844, in load
    self.valuesDXF = ReadDXF(self.filename)
  File "/usr/lib/python3/dist-packages/dxf2gcode/dxfimport/", line 
85, in __init__
    self.entities = self.Read_Entities(sections_pos)
  File "/usr/lib/python3/dist-packages/dxf2gcode/dxfimport/", line 
347, in Read_Entities
    return entities
UnboundLocalError: local variable 'entities' referenced before assignment

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      |  |
debian-science-maintainers mailing list

Reply via email to