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

 
 

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

Submitted by:  Nic Debusschere <ndbussch>
Submitted on:  Tue 17 Nov 2015 03:20:13 PM UTC  
 
Category: InstallSeverity: 3 - Normal
Item Group: Functionality errorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 May 2016 07:42:23 AM UTCbverhegStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1