Wed 02 Dec 2015 09:46:17 AM UTC, comment #1:
This bug should be fixed by commit '3dd132d', ie rename the pyformex/pyformex/pyformex.conf to pyformex/pyformex/pyformexrc.
Nevertheless, I found out that by comment out one line in opengl/canvas.py (inside def resetLighting(self),#self.setMaterial(pf.cfg['render/material']) ), pyFormex could start even without this pyformex/pyformex/pyformex.conf
|
Tue 17 Nov 2015 03:20:13 PM UTC, original submission:
Apparently, running pyformex from the terminal will raise a error in the config file when you are in the folder where pyformex is stored.
`Called from:` /home/nic/pyformex/pyformex/trisurface.py `line:` 2512
NO camera, but setting rendermode anyways
Traceback (most recent call last):
File "pyformex/pyformex/pyformex", line 67, in <module>
sys.exit(main.run(sys.argv[1:]))
File "/home/nic/pyformex/pyformex/main.py", line 717, in run
res = guimain.startGUI(args)
File "/home/nic/pyformex/pyformex/gui/guimain.py", line 1420, in startGUI
pf.GUI.viewports.changeLayout(1)
File "/home/nic/pyformex/pyformex/gui/viewport.py", line 1788, in changeLayout
self.addView()
File "/home/nic/pyformex/pyformex/gui/viewport.py", line 1649, in addView
canv = self.newView()
File "/home/nic/pyformex/pyformex/gui/viewport.py", line 1642, in newView
canv = QtCanvas(self.parent, shared, settings=settings)
File "/home/nic/pyformex/pyformex/gui/viewport.py", line 317, in _init_
canvas.Canvas.__init__(self,**kargs)
File "/home/nic/pyformex/pyformex/opengl/canvas.py", line 585, in _init_
self.resetLighting()
File "/home/nic/pyformex/pyformex/opengl/canvas.py", line 632, in resetLighting
self.setMaterial(pf.cfg['render/material'])
File "/home/nic/pyformex/pyformex/opengl/canvas.py", line 626, in setMaterial
self.material = pf.GUI.materials[matname]
KeyError: None
|