Problem with PATH workbench

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
tloudev
Posts: 7
Joined: Sat Apr 10, 2021 4:12 pm

Problem with PATH workbench

Post by tloudev »

Hi all,
I have problem with non-working Path workbench.
Using:

Code: Select all

OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: 48d5ab5ebdbbf7a6399ebf3e0b6af36810ac36b5
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Czech/CzechRepublic (cs_CZ)
All my Path workbench icons are looking like X - that means the program probably can't load them. The only "functional" are "job" (which gives me the error mentioned lower) and tool manager (which works) - all other functions are unusable. I'd like to reinstall just this one workbench, the others work perfect.

Code: Select all

18:08:01  Traceback (most recent call last):
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobGui.py", line 1363, in Create
    obj = PathJob.Create('Job', base, template)
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 509, in Create
    obj.Proxy = ObjectJob(obj, models, templateFile)
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 155, in __init__
    self.setupBaseModel(obj, models)
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 190, in setupBaseModel
    model.addObjects([createModelResourceClone(obj, base) for base in models])
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 190, in <listcomp>
    model.addObjects([createModelResourceClone(obj, base) for base in models])
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 98, in createModelResourceClone
    return createResourceClone(obj, orig, 'Model', 'BaseGeometry')
18:08:01    File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 84, in createResourceClone
    clone = Draft.clone(orig)
18:08:01    File "/usr/share/freecad-daily/Mod/Draft/draftmake/make_clone.py", line 111, in make_clone
    cl.addExtension("Part::AttachExtensionPython")
18:08:01  TypeError: function takes exactly 2 arguments (1 given)
The screenshot is here:
Image

My directory tree in /usr/lib/freecad-daily/Mod/Path/

Code: Select all

tloudev@stodolar /usr/lib/freecad-daily/Mod/Path $ tree
.
├── Data
│   └── Threads
│       ├── imperial-internal.csv
│       └── metric-internal.csv
├── Images
│   ├── Ops
│   │   └── chamfer.svg
│   └── Tools
│       ├── drill.svg
│       ├── endmill.svg
│       └── v-bit.svg
├── InitGui.py
├── Init.py
├── PathCommands.py
├── PathScripts
│   ├── __init__.py
│   ├── PathAdaptiveGui.py
│   ├── PathAdaptive.py
│   ├── PathAreaOp.py
│   ├── PathArray.py
│   ├── PathCircularHoleBaseGui.py
│   ├── PathCircularHoleBase.py
│   ├── PathCommands.py
│   ├── PathComment.py
│   ├── PathCopy.py
│   ├── PathCustomGui.py
│   ├── PathCustom.py
│   ├── PathDeburrGui.py
│   ├── PathDeburr.py
│   ├── PathDressupAxisMap.py
│   ├── PathDressupDogbone.py
│   ├── PathDressupDragknife.py
│   ├── PathDressupHoldingTags.py
│   ├── PathDressupLeadInOut.py
│   ├── PathDressupPathBoundaryGui.py
│   ├── PathDressupPathBoundary.py
│   ├── PathDressup.py
│   ├── PathDressupRampEntry.py
│   ├── PathDressupTagGui.py
│   ├── PathDressupTagPreferences.py
│   ├── PathDressupTag.py
│   ├── PathDressupZCorrect.py
│   ├── PathDrillingGui.py
│   ├── PathDrilling.py
│   ├── PathEngraveBase.py
│   ├── PathEngraveGui.py
│   ├── PathEngrave.py
│   ├── PathFixture.py
│   ├── PathGeom.py
│   ├── PathGetPoint.py
│   ├── PathGuiInit.py
│   ├── PathGui.py
│   ├── PathHelixGui.py
│   ├── PathHelix.py
│   ├── PathHop.py
│   ├── PathIconViewProvider.py
│   ├── PathInspect.py
│   ├── PathJobCmd.py
│   ├── PathJobDlg.py
│   ├── PathJobGui.py
│   ├── PathJob.py
│   ├── PathLog.py
│   ├── PathMillFaceGui.py
│   ├── PathMillFace.py
│   ├── PathOpGui.py
│   ├── PathOp.py
│   ├── PathOpTools.py
│   ├── PathPocketBaseGui.py
│   ├── PathPocketBase.py
│   ├── PathPocketGui.py
│   ├── PathPocket.py
│   ├── PathPocketShapeGui.py
│   ├── PathPocketShape.py
│   ├── PathPostProcessor.py
│   ├── PathPost.py
│   ├── PathPreferencesAdvanced.py
│   ├── PathPreferencesPathDressup.py
│   ├── PathPreferencesPathJob.py
│   ├── PathPreferences.py
│   ├── PathProbeGui.py
│   ├── PathProbe.py
│   ├── PathProfileContourGui.py
│   ├── PathProfileContour.py
│   ├── PathProfileEdgesGui.py
│   ├── PathProfileEdges.py
│   ├── PathProfileFacesGui.py
│   ├── PathProfileFaces.py
│   ├── PathProfileGui.py
│   ├── PathProfile.py
│   ├── PathPropertyBagGui.py
│   ├── PathPropertyBag.py
│   ├── PathPropertyEditor.py
│   ├── PathProperty.py
│   ├── PathSanity.py
│   ├── PathSelection.py
│   ├── PathSetupSheetGui.py
│   ├── PathSetupSheetOpPrototypeGui.py
│   ├── PathSetupSheetOpPrototype.py
│   ├── PathSetupSheet.py
│   ├── PathSimpleCopy.py
│   ├── PathSimulatorGui.py
│   ├── PathSlotGui.py
│   ├── PathSlot.py
│   ├── PathStock.py
│   ├── PathStop.py
│   ├── PathSurfaceGui.py
│   ├── PathSurface.py
│   ├── PathSurfaceSupport.py
│   ├── PathThreadMillingGui.py
│   ├── PathThreadMilling.py
│   ├── PathToolBitCmd.py
│   ├── PathToolBitEdit.py
│   ├── PathToolBitGui.py
│   ├── PathToolBitLibraryCmd.py
│   ├── PathToolBitLibraryGui.py
│   ├── PathToolBit.py
│   ├── PathToolControllerGui.py
│   ├── PathToolController.py
│   ├── PathToolEdit.py
│   ├── PathToolLibraryEditor.py
│   ├── PathToolLibraryManager.py
│   ├── PathUtil.py
│   ├── PathUtilsGui.py
│   ├── PathUtils.py
│   ├── PathVcarveGui.py
│   ├── PathVcarve.py
│   ├── PathWaterlineGui.py
│   ├── PathWaterline.py
│   ├── post
│   │   ├── centroid_post.py
│   │   ├── comparams_post.py
│   │   ├── dxf_post.py
│   │   ├── dynapath_post.py
│   │   ├── example_pre.py
│   │   ├── gcode_pre.py
│   │   ├── grbl_post.py
│   │   ├── __init__.py
│   │   ├── jtech_post.py
│   │   ├── linuxcnc_post.py
│   │   ├── mach3_mach4_post.py
│   │   ├── nccad_post.py
│   │   ├── opensbp_post.py
│   │   ├── opensbp_pre.py
│   │   ├── philips_post.py
│   │   ├── rml_post.py
│   │   ├── slic3r_pre.py
│   │   └── smoothie_post.py
│   └── PostUtils.py
├── PathTests
│   ├── boxtest.fcstd
│   ├── __init__.py
│   ├── PathTestUtils.py
│   ├── test_centroid_00.ngc
│   ├── test_geomop.fcstd
│   ├── test_holes00.fcstd
│   ├── test_linuxcnc_00.ngc
│   ├── TestPathCore.py
│   ├── TestPathDeburr.py
│   ├── TestPathDepthParams.py
│   ├── TestPathDressupDogbone.py
│   ├── TestPathDressupHoldingTags.py
│   ├── TestPathGeom.py
│   ├── TestPathHelix.py
│   ├── TestPathLog.py
│   ├── TestPathOpTools.py
│   ├── TestPathPost.py
│   ├── TestPathPreferences.py
│   ├── TestPathPropertyBag.py
│   ├── TestPathSetupSheet.py
│   ├── TestPathStock.py
│   ├── TestPathThreadMilling.py
│   ├── test-path-tool-bit-bit-00.fctb
│   ├── test-path-tool-bit-library-00.fctl
│   ├── TestPathToolBit.py
│   ├── test-path-tool-bit-shape-00.fcstd
│   ├── TestPathToolController.py
│   ├── TestPathTool.py
│   ├── TestPathTooltable.py
│   ├── TestPathUtil.py
│   ├── TestPathVcarve.py
│   ├── TestPathVoronoi.py
│   └── Tools
│       ├── Bit
│       │   └── test-path-tool-bit-bit-00.fctb
│       ├── Library
│       │   └── test-path-tool-bit-library-00.fctl
│       └── Shape
│           └── test-path-tool-bit-shape-00.fcstd
├── Resources
│   └── icons
│       └── PathWorkbench.svg
├── TestPathApp.py
└── Tools
    ├── Bit
    │   ├── probe.fctb
    │   ├── slittingsaw.fctb
    │   ├── 45degree_chamfer.fctb
    │   ├── 5mm_Drill.fctb
    │   ├── 5mm_Endmill.fctb
    │   ├── 5mm-thread-cutter.fctb
    │   ├── 6mm_Ball_End.fctb
    │   ├── 6mm_Bullnose.fctb
    │   └── 60degree_Vbit.fctb
    ├── Library
    │   └── Default.fctl
    └── Shape
        ├── ballend.fcstd
        ├── bullnose.fcstd
        ├── drill.fcstd
        ├── endmill.fcstd
        ├── chamfer.fcstd
        ├── probe.fcstd
        ├── slittingsaw.fcstd
        ├── thread-mill.fcstd
        └── v-bit.fcstd

18 directories, 197 files
What could be wrong here?
Thank you, O.Pachner
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Problem with PATH workbench

Post by chrisb »

Rather improbable that only this workbench would be corrupted during download. As we haen't seen this on other systems, you can try to reset the configuration with the button in the preferences. Another possibility is to delete your config files or to move them in case you want to restore them. You may even rename your complete .FreeCAD folder, in case some addon is interfering.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
tloudev
Posts: 7
Joined: Sat Apr 10, 2021 4:12 pm

Re: Problem with PATH workbench

Post by tloudev »

after moving user.cfg and system.cfg:

Code: Select all

18:52:48  Cannot find icon: Path_Job
18:52:48  Cannot find icon: Path_Post
18:52:48  Cannot find icon: Path_Inspect
18:52:48  Cannot find icon: Path_Simulator
18:52:48  Cannot find icon: Path_SelectLoop
18:52:48  Cannot find icon: Path_OpActive
18:52:48  Cannot find icon: Path_ToolTable
18:52:48  Cannot find icon: Path_Contour
18:52:48  Cannot find icon: Path_Pocket
18:52:48  Cannot find icon: Path_Drilling
18:52:48  Cannot find icon: Path_Face
18:52:48  Cannot find icon: Path_Helix
18:52:48  Cannot find icon: Path_Adaptive
18:52:48  Cannot find icon: Path_Engrave
18:52:48  Cannot find icon: Path_Deburr
18:52:48  Cannot find icon: Path_Vcarve
18:52:48  Cannot find icon: Path_3DPocket
18:52:48  Cannot find icon: Path_OpCopy
18:52:48  Cannot find icon: Path_Array
18:52:48  Cannot find icon: Path_SimpleCopy
18:52:48  Cannot find icon: Path_ExportTemplate
18:52:48  Cannot find icon: Path_Engrave
18:52:48  Cannot find icon: Path_Deburr
18:52:48  Cannot find icon: Path_Vcarve
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Dressup
18:52:48  Cannot find icon: Path_Datums
18:52:48  Cannot find icon: Path_Comment
18:52:48  Cannot find icon: Path_Stop
18:52:48  Cannot find icon: Path_Custom
18:52:48  Cannot find icon: Path_Probe
tloudev
Posts: 7
Joined: Sat Apr 10, 2021 4:12 pm

Re: Problem with PATH workbench

Post by tloudev »

Same situation after renaming the .FreeCAD folder :-(
tloudev
Posts: 7
Joined: Sat Apr 10, 2021 4:12 pm

Re: Problem with PATH workbench

Post by tloudev »

..After running "Toolbit library editor":

Code: Select all

18:58:46  Running the Python command 'Path_ToolBitLibraryOpen' failed:
Traceback (most recent call last):
  File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathToolBitLibraryCmd.py", line 72, in Activated
    library = PathToolBitLibraryGui.ToolBitLibrary()
  File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathToolBitLibraryGui.py", line 444, in __init__
    self.setupUI()
  File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathToolBitLibraryGui.py", line 683, in setupUI
    self.form.TableList.setModel(self.listModel)

setModel(QAbstractItemModel * model) is a private method.
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Problem with PATH workbench

Post by chrisb »

Do you have more than one Python version installed? Is Draft working properly? That workbench is also written in Python.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Problem with PATH workbench

Post by Kunda1 »

How did you install FC?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply