
You can now restart FreeCAD directly from the addons manager, after installing a workbench/module.
If it's the number as in 0.19.16808, then it's the revision number.
YES!
Code: Select all
Running the Python command 'Std_AddonMgr' failed:
Traceback (most recent call last):
File "C:\FC.19\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\Mod\AddonManager\AddonManagerGui.py", line 10, in Activated
import AddonManager
('invalid syntax', ('C:\\FC.19\\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\\Mod\\AddonManager\\AddonManager.py', 306, 28, ' ret = m.exec()\n'))
Try changing line 306 in AddonManager.py from:hammax wrote: ↑Wed May 22, 2019 6:03 am… I just have downloaded
FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????Code: Select all
Running the Python command 'Std_AddonMgr' failed: Traceback (most recent call last): File "C:\FC.19\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\Mod\AddonManager\AddonManagerGui.py", line 10, in Activated import AddonManager ('invalid syntax', ('C:\\FC.19\\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\\Mod\\AddonManager\\AddonManager.py', 306, 28, ' ret = m.exec()\n'))
Code: Select all
ret = m.exec()
Code: Select all
ret = m.exec_()
One risky issue:
exec is a built-in function in Py3 but seems to be a keyword in Py2. So, using it to show a QDialog works with Py3 but raises a syntax error in Py2. Although Py3 is now the default Python version since v0.19 I think it would still be good to make it working with Py2.FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????
It's not only risky wrt data loss but it also makes the application crash. I created a document and added a body feature and after installing a plugin I confirmed to restart FreeCAD. The new instance started but the old instance caused a crash.One risky issue:
If you have started a new design or you have modified one, and then you run the Addon Manager, clicking OK to restart FreeCAD will skip the check to Save your work, before restarting FreeCAD. Any changes will be lost without even a rescue option.
(tested with FreeCAD_0.19.16817_x64_LP_12.1.2_PY3QT5-WinVS2015)
Code: Select all
if Gui.getMainWindow().close():
QtCore.QProcess.startDetached(QtGui.QApplication.applicationFilePath(),args)