Complicated Runtime error

Asked by Vincia Jackson

When I open yade it looks like the following: I am attempting to run the code on the site that is called bouncing sphere. I press F12-Load-search-my python file with the named ball.py and after I open it, the terminal has a runtime error. When I go to the generate tab on my controller I am able to press generate and there is a simulation of balls compacting. I don't know why I am not able to run the bouncing sphere example

vincia@ubuntu:~$ yade
Welcome to Yade 0.60.3
TCP python prompt on localhost:9000, auth cookie `ssuade'
XMLRPC info provider on http://localhost:21000

(python:2650): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(python:2650): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(python:2650): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(python:2650): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]: yade.qt.Controller();
Yade [2]: (python:2650): Gtk-DEBUG: No tracker backend available
INFO /build/buildd/yade-0.60.3/core/Omega.cpp:222 loadSimulation: Loading file /home/vincia/yade/examples/ball.py
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)

/usr/lib/yade/py/yade/__init__.pyc in loadSlot(self)
    138 if not f: return # cancelled
    139 self.deactivateControls()
--> 140 O.load(f)
    141 def saveSlot(self):
    142 f=QFileDialog.getSaveFileName(self,'Save simulation','','Yade simulations (*.xml *.xml.bz2 *.xml.gz *.yade *.yade.gz *.yade.bz2);; *.*')

RuntimeError: invalid signature

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Gladky
Solved:
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hello,

I do not have a clear answer to your question, but I'd begin to focus on the several "Gtk" messages you get (which suggest that something goes wrong on this side). I advice you to search some infos about this, on the web in general (for ex http://www.pygtk.org/ ?), and look if this is also used in Yade, and where (I do not know)

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#2

Dear Vincia,
You are not supposed to load scripts by pressing F12. You should consider reading the tutorial more carefully since everything is explained there.

Revision history for this message
Vincia Jackson (vcj2) said :
#3

I got the example to work. I switched from yade-.60.3 to yade daily. The Gtk warning was fixed by installing some feature. It had nothing to do with yade but with python. I got the script to work by copy and pasting the code into yade, pressing F12, hitting play on the simulation tab, and clicking show 3D at the bottom. The two spheres look flat when they are interacting, is this a graphical issue? Will the spheres be perfectly circular in my calculations? What do the numbers on the side of the calculation represent? How do I extract data from this simulation. If anyone can answer any one of my questions this would be a great help!

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#4
Revision history for this message
Vincia Jackson (vcj2) said :
#5

I'm familiar with both links that were posted. However, is there any other material besides the introduction that I can read? My questions remain unanswered. The main questions that I need help figuring out are "What do the numbers on the side of the calculation represent? How do I extract data from this simulation." I am really confused and the introduction has some good information but none that I have ready that is significantly helping me with the questions that I have.

Revision history for this message
Best Anton Gladky (gladky-anton) said :
#6

I would recommend you to have a look at examples-directory of the source.

There are a enough good working examples, they can help you.

Revision history for this message
Vincia Jackson (vcj2) said :
#7

Thank you everyone !

Revision history for this message
Vincia Jackson (vcj2) said :
#8

Thanks Anton Gladky, that solved my question.