FreeCAD-addons icon indicating copy to clipboard operation
FreeCAD-addons copied to clipboard

Presence of obsolete Assembly2 addon on local machine will break Addon Manager

Open luzpaz opened this issue 3 years ago • 3 comments

OK, just had the same issue in the latest stable 0.19 release. Running freecad from a terminal revealed an error in one of the workbench files.

This is the error.: During initialization the error "invalid syntax (assembly2lib.py, line 59)" occurred in /home/tony/.FreeCAD Mod/FreeCAD_assembly2/InitGui.py

Deleting the offending folder (/home/tony/.FreeCAD Mod/FreeCAD_assembly2) solved the issue. It was probably a leftover from 0.18, but Addon manager really should be able to step over issues like this and just flag the workbench as faulty.

Originally posted by @ozzyman in https://github.com/FreeCAD/FreeCAD-addons/issues/176#issuecomment-851201668

luzpaz avatar Jun 07 '21 13:06 luzpaz

We should then have a conditional check to ascertain if offending addons like this are present and notifying the user how do they wish to proceed.

luzpaz avatar Jun 07 '21 13:06 luzpaz

It should be straightforward for Addon Manager to check if an obsolete or Py2 addon is installed (in fact, with the new Addon Manager it is already doing so, it just doesn't take action). We should discuss on the forum what an appropriate course of action is in this case.

chennes avatar Jan 01 '22 04:01 chennes

Mostly as a note to myself so I remember: this isn't really anything to do with Addon Manager. FreeCAD should wrap workbench init in a try block and provide some useful feedback, as well as do something like offer to uninstall the offending workbench.

chennes avatar Feb 13 '22 14:02 chennes