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 |
From: Bruce S. <bas...@un...> - 2002-10-04 17:20:04
|
This is definitely unknown behavior. Several people (including me) have run all the demos on OSX without seeing these symptoms. If you can, you might try installing on a different Mac to see whether there's something odd with the particular machine you used first. Bruce Sherwood ----- Original Message ----- From: "Chris Burns" <bu...@hv...> To: <vis...@li...> Sent: Friday, October 04, 2002 1:14 PM Subject: [Visualpython-users] Errors running Vpython on OSX > 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 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Kevin C. <kj...@gr...> - 2002-10-04 19:33:56
|
I had VPython working fine on my 7.2 system, but had a few minor glitches getting it going on the RH 8.0 Beta after returning from the Tech Circus last weekend. In my case, the fixes (after downloading the latest and greatest from vpython.org) were: 1) Make sure C++ is installed. (As I recall, in 8.0, the package name changes from "gcc-c++" to "gcc-cpp" but I won't swear to it. You can check w/ the command "rpm -q gcc-cpp" and/or "rpm -q gcc-c++" assuming you've installed it using RPM.) 2) Get the Mandrake Numeric RPM. Pretty current, and it installs no fuss, no muss. 3) As the documentation suggests, make sure you know where all your python stuff lives. Red Hat doesn't put any of it in /usr/local. So rip "/local" out wherever you see it. (I can't recall, but I think there was somewhere that I had to remove it that wasn't mentioned in the documentation. 4) In my case, I had to change cvisual/CXX/CXX_Config.h, as suggested by the README.htm in that directory -- though I was a bit surprised, considering the date mentioned: ================================================================ Version 3 (June 18, 1999) 1. CXX compiles with EGCS snapshot 19990616. EGCS requires a standard library class random_access_iterator that is not yet available in some other compilers (such as Windows VC6). Therefore a new switch: STANDARD_LIBRARY_HAS_ITERATOR_TRAITS has been added to CXX_Config.h that you may need to toggle if you get an error on the two lines that mention random_access_iterator. The current definition is correct for VC6 and EGCS-19990616. ================================================================ Hope this isn't redundant information (or worse yet, incorrect info.) In any case, it wasn't working til I got all of the above done, and now it seems fine. -- Kevin Cole, RHCE, Linux Admin | Key ID: 0xE6F332C7 Gallaudet Research Institute | WWW: http://gri.gallaudet.edu/~kjcole/ Hall Memorial Bldg S-419 | Voice: (202) 651-5135 Washington, D.C. 20002-3695 | FAX: (202) 651-5746 |
From: Bruce S. <bas...@un...> - 2002-10-04 20:00:49
|
Many thanks! I should put this on the VPython site. Bruce Sherwood ----- Original Message ----- From: "Kevin Cole" <kj...@gr...> To: <vis...@li...> Sent: Friday, October 04, 2002 3:33 PM Subject: [Visualpython-users] Small note to RH 8.0 users. > > I had VPython working fine on my 7.2 system, but had a few minor > glitches getting it going on the RH 8.0 Beta after returning from the > Tech Circus last weekend. In my case, the fixes (after downloading > the latest and greatest from vpython.org) were: > > 1) Make sure C++ is installed. (As I recall, in 8.0, the package name > changes from "gcc-c++" to "gcc-cpp" but I won't swear to it. You > can check w/ the command "rpm -q gcc-cpp" and/or "rpm -q gcc-c++" > assuming you've installed it using RPM.) > 2) Get the Mandrake Numeric RPM. Pretty current, and it installs no > fuss, no muss. > 3) As the documentation suggests, make sure you know where all your > python stuff lives. Red Hat doesn't put any of it in /usr/local. > So rip "/local" out wherever you see it. (I can't recall, but > I think there was somewhere that I had to remove it that wasn't > mentioned in the documentation. > 4) In my case, I had to change cvisual/CXX/CXX_Config.h, as suggested > by the README.htm in that directory -- though I was a bit surprised, > considering the date mentioned: > > ================================================================ > Version 3 (June 18, 1999) > > 1. CXX compiles with EGCS snapshot 19990616. EGCS requires a > standard library class random_access_iterator that is not > yet available in some other compilers (such as Windows VC6). > Therefore a new switch: > > STANDARD_LIBRARY_HAS_ITERATOR_TRAITS > > has been added to CXX_Config.h that you may need to toggle > if you get an error on the two lines that mention > random_access_iterator. The current definition is correct > for VC6 and EGCS-19990616. > ================================================================ > > Hope this isn't redundant information (or worse yet, incorrect info.) > In any case, it wasn't working til I got all of the above done, and > now it seems fine. > > -- > Kevin Cole, RHCE, Linux Admin | Key ID: 0xE6F332C7 > Gallaudet Research Institute | WWW: http://gri.gallaudet.edu/~kjcole/ > Hall Memorial Bldg S-419 | Voice: (202) 651-5135 > Washington, D.C. 20002-3695 | FAX: (202) 651-5746 > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Andy D. <dou...@la...> - 2002-10-04 17:32:49
|
On Fri, 4 Oct 2002, Chris Burns wrote: > 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 One vague possibility: Are you perhaps getting very large theta1 values here? Although theoretically the trig functions ought to work fine and automatically take the appropriate mod 2pi, in practice they might not. (I vaguely recall encountering that problem somewhere in some language, but I no longer recall the details.) -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |
From: Bruce S. <bas...@un...> - 2002-10-04 18:45:07
|
This vague possibility would seem to be ruled out by the fact that these programs run on other people's Mac OSX machines, with presumably the same math libraries, no? Bruce Sherwood ----- Original Message ----- From: "Andy Dougherty" <dou...@la...> To: <cb...@sw...> Cc: <vis...@li...> Sent: Friday, October 04, 2002 1:33 PM Subject: Re: [Visualpython-users] Errors running Vpython on OSX > On Fri, 4 Oct 2002, Chris Burns wrote: > > > 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 > > One vague possibility: Are you perhaps getting very large theta1 values > here? Although theoretically the trig functions ought to work fine and > automatically take the appropriate mod 2pi, in practice they might not. (I > vaguely recall encountering that problem somewhere in some language, but I > no longer recall the details.) > > -- > Andy Dougherty dou...@la... > Dept. of Physics > Lafayette College, Easton PA 18042 > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Andy D. <dou...@la...> - 2002-10-04 19:19:57
|
On Fri, 4 Oct 2002, Bruce Sherwood wrote: > This vague possibility would seem to be ruled out by the fact that these > programs run on other people's Mac OSX machines, with presumably the same > math libraries, no? Not quite, unless I've misunderstood the original poster's question. Yes, Vpython runs fine on other people's Mac OS X machines, but I'm unclear if this particular script runs fine on other people's Mac OS X machines. > > > Traceback (most recent call last): > > > File "doublependulum.py", line 71, in ? > > > atheta2 = -(A*atheta1+C*sin(theta1))/B > > > ValueError: unexpected math error What I'm imagining is that the user is simulating a (possibly damped, driven) double pendulum that might have swung over many many times, so that theta1 and/or theta2 might be very large compared to 2 pi. That's the sort of thing I've seen eventually lead to odd problems elsewhere. Perhaps if the original script were posted, others could test it. -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |
From: Bruce S. <bas...@un...> - 2002-10-04 19:57:15
|
doublependulum.py is part of the standard VPython demo suite. All the demos work on other OSX machines. Bruce Sherwood ----- Original Message ----- From: "Andy Dougherty" <dou...@la...> To: "Bruce Sherwood" <bas...@un...> Cc: "Andy Dougherty" <dou...@ma...>; <cb...@sw...>; <vis...@li...> Sent: Friday, October 04, 2002 3:20 PM Subject: Re: [Visualpython-users] Errors running Vpython on OSX > On Fri, 4 Oct 2002, Bruce Sherwood wrote: > > > This vague possibility would seem to be ruled out by the fact that these > > programs run on other people's Mac OSX machines, with presumably the same > > math libraries, no? > > Not quite, unless I've misunderstood the original poster's question. > Yes, Vpython runs fine on other people's Mac OS X machines, but I'm > unclear if this particular script runs fine on other people's Mac OS X > machines. > > > > > Traceback (most recent call last): > > > > File "doublependulum.py", line 71, in ? > > > > atheta2 = -(A*atheta1+C*sin(theta1))/B > > > > ValueError: unexpected math error > > What I'm imagining is that the user is simulating a (possibly damped, > driven) double pendulum that might have swung over many many times, so > that theta1 and/or theta2 might be very large compared to 2 pi. That's > the sort of thing I've seen eventually lead to odd problems elsewhere. > > Perhaps if the original script were posted, others could test it. > > -- > Andy Dougherty dou...@la... > Dept. of Physics > Lafayette College, Easton PA 18042 > > |
From: Chris B. <bu...@hv...> - 2002-10-04 21:20:11
|
Hi all. Thanks for the quick reply! To clarify, the script I ran was the standard doublependulum.py that ships with the software. It works fine on my Linux computer (as well as other scripts I've written). I've tried installing VPython on two seperate Macs and get the same behaviour on both. Details: - Mac OSX 10.1.5 - python 2.2.1 installed using fink version 0.4.1 - Installed VPython (Visual-2002-07-22) using the install script Regarding the theta1 suggestion, the script sometimes bombs even before the pendulum completes an oscillation, so I don't think it's a problem with theta becoming too large. It does seem to have something to do with the number of computations, though. I wrote a double-pendulum of my own with Runga-Kutta and it consistently dies more quickly. Unfortunately, I don't maintain the Mac's, I just installed fink to get python working, so I don't know if there might be some esoteric software that might interfere. But fink seems to make its own little world below /sw, so I don't see how there could be a conflict. I also tried installing python from source (ie., not using fink) and I get the same problem. Chris > doublependulum.py is part of the standard VPython demo suite. All the demos > work on other OSX machines. > > Bruce Sherwood > > ----- Original Message ----- > From: "Andy Dougherty" <dou...@la...> > To: "Bruce Sherwood" <bas...@un...> > Cc: "Andy Dougherty" <dou...@ma...>; > <cb...@sw...>; <vis...@li...> > Sent: Friday, October 04, 2002 3:20 PM > Subject: Re: [Visualpython-users] Errors running Vpython on OSX > > > > On Fri, 4 Oct 2002, Bruce Sherwood wrote: > > > > > This vague possibility would seem to be ruled out by the fact that these > > > programs run on other people's Mac OSX machines, with presumably the > same > > > math libraries, no? > > > > Not quite, unless I've misunderstood the original poster's question. > > Yes, Vpython runs fine on other people's Mac OS X machines, but I'm > > unclear if this particular script runs fine on other people's Mac OS X > > machines. > > > > > > > Traceback (most recent call last): > > > > > File "doublependulum.py", line 71, in ? > > > > > atheta2 = -(A*atheta1+C*sin(theta1))/B > > > > > ValueError: unexpected math error > > > > What I'm imagining is that the user is simulating a (possibly damped, > > driven) double pendulum that might have swung over many many times, so > > that theta1 and/or theta2 might be very large compared to 2 pi. That's > > the sort of thing I've seen eventually lead to odd problems elsewhere. > > > > Perhaps if the original script were posted, others could test it. > > > > -- > > Andy Dougherty dou...@la... > > Dept. of Physics > > Lafayette College, Easton PA 18042 > > > > > > |
From: Steve S. <st...@sp...> - 2002-10-05 13:07:05
|
This sounds like the problem I saw when trying to run outside the Idle environment. Are you running inside Idle? -steve On Friday, October 4, 2002, at 04:19 PM, Chris Burns wrote: > Hi all. > > Thanks for the quick reply! To clarify, the script I ran was the > standard > doublependulum.py that ships with the software. It works fine on my > Linux > computer (as well as other scripts I've written). I've tried > installing > VPython on two seperate Macs and get the same behaviour on both. > Details: > > - Mac OSX 10.1.5 > - python 2.2.1 installed using fink version 0.4.1 > - Installed VPython (Visual-2002-07-22) using the install script > > Regarding the theta1 suggestion, the script sometimes bombs even before > the pendulum completes an oscillation, so I don't think it's a problem > with > theta becoming too large. It does seem to have something to do with > the > number of computations, though. I wrote a double-pendulum of my own > with > Runga-Kutta and it consistently dies more quickly. > > Unfortunately, I don't maintain the Mac's, I just installed fink to get > python working, so I don't know if there might be some esoteric > software > that might interfere. But fink seems to make its own little world > below > /sw, so I don't see how there could be a conflict. > > I also tried installing python from source (ie., not using fink) and I > get > the same problem. > > Chris > >> doublependulum.py is part of the standard VPython demo suite. All the >> demos >> work on other OSX machines. >> >> Bruce Sherwood >> >> ----- Original Message ----- >> From: "Andy Dougherty" <dou...@la...> >> To: "Bruce Sherwood" <bas...@un...> >> Cc: "Andy Dougherty" <dou...@ma...>; >> <cb...@sw...>; <vis...@li...> >> Sent: Friday, October 04, 2002 3:20 PM >> Subject: Re: [Visualpython-users] Errors running Vpython on OSX >> >> >>> On Fri, 4 Oct 2002, Bruce Sherwood wrote: >>> >>>> This vague possibility would seem to be ruled out by the fact that >>>> these >>>> programs run on other people's Mac OSX machines, with presumably the >> same >>>> math libraries, no? >>> >>> Not quite, unless I've misunderstood the original poster's question. >>> Yes, Vpython runs fine on other people's Mac OS X machines, but I'm >>> unclear if this particular script runs fine on other people's Mac OS >>> X >>> machines. >>> >>>>>> Traceback (most recent call last): >>>>>> File "doublependulum.py", line 71, in ? >>>>>> atheta2 = -(A*atheta1+C*sin(theta1))/B >>>>>> ValueError: unexpected math error >>> >>> What I'm imagining is that the user is simulating a (possibly damped, >>> driven) double pendulum that might have swung over many many times, >>> so >>> that theta1 and/or theta2 might be very large compared to 2 pi. >>> That's >>> the sort of thing I've seen eventually lead to odd problems >>> elsewhere. >>> >>> Perhaps if the original script were posted, others could test it. >>> >>> -- >>> Andy Dougherty dou...@la... >>> Dept. of Physics >>> Lafayette College, Easton PA 18042 >>> >>> >> >> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Chris B. <bu...@hv...> - 2002-10-07 15:50:15
|
Hi all. > This sounds like the problem I saw when trying to run outside the Idle > environment. Are you running inside Idle? Aha! That's the ticket. It works fine inside idle. I actually tried idle the first time, but it turns out I was using the wrong one. Python comes with it's own idle in /sw/bin (which was first in the path, before /usr/local/bin/idle). Thanks! Now I can show my students all the nifty things we can do. So what's so special about the idle environment? I thought it was just window dressing for the python interpreter. I'm a command-line enthusiast (and I edit my programs in vi), so I prefer just running from the shell, which works fine in Linux. Just curious why OS X is so different. Chris > > -steve > > On Friday, October 4, 2002, at 04:19 PM, Chris Burns wrote: > > > Hi all. > > > > Thanks for the quick reply! To clarify, the script I ran was the > > standard > > doublependulum.py that ships with the software. It works fine on my > > Linux > > computer (as well as other scripts I've written). I've tried > > installing > > VPython on two seperate Macs and get the same behaviour on both. > > Details: > > > > - Mac OSX 10.1.5 > > - python 2.2.1 installed using fink version 0.4.1 > > - Installed VPython (Visual-2002-07-22) using the install script > > > > Regarding the theta1 suggestion, the script sometimes bombs even before > > the pendulum completes an oscillation, so I don't think it's a problem > > with > > theta becoming too large. It does seem to have something to do with > > the > > number of computations, though. I wrote a double-pendulum of my own > > with > > Runga-Kutta and it consistently dies more quickly. > > > > Unfortunately, I don't maintain the Mac's, I just installed fink to get > > python working, so I don't know if there might be some esoteric > > software > > that might interfere. But fink seems to make its own little world > > below > > /sw, so I don't see how there could be a conflict. > > > > I also tried installing python from source (ie., not using fink) and I > > get > > the same problem. > > > > Chris > > > >> doublependulum.py is part of the standard VPython demo suite. All the > >> demos > >> work on other OSX machines. > >> > >> Bruce Sherwood > >> > >> ----- Original Message ----- > >> From: "Andy Dougherty" <dou...@la...> > >> To: "Bruce Sherwood" <bas...@un...> > >> Cc: "Andy Dougherty" <dou...@ma...>; > >> <cb...@sw...>; <vis...@li...> > >> Sent: Friday, October 04, 2002 3:20 PM > >> Subject: Re: [Visualpython-users] Errors running Vpython on OSX > >> > >> > >>> On Fri, 4 Oct 2002, Bruce Sherwood wrote: > >>> > >>>> This vague possibility would seem to be ruled out by the fact that > >>>> these > >>>> programs run on other people's Mac OSX machines, with presumably the > >> same > >>>> math libraries, no? > >>> > >>> Not quite, unless I've misunderstood the original poster's question. > >>> Yes, Vpython runs fine on other people's Mac OS X machines, but I'm > >>> unclear if this particular script runs fine on other people's Mac OS > >>> X > >>> machines. > >>> > >>>>>> Traceback (most recent call last): > >>>>>> File "doublependulum.py", line 71, in ? > >>>>>> atheta2 = -(A*atheta1+C*sin(theta1))/B > >>>>>> ValueError: unexpected math error > >>> > >>> What I'm imagining is that the user is simulating a (possibly damped, > >>> driven) double pendulum that might have swung over many many times, > >>> so > >>> that theta1 and/or theta2 might be very large compared to 2 pi. > >>> That's > >>> the sort of thing I've seen eventually lead to odd problems > >>> elsewhere. > >>> > >>> Perhaps if the original script were posted, others could test it. > >>> > >>> -- > >>> Andy Dougherty dou...@la... > >>> Dept. of Physics > >>> Lafayette College, Easton PA 18042 > >>> > >>> > >> > >> > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Bruce S. <bas...@un...> - 2002-10-07 17:08:29
|
I vaguely remember Steve Spicklemire finding an arcane problem with the Numeric module on Mac OSX, that was never resolved and which sounds somewhat related. Obviously the run environment shouldn't matter. Steve, do you think there's some kind of connection here? Bruce ----- Original Message ----- From: "Chris Burns" <bu...@hv...> To: "Steve Spicklemire" <st...@sp...> Cc: <vis...@li...> Sent: Monday, October 07, 2002 11:50 AM Subject: Re: [Visualpython-users] Errors running Vpython on OSX > Hi all. > > > This sounds like the problem I saw when trying to run outside the Idle > > environment. Are you running inside Idle? > > Aha! That's the ticket. It works fine inside idle. I actually tried > idle the first time, but it turns out I was using the wrong one. Python > comes with it's own idle in /sw/bin (which was first in the path, before > /usr/local/bin/idle). Thanks! Now I can show my students all the nifty > things we can do. > > So what's so special about the idle environment? I thought it was just > window dressing for the python interpreter. I'm a command-line > enthusiast (and I edit my programs in vi), so I prefer just running from > the shell, which works fine in Linux. Just curious why OS X is so > different. > > Chris |
From: Steve S. <st...@sp...> - 2002-10-07 17:27:23
|
I worked on sorting this out for a bit (I'm sure all my messages are still floating around the numericalpython/python/fink mailing lists.. ), but I didn't have time to actually figure out what was going on. I did find that errno was getting set somehow, but it didn't appear to reflect an actual numerical problem, but rather resolved to 'resource temporarily unavailable". I'm gussing it's something to do with the way idle handles multi-threaded programs, that doesn't work with command line python on its own. But.. it's just a guess! -steve On Monday, October 7, 2002, at 12:12 PM, Bruce Sherwood wrote: > I vaguely remember Steve Spicklemire finding an arcane problem with the > Numeric module on Mac OSX, that was never resolved and which sounds > somewhat > related. Obviously the run environment shouldn't matter. Steve, do you > think > there's some kind of connection here? > > Bruce > > ----- Original Message ----- > From: "Chris Burns" <bu...@hv...> > To: "Steve Spicklemire" <st...@sp...> > Cc: <vis...@li...> > Sent: Monday, October 07, 2002 11:50 AM > Subject: Re: [Visualpython-users] Errors running Vpython on OSX > > >> Hi all. >> >>> This sounds like the problem I saw when trying to run outside the >>> Idle >>> environment. Are you running inside Idle? >> >> Aha! That's the ticket. It works fine inside idle. I actually tried >> idle the first time, but it turns out I was using the wrong one. >> Python >> comes with it's own idle in /sw/bin (which was first in the path, >> before >> /usr/local/bin/idle). Thanks! Now I can show my students all the >> nifty >> things we can do. >> >> So what's so special about the idle environment? I thought it was >> just >> window dressing for the python interpreter. I'm a command-line >> enthusiast (and I edit my programs in vi), so I prefer just running >> from >> the shell, which works fine in Linux. Just curious why OS X is so >> different. >> >> Chris > |
From: jon s. <js...@so...> - 2002-12-15 21:38:30
|
Is there a limit to the capacity of convex? This program causes my computer to reboot(!) when len(numbers) is 8,058. Works fine when len(numbers) is 124. If I change 'convex' to 'curve' the long data set works too. I'm running windows xp home, Visual-2001-12-21. ------------------------------------------------ f=open('test.ach','r') data=f.read() f.close() numbers=data.split()[11:] #trim comments rangenum=range(len(numbers)) for n in rangenum: numbers[n]=int(numbers[n]) if numbers[n] < 0: numbers[n]=0 print len(numbers) from visual import * c=convex(x=rangenum,y=numbers) ------------------------------------------ Jonathan Schull, Ph.D. Sc...@Di... <mailto:Sc...@Di...> http://radio.weblogs.com/0104369/stories/2002/09/24/JonathanSchullOnOnePage. html <http://radio.weblogs.com/0104369/stories/2002/09/24/JonathanSchullOnOnePage .html> 36 Brunswick St., Rochester NY 14607 585-738-6696 cell and v-mail 585-242-9497 landline 978-246-0487 fax ------------------------------------------ |
From: Andy D. <dou...@la...> - 2002-10-05 15:22:11
|
On Fri, 4 Oct 2002, Chris Burns wrote: > Thanks for the quick reply! To clarify, the script I ran was the standard > doublependulum.py that ships with the software. > Regarding the theta1 suggestion, the script sometimes bombs even before > the pendulum completes an oscillation, so I don't think it's a problem with > theta becoming too large. Well, that's where my theory falls to the ground. I was hoping we could take the 'Math Error' message at face value. Rats. -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |