bugpyFormex - Bugs: bug #46464, Starting pyformex from terminal...

 
 

bug #46464: Starting pyformex from terminal fails when in pyformex start up folder

Submitter:  Nic Debusschere <ndbussch>
Submitted:  Tue 17 Nov 2015 03:20:13 PM UTC
   
 
Category:  Install Severity:  3 - Normal
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

gianluca de santis <gianlucadesi>
Group Member
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

Nic Debusschere <ndbussch>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bverheg (Updated the item)
  • -email is unavailable- added by gianlucadesi (Posted a comment)
  • -email is unavailable- added by ndbussch (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-23 bverheg StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code