material editor problem

A forum to discuss the implementation of a good Materials system in FreeCAD
User avatar
waebbl
Posts: 81
Joined: Thu Aug 16, 2018 3:12 pm

material editor problem

Postby waebbl » Sat Oct 27, 2018 1:57 pm

Hello, I'm getting an exception when I select any of the material cards:

Code: Select all

locations to look for material cards:
  /usr/share/freecad/data/Mod/Material/StandardMaterial
  /home/waebbl/.FreeCAD/Material


Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/Material/MaterialEditor.py", line 181, in updateContents
    d = importFCMat.read(self.cards[k])
  File "/usr/lib64/freecad/Mod/Material/importFCMat.py", line 87, in read
    f = pythonopen(filename)
NameError: name 'pythonopen' is not defined
The build is about a week old (compiled 21 October, Release date from Help->About says 19 October), so this might already be addressed, although I didn't find anything in the forum or the tracker.

Steps to reproduce:
  1. Change to FEM workbench
  2. Create a new document
  3. Select Model->Materials->Material editor
  4. Select any of the material cards from the drop down menu
OS: Gentoo/Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14996 (Git)
Build type: Release
Branch: master
Hash: c950d1f093c6e1e846ac5fd5806646ab69adbfbe
Python version: 3.6.5
Qt version: 5.11.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
User avatar
yorik
Site Admin
Posts: 10191
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: material editor problem

Postby yorik » Sat Oct 27, 2018 7:07 pm

cron