When I try to export an OBJ file (such as when uploading to Sketchfab) I get an error like:
At the moment the file is being opened for writing in binary mode. Given OBJ files (as I understand it) are text files is this needed? If I change it to open as a text file it works as expected.
Code: Select all
Traceback (most recent call last): File "~/.FreeCAD/Mod/WebTools/Sketchfab.py", line 220, in upload pack = self.saveFile() File "~/.FreeCAD/Mod/WebTools/Sketchfab.py", line 138, in saveFile importOBJ.export(objects,filename+".obj") File "~/miniconda3/envs/freecad_py37/Mod/Arch/importOBJ.py", line 199, in export outfile.write("# FreeCAD v" + ver + "." + ver + " build" + ver + " Arch module\n") TypeError: a bytes-like object is required, not 'str'
I seem to have an old account for the issue tracker associated with my email address but can't find/remember my username to allow me to reset my password...
OS: elementary OS 5.0 Juno
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14555 (Git shallow)
Build type: Release
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)