View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001960 | FreeCAD | Bug | public | 2015-02-11 13:40 | 2015-02-11 18:37 |
Reporter | swill | Assigned To | yorik | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
OS | Ubuntu 14.04 Server | ||||
Fixed in Version | 0.15 | ||||
Summary | 0001960: importDXF (v1.38) crashes without a GUI | ||||
Description | I 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... | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
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 |