From: Chris B. <bu...@hv...> - 2002-10-04 17:14:43
|
Greetings. I've just started using VPython on a linux box and got completely hooked and started dreaming up all these great demos that would be possible. The problem is that we're on a Mac campus, so I needed to get Vpython running on OSX. I followed the instructions and everything seemed fine until I ran the demo programs. In any of the demos where there is animation (double pendulum, Lorenz, etc), the program bombs at some point (not always the same) with a message like: Traceback (most recent call last): File "doublependulum.py", line 71, in ? atheta2 = -(A*atheta1+C*sin(theta1))/B ValueError: unexpected math error The programs can bomb at different locations (there seems to be no pattern that I can see). Sometimes, the demo will run for 15-20 seconds before quitting, sometimes shorter. The real crazy thing is if I put a trace statement just before the offending line and print out the values to the screen, it doesn't bomb for a VERY long time (half-hour or so), though it slows down the animation. It then finally bombs with the following message: OverflowError: (35, 'Resource temporarily unavailable') Which seems different than the previous one. Needless to say, none of this happens in Linux, which makes it doubly frustrating, since I know it works, I just can't show anyone. I haven't had time to really try and debug this, so I was just wondering if anyone's come accross this and fixed it (I didn't see any mention in the email archives though). Thanks for any help. Chris -- Chris Burns Visiting Assistant Professor Dept. of physics and astronomy, Swarthmore College cb...@sw... http://hven.swarthmore.edu/~burns |