View Issue Details

IDProjectCategoryView StatusLast Update
0003457FreeCADBugpublic2018-05-04 00:52
Reportereasyw-fc Assigned Toyorik  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version0.18 
Target VersionFixed in Version0.18 
Summary0003457: import Draft is broken
DescriptionSwitching to Draft WB or using it as python feature through
'import Draft'
will cause the following errors:
- switching to Draft
invalid syntax (Draft.py, line 3704)
Error: Initializing one or more of the Draft modules failed, Draft will not work as expected.
Unknown command 'Draft_Line'
Unknown command 'Draft_Wire'
Unknown command 'Draft_Circle'
Unknown command 'Draft_Arc'
Unknown command 'Draft_Ellipse'
Unknown command 'Draft_Polygon'
Unknown command 'Draft_Rectangle'
Unknown command 'Draft_Text'
Unknown command 'Draft_Dimension'
Unknown command 'Draft_BSpline'
Unknown command 'Draft_Point'
Unknown command 'Draft_ShapeString'
Unknown command 'Draft_Facebinder'
Unknown command 'Draft_BezCurve'
Unknown command 'Draft_Label'
Unknown command 'Draft_Move'
Unknown command 'Draft_Rotate'
Unknown command 'Draft_Offset'
Unknown command 'Draft_Trimex'
Unknown command 'Draft_Upgrade'
Unknown command 'Draft_Downgrade'
Unknown command 'Draft_Scale'
Unknown command 'Draft_Edit'
Unknown command 'Draft_WireToBSpline'
Unknown command 'Draft_AddPoint'
Unknown command 'Draft_DelPoint'
Unknown command 'Draft_Shape2DView'
Unknown command 'Draft_Draft2Sketch'
Unknown command 'Draft_Array'
Unknown command 'Draft_PathArray'
Unknown command 'Draft_Clone'
Unknown command 'Draft_Drawing'
Unknown command 'Draft_Mirror'
Unknown command 'Draft_Stretch'
Unknown command 'Draft_Line'
Unknown command 'Draft_Wire'
Unknown command 'Draft_Circle'
Unknown command 'Draft_Arc'
Unknown command 'Draft_Ellipse'
Unknown command 'Draft_Polygon'
Unknown command 'Draft_Rectangle'
Unknown command 'Draft_Text'
Unknown command 'Draft_Dimension'
Unknown command 'Draft_BSpline'
Unknown command 'Draft_Point'
Unknown command 'Draft_ShapeString'
Unknown command 'Draft_Facebinder'
Unknown command 'Draft_BezCurve'
Unknown command 'Draft_Label'
Unknown command 'Draft_Move'
Unknown command 'Draft_Rotate'
Unknown command 'Draft_Offset'
Unknown command 'Draft_Trimex'
Unknown command 'Draft_Upgrade'
Unknown command 'Draft_Downgrade'
Unknown command 'Draft_Scale'
Unknown command 'Draft_Edit'
Unknown command 'Draft_WireToBSpline'
Unknown command 'Draft_AddPoint'
Unknown command 'Draft_DelPoint'
Unknown command 'Draft_Shape2DView'
Unknown command 'Draft_Draft2Sketch'
Unknown command 'Draft_Array'
Unknown command 'Draft_PathArray'
Unknown command 'Draft_Clone'
Unknown command 'Draft_Drawing'
Unknown command 'Draft_Mirror'
Unknown command 'Draft_Stretch'
Unknown command 'Draft_VisGroup'
Unknown command 'Draft_Heal'
Unknown command 'Draft_FlipDimension'
Unknown command 'Draft_ToggleConstructionMode'
Unknown command 'Draft_ToggleContinueMode'
Unknown command 'Draft_Edit'
Unknown command 'Draft_Slope'
Unknown command 'Draft_SetWorkingPlaneProxy'
Unknown command 'Draft_AddConstruction'
Unknown command 'Draft_ApplyStyle'
Unknown command 'Draft_ToggleDisplayMode'
Unknown command 'Draft_AddToGroup'
Unknown command 'Draft_SelectGroup'
Unknown command 'Draft_SelectPlane'
Unknown command 'Draft_ShowSnapBar'
Unknown command 'Draft_ToggleGrid'
Unknown command 'Draft_AutoGroup'
Unknown command 'Draft_UndoLine'
Unknown command 'Draft_FinishLine'
Unknown command 'Draft_CloseLine'
Unknown command 'Draft_Snap_Lock'
Unknown command 'Draft_Snap_Midpoint'
Unknown command 'Draft_Snap_Perpendicular'
Unknown command 'Draft_Snap_Grid'
Unknown command 'Draft_Snap_Intersection'
Unknown command 'Draft_Snap_Parallel'
Unknown command 'Draft_Snap_Endpoint'
Unknown command 'Draft_Snap_Angle'
Unknown command 'Draft_Snap_Center'
Unknown command 'Draft_Snap_Extension'
Unknown command 'Draft_Snap_Near'
Unknown command 'Draft_Snap_Ortho'
Unknown command 'Draft_Snap_Special'
Unknown command 'Draft_Snap_Dimensions'
Unknown command 'Draft_Snap_WorkingPlane'
- digit 'import Draft'
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\FreeCAD\Mod\Draft\Draft.py", line 3704
    else:
       ^
SyntaxError: invalid syntax
Steps To Reproduceswitch to Draft WB or simply digit 'import Draft' in Python console

Additional InformationOS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13660 (Git)
Build type: Release
Branch: master
Hash: 650fed9795f9ea97e701fbb5d47da15836573c4b
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)

The same in FC Appimage
FreeCAD_0.18.13660.glibc2.17-x86_64.AppImage
TagsNo tags attached.
FreeCAD Information

Issue History

Date Modified Username Field Change
2018-05-03 20:13 easyw-fc New Issue
2018-05-04 00:52 Kunda1 Assigned To => yorik
2018-05-04 00:52 Kunda1 Status new => closed
2018-05-04 00:52 Kunda1 Resolution open => fixed
2018-05-04 00:52 Kunda1 Fixed in Version => 0.18
2018-05-04 00:52 Kunda1 Note Added: 0011228