Code: Select all
Config.read(fileName, encoding='utf-8') # respect unicode filenames
Code: Select all
This mat card reader is probably deprecated and not widely used in FreeCAD. See comment in Material.py module.
Traceback (most recent call last):
File "/home/tkcook/.FreeCAD/Mod/CfdOF/CfdFluidMaterial.py", line 174, in setEdit
taskd = _TaskPanelCfdFluidProperties.TaskPanelCfdFluidProperties(self.Object, physics_model)
File "/home/tkcook/.FreeCAD/Mod/CfdOF/_TaskPanelCfdFluidProperties.py", line 62, in __init__
self.import_materials()
File "/home/tkcook/.FreeCAD/Mod/CfdOF/_TaskPanelCfdFluidProperties.py", line 140, in import_materials
self.add_mat_dir(system_mat_dir, ":/icons/freecad.svg")
File "/home/tkcook/.FreeCAD/Mod/CfdOF/_TaskPanelCfdFluidProperties.py", line 123, in add_mat_dir
self.materials[a_path] = Material.importFCMat(a_path)
File "/home/tkcook/git/free-cad-build/Mod/Material/Material.py", line 73, in importFCMat
Config.read(fileName, encoding='utf-8') # respect unicode filenames
<type 'exceptions.TypeError'>: read() got an unexpected keyword argument 'encoding'
Code: Select all
OS: Ubuntu 18.04.2 LTS (GNOME/gnome-xorg)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17178 (Git)
Build type: Debug
Branch: master
Hash: 3132dfbf542ff54af4a6e688422373690d4c57f8
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)