Draft is gone?!

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
easyw-fc
Posts: 2625
Joined: Thu Jul 09, 2015 9:34 am

Draft is gone?!

Postby easyw-fc » Fri Jun 07, 2019 7:40 pm

Hi,
I'm getting these errors:

Code: Select all

No module named 'DraftLayer'
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_ArcTools'
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_BezierTools'
Unknown command 'Draft_Label'
Unknown command 'Draft_Move'
Unknown command 'Draft_Rotate'
Unknown command 'Draft_Offset'
Unknown command 'Draft_Trimex'
Unknown command 'Draft_Join'
Unknown command 'Draft_Split'
Unknown command 'Draft_Upgrade'
Unknown command 'Draft_Downgrade'
Unknown command 'Draft_Scale'
Unknown command 'Draft_Edit'
Unknown command 'Draft_Edit_Improved'
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_PointArray'
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_ArcTools'
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_BezierTools'
Unknown command 'Draft_Label'
Unknown command 'Draft_Move'
Unknown command 'Draft_Rotate'
Unknown command 'Draft_Offset'
Unknown command 'Draft_Trimex'
Unknown command 'Draft_Join'
Unknown command 'Draft_Split'
Unknown command 'Draft_Upgrade'
Unknown command 'Draft_Downgrade'
Unknown command 'Draft_Scale'
Unknown command 'Draft_Edit'
Unknown command 'Draft_Edit_Improved'
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_PointArray'
Unknown command 'Draft_Clone'
Unknown command 'Draft_Drawing'
Unknown command 'Draft_Mirror'
Unknown command 'Draft_Stretch'
Unknown command 'Draft_Layer'
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'
on latest FC 0.19 update
OS: Linux Mint 19.1 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: Draft is gone?!

Postby quick61 » Fri Jun 07, 2019 8:00 pm

Same here -

** Build date 2019/06/06 21:30:03 **

OS: Kubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
This post made with 0.0% Micro$oft products - GOT LINUX?
abdullah
Posts: 3174
Joined: Sun May 04, 2014 3:16 pm

Re: Draft is gone?!

Postby abdullah » Fri Jun 07, 2019 8:19 pm

Maybe related:
https://forum.freecadweb.org/viewtopic.php?f=3&t=36898
https://forum.freecadweb.org/viewtopic.php?f=10&t=36888

I copied DraftLayer.py from git to /usr/share/freecad-daily/Mod/Draft.
User avatar
easyw-fc
Posts: 2625
Joined: Thu Jul 09, 2015 9:34 am

Re: Draft is gone?!

Postby easyw-fc » Fri Jun 07, 2019 8:32 pm

abdullah wrote:
Fri Jun 07, 2019 8:19 pm
Maybe related:
https://forum.freecadweb.org/viewtopic.php?f=3&t=36898
https://forum.freecadweb.org/viewtopic.php?f=10&t=36888

I copied DraftLayer.py from git to /usr/share/freecad-daily/Mod/Draft.
exactly thx!
I'll wait for a patched solution...
alberich
Posts: 48
Joined: Thu Aug 17, 2017 2:09 pm
Location: Texas

Re: Draft is gone?!

Postby alberich » Fri Jun 07, 2019 9:45 pm

This DraftLayer.py glitch has infected A2Plus as well.

On

Code: Select all

OS: Linux Mint 19.1 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
I get

Code: Select all

Log: Init:      Initializing /home/ringo/.FreeCAD/Mod/A2plus... failed
Log: ----------------------------------------------------------------------------------------------------
Log: Traceback (most recent call last):
  File "<string>", line 120, in InitApplications
  File "<string>", line 290, in <module>
  File "<string>", line 45, in __init__
  File "/home/ringo/.FreeCAD/Mod/A2plus/a2plib.py", line 37, in <module>
    from a2p_viewProviderProxies import *
  File "/home/ringo/.FreeCAD/Mod/A2plus/a2p_viewProviderProxies.py", line 30, in <module>
    from a2p_importedPart_class import ImportedPartViewProviderProxy # for compat
  File "/home/ringo/.FreeCAD/Mod/A2plus/a2p_importedPart_class.py", line 34, in <module>
    from a2p_versionmanagement import A2P_VERSION
  File "/home/ringo/.FreeCAD/Mod/A2plus/a2p_versionmanagement.py", line 23, in <module>
    import FreeCAD, FreeCADGui, Part, Draft, math, MeshPart, Mesh, Drawing, time
  File "/usr/share/freecad-daily/Mod/Draft/Draft.py", line 74, in <module>
    import DraftLayer
ModuleNotFoundError: No module named 'DraftLayer'
Log: ----------------------------------------------------------------------------------------------------
Err: During initialization the error No module named 'DraftLayer' occurred in /home/ringo/.FreeCAD/Mod/A2plus/InitGui.py
kbwbe
Posts: 860
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Draft is gone?!

Postby kbwbe » Sat Jun 08, 2019 9:35 am

alberich wrote:
Fri Jun 07, 2019 9:45 pm
This DraftLayer.py glitch has infected A2Plus as well.
FYI: I just removed the dependency "Draft/DraftLayer" from A2Plus. V0.4.24 should work also without it.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.27, installable via FreeCAD's addon manager
Tutorials:
Paul Randall: https://youtu.be/mnkecA9S7kc
anisim (deutsch): https://www.youtube.com/watch?v=vDcaFq6IEJM
alberich
Posts: 48
Joined: Thu Aug 17, 2017 2:09 pm
Location: Texas

Re: Draft is gone?!

Postby alberich » Sat Jun 08, 2019 10:52 am

kbwbe wrote:
Sat Jun 08, 2019 9:35 am
FYI: I just removed the dependency "Draft/DraftLayer" from A2Plus. V0.4.24 should work also without it.
A2Plus working again. Thnx.
User avatar
yorik
Site Admin
Posts: 11496
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Draft is gone?!

Postby yorik » Sun Jun 09, 2019 6:00 pm

this is a problem in the PPA package. A fix is submitted already...