View Issue Details

IDProjectCategoryView StatusLast Update
0001960FreeCADBugpublic2015-02-11 18:37
Reporterswill Assigned Toyorik  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
OSUbuntu 14.04 Server 
Fixed in Version0.15 
Summary0001960: importDXF (v1.38) crashes without a GUI
DescriptionI opened this bug in GitHub as well: https://github.com/yorikvanhavre/Draft-dxf-importer/issues/6

I am using FreeCAD using the daily build (v15).

When I try to use importDXF via python directly on a system without X installed I get the following.

FreeCAD 0.15, Libs: 0.15R4542 (Git)
Traceback (most recent call last):
  File "./custom.py", line 9, in <module>
    import importDXF
  File "/usr/lib/freecad/Mod/Draft/importDXF.py", line 53, in <module>
    draftui = FreeCADGui.draftToolBar
NameError: name 'FreeCADGui' is not defined

I changed importDXF.py from:

gui = FreeCAD.GuiUp
if gui:
    import FreeCADGui
try:
    draftui = FreeCADGui.draftToolBar
except AttributeError:
    draftui = None

to:

gui = FreeCAD.GuiUp
if gui:
    import FreeCADGui
try:
    draftui = FreeCADGui.draftToolBar
except (AttributeError, NameError):
    draftui = None

This gets me past this issue...
TagsNo tags attached.
FreeCAD Information

Relationships

duplicate of 0001961 closedyorik importDXF (v1.38) does not export without a GUI 

Activities

yorik

2015-02-11 18:36

administrator   ~0005784

Please do not create twice an issue about the same problem, thanks!

Issue History

Date Modified Username Field Change
2015-02-11 13:40 swill New Issue
2015-02-11 18:36 yorik Relationship added duplicate of 0001961
2015-02-11 18:36 yorik Note Added: 0005784
2015-02-11 18:37 yorik Status new => closed
2015-02-11 18:37 yorik Assigned To => yorik
2015-02-11 18:37 yorik Resolution open => duplicate
2015-02-11 18:37 yorik Fixed in Version => 0.15