[SOLVED] Errors with Path Preferences

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
luvtofish
Posts: 83
Joined: Thu Mar 31, 2022 8:45 pm

[SOLVED] Errors with Path Preferences

Post by luvtofish »

Hi all,
I'm curious if anyone else is seeing these errors in Path preferences while clicking on the post processor tab (see below). I've searched the forum and seen one reference to this but no real solution. Oddly, everything seems to work just fine other than these errors. It doesn't seem to matter which post processor I select, the error pops up each time.

Code: Select all

2:35:41  Traceback (most recent call last):
12:35:41    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip
12:35:41      self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "")
12:35:41    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip
12:35:41      processor = self.getPostProcessor(name)
12:35:41    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor
12:35:41      processor = PostProcessor.load(name)
12:35:41  AttributeError: module 'Path.Post.Processor' has no attribute 'load'
12:35:42  Traceback (most recent call last):
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip
12:35:42      self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "")
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip
12:35:42      processor = self.getPostProcessor(name)
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor
12:35:42      processor = PostProcessor.load(name)
12:35:42  AttributeError: module 'Path.Post.Processor' has no attribute 'load'
12:35:42  Traceback (most recent call last):
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip
12:35:42      self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "")
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip
12:35:42      processor = self.getPostProcessor(name)
12:35:42    File "/tmp/.mount_FreeCAS27nPV/usr/Mod/Path/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor
12:35:42      processor = PostProcessor.load(name)
12:35:42  AttributeError: module 'Path.Post.Processor' has no attribute 'load'
Here's the FreeCAD version info:

Code: Select all

[code]
OS: Oracle Linux Server 8.7 (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.21.31109 (Git) AppImage
Build type: Release
Branch: master
Hash: c23ee7ad88433a0f00e84afae0a62fe738be0c09
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Help 1.0.3
[/code]
Last edited by luvtofish on Fri Dec 09, 2022 3:51 am, edited 4 times in total.
User avatar
luvtofish
Posts: 83
Joined: Thu Mar 31, 2022 8:45 pm

Re: Errors with Path Preferences

Post by luvtofish »

Problem identified. The error has to do with the need to modify an import statement in PreferencesJob.py. @LarryWoestman identified the problem and will be submitting a PR. Thanks Larry.
Post Reply