Open tomaszn opened 6 months ago
I agree. Will fix with the next update of the plugin.
Hello,
Addon is also not working in FreeCAD 0.22.0dev (rev. 38555, Kubuntu). It is installed, selected, but after trying to use it from toolbar, FC crashes with following message:
Could not find QtWebEngineProcess /tmp/.mount_FreeCA8aVMTT/AppRun: line 41: 326317 Aborted
It works well in 0.21.2 (appimage version)
In FreeCAD rev 38556 (snap edge, Kubuntu 24.04.1)
cannot import name 'QtWebEngineWidgets' from 'PySide2' (/snap/freecad/1121/usr/lib/python3/dist-packages/PySide2/__init__.py)
First of all, thank you for providing and maintaining this useful addon!
The addon currently refuses to start if
int(FreeCAD.Version()[1]) < 19
. Such a version check causes compatibility issues with the Ondsel distribution of FreeCAD, which uses Calendar Versioning (CalVer). Ondsel is a well-mantained distribution of FreeCAD with numerous improvements.For the latest Ondsel,
FreeCAD.Version()
returns:As we can see,
Version()[1]
equals2
, causing the addon to not start even though the required features are present.Steps to Reproduce:
Expected Behavior: The addon should start if the required features are present, regardless of the versioning scheme used by the FreeCAD distribution.
Proposed Solution: Modify the version check to verify the existence of the required features rather than relying on the version number. This change would ensure compatibility with any FreeCAD distribution, including those using alternative versioning schemes like Ondsel.
Workaround: It is possible to install the addon by extracting it into to the
Mod
subdirectory inside the directory pointed to byFreeCAD.ConfigGet("UserAppData")
value, and removing the version checks near the end of the filefreecad/cadenas3dfindit/init_gui.py
.