Currently renders FreeCAD unusable on py2 build.
I just tried to add a new tool ( 14 were already defined ). I filled in all the fields and pressed OK.
Several lines of red errors appeared in the report view, the last one something about Unicode and not being able to get a result. I cleared the report window and went around again to see what may be wrong with the new tool.
Surprise !! No tools at all . Blank.
I closed project file without saving and reopened , hoping to find the previous tools. Zip. I opened an older backup of the file : same result. No tools!
It looks like I still have the currently used tools in the FCStd but the toolmanager does not even have those one left. My backups of FCStd files are not sufficient. This presumably is ( was ) in home directory.
I find this on console:
Code: Select all
Traceback (most recent call last):
File "/~/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryEditor.py", line 110, in addTool
self.TLM.addnew(listname, editor.Tool)
File "/~/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 457, in addnew
self.saveMainLibrary()
File "/~/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 308, in saveMainLibrary
self.loadToolTables()
File "/~/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 298, in loadToolTables
tt = self.tooltableFromAttrs(table)
File "/~/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 252, in tooltableFromAttrs
tt.Name = stringattrs.get('TableName')
TypeError: cannot return std::string from Unicode object
What files do I need to back up home dir?
If I now try to add a new tool table using the "+" icon I get the same errors shown above.
Now if I go to Path | Toolmanger, I don't even get the GUI and it spews errors in report window:
Code: Select all
Path workbench activated
Running the Python command 'Path_ToolLibraryEdit' failed:
Traceback (most recent call last):
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryEditor.py", line 460, in Activated
self.edit()
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryEditor.py", line 442, in edit
editor = EditorPanel(job, cb)
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryEditor.py", line 48, in __init__
self.TLM = ToolLibraryManager.ToolLibraryManager()
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 158, in __init__
self.loadToolTables()
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 298, in loadToolTables
tt = self.tooltableFromAttrs(table)
File "/svn/freecad19-master-build/Mod/Path/PathScripts/PathToolLibraryManager.py", line 252, in tooltableFromAttrs
tt.Name = stringattrs.get('TableName')
cannot return std::string from Unicode object
TIA.
OS: Linux (LXDE/LXDE)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18272 (Git)
Build type: Unknown
Branch: master
Hash: 88637aeb202b481a16cbd82c8767a0cc2745cfe1
Python version: 2.7.16
Qt version: 4.8.7
same happening of fresh pull of master.
Looks like more py3 stuff not tested on py2.