-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.0 Bughunt] CAM - Prefs massive errors output #114
Comments
I'm unable to duplicate the problem. However, I saw something very similar under specific conditions. I had my macro path pointing to another directory on the system. I had some old experimental posts in that directory. The path preference system looks for valid post processors in several places including the macro directory. Is it possible you have old stale post processors someplace in the search path? I'm going to close the issue since I can't duplicate it but will reopen if we can find a reproducible case. |
Thanks for looking at this. Your feedback gave me clues and I think the issue is not as I described, but actually triggered by mouse over the post processor list in prefs. First up apologies as I only tested this in FreeCAD & forgot to test under Ondsel, which as you noted does not show this error. In FreeCAD, the error appears to be due to missing Mouse over the post processor list in prefs triggers setPostProcessorTooltip, which calls getPostProcessor and then attempts: But load(name) no longer exists (did check FC 19 where still was present), guess recent postprocess or Path to CAM refactoring removed this.
I am open to your suggestions on next steps - eg raise issue in FreeCAD, but was looking for your feedback and especially to see if there are other differences between Ondsel and FreeCAD (both recent weekly dev versions), that might need followup. |
Issue also in:
|
confirmed. |
The refactored postprocessor system uses a factory to load scripts. The preference system has logic to load the scripts to get the tooltips That logic was overlooked during the refactor. Added it here.
merged |
The refactored postprocessor system uses a factory to load scripts. The preference system has logic to load the scripts to get the tooltips That logic was overlooked during the refactor. Added it here.
Is there an existing issue for this?
Problem description
Attempting to Edit - Prefs - CAM - Job Prefs - Post Processor and clicking in any edit field produces large error report.\
That's all, no actual changes to prefs, although errors seem to take a few seconds to show.
Drop down does not seem to trigger.
There might be other ways to trigger, not sure, but above seems reliable way to trigger errors.
08:59:36 Migrating Start Workbench to Start command... done. 09:00:28 Traceback (most recent call last): 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:28 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:28 processor = self.getPostProcessor(name) 09:00:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:28 processor = PostProcessor.load(name) 09:00:28 ^^^^^^^^^^^^^^^^^^ 09:00:28 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:28 Traceback (most recent call last): 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:28 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:28 processor = self.getPostProcessor(name) 09:00:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:28 processor = PostProcessor.load(name) 09:00:28 ^^^^^^^^^^^^^^^^^^ 09:00:28 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:28 Traceback (most recent call last): 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:28 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:28 processor = self.getPostProcessor(name) 09:00:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:28 processor = PostProcessor.load(name) 09:00:28 ^^^^^^^^^^^^^^^^^^ 09:00:28 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:28 Traceback (most recent call last): 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:28 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:28 processor = self.getPostProcessor(name) 09:00:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:28 processor = PostProcessor.load(name) 09:00:28 ^^^^^^^^^^^^^^^^^^ 09:00:28 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:28 Traceback (most recent call last): 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:28 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:28 processor = self.getPostProcessor(name) 09:00:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:28 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:28 processor = PostProcessor.load(name) 09:00:28 ^^^^^^^^^^^^^^^^^^ 09:00:28 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:29 Traceback (most recent call last): 09:00:29 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:29 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:29 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:29 processor = self.getPostProcessor(name) 09:00:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:29 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:29 processor = PostProcessor.load(name) 09:00:29 ^^^^^^^^^^^^^^^^^^ 09:00:29 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:30 Traceback (most recent call last): 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:30 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:30 processor = self.getPostProcessor(name) 09:00:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:30 processor = PostProcessor.load(name) 09:00:30 ^^^^^^^^^^^^^^^^^^ 09:00:30 AttributeError: type object 'PostProcessor' has no attribute 'load' 09:00:30 Traceback (most recent call last): 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 346, in setProcessorListTooltip 09:00:30 self.setPostProcessorTooltip(self.form.postProcessorList, item.text(), "") 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 339, in setPostProcessorTooltip 09:00:30 processor = self.getPostProcessor(name) 09:00:30 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:00:30 File "/tmp/.mount_FreeCAyYeRI5/usr/Mod/CAM/Path/Main/Gui/PreferencesJob.py", line 333, in getPostProcessor 09:00:30 processor = PostProcessor.load(name) 09:00:30 ^^^^^^^^^^^^^^^^^^ 09:00:30 AttributeError: type object 'PostProcessor' has no attribute 'load'
Full version info
Subproject(s) affected?
CAM/Path
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: