From: Aaron T. <ti...@ma...> - 2004-05-25 19:35:00
|
ok, I did a clean install of Mac OS 10.3 (Panther). I installed Fink and the necessary programs, including both Python 2.2 and Python 2.3. I installed VPython according to the instructions at vpython.org. Here are my issues: (1) My PATH does not include /sw/bin when running X11. Evidently I need a .xinitrc file that sets the PATH. Any suggestions? Creating a new .xinitrc file crippled X11. (2) In 10.2 (Jaguar), I had a problem running a vpython script that opened a graph in a separate window. I always had to kill the process in order to exit. I thought that this was fixed in the latest vpython; however, when I ran the gas.py demo, I had the same problem trying to close the windows. Finally, it generated this error: Xlib: extension "Apple-DRI" missing on display ":0.0". Xlib: extension "Apple-DRI" missing on display ":0.0". and I had to once again kill the process. (3) Why must we use Python 2.2? I thought that we could use Python 2.3, but expanding the tarball only installs visual in the Python 2.2 folder. Thanks for the help, Aaron |
From: Martin C. <cos...@wa...> - 2004-05-25 21:22:57
|
Aaron Titus wrote: > ok, I did a clean install of Mac OS 10.3 (Panther). > > I installed Fink and the necessary programs, including both Python 2.2 > and Python 2.3. > > I installed VPython according to the instructions at vpython.org. [] > (3) Why must we use Python 2.2? I thought that we could use Python 2.3, > but expanding the tarball only installs visual in the Python 2.2 folder. If you install visual-py23 from Fink, you don't need Python-2.2. Here are the *complete* instructions to install VPython with Fink: 1. Install Fink 2. Tell Fink to install visual-py23, either from binary or from source. Read the Fink documentation how to do this, but it does not take more than either a mouse click in FinkCommander or typing "fink install visual-py23" in a Terminal window. This is all, everything else is taken care of automatically. -- Martin |
From: Aaron T. <ti...@ma...> - 2004-05-26 01:03:44
|
That was very simple! Thank you! I still have a problem with the demo program, gas.py. I cannot close the program. I suspect that I'll have the same problem with any program that instantiates a graph. AT On May 25, 2004, at 5:22 PM, Martin Costabel wrote: > If you install visual-py23 from Fink, you don't need Python-2.2. Here > are the *complete* instructions to install VPython with Fink: > > 1. Install Fink > > 2. Tell Fink to install visual-py23, either from binary or from > source. Read the Fink documentation how to do this, but it does not > take more than either a mouse click in FinkCommander or typing "fink > install visual-py23" in a Terminal window. > > This is all, everything else is taken care of automatically. > > -- > Martin > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Martin C. <cos...@wa...> - 2004-05-26 07:25:21
|
Aaron Titus wrote: > That was very simple! Thank you! > > I still have a problem with the demo program, gas.py. I cannot close the > program. I suspect that I'll have the same problem with any program that > instantiates a graph. I confirm, I have the same problem. No idea where the bug is. -- Martin |
From: Jonathan B. <jbr...@ea...> - 2004-05-26 12:03:42
Attachments:
platlinux.cpp.patch
|
On Wed, 2004-05-26 at 03:25, Martin Costabel wrote: > Aaron Titus wrote: > > > That was very simple! Thank you! > > > > I still have a problem with the demo program, gas.py. I cannot close the > > program. I suspect that I'll have the same problem with any program that > > instantiates a graph. > > I confirm, I have the same problem. No idea where the bug is. Linux and OSX have suffered from this problem for quite a while, but I think that I may have solved it. Please try out this patch and let me know how it works for you. It should be applied to cvisual/platlinux.cpp on the latest 2.1.x release. Thanks, Jonathan Brandmeyer |
From: Martin C. <cos...@wa...> - 2004-05-27 06:34:13
|
Jonathan Brandmeyer wrote: [] > Linux and OSX have suffered from this problem for quite a while, but I > think that I may have solved it. Please try out this patch and let me > know how it works for you. It should be applied to > cvisual/platlinux.cpp on the latest 2.1.x release. This seems to improve the situation (still for the gas.py demo): In most cases, I can now just type ESC in one of the two output windows and it exits cleanly. The problem is that this thing is not completely deterministic: In the old (unpatched) version, most of the time typing ESC in the animation window would close this window but leave the bar-graph window open and the process resistent against Ctrl-C. Even hitting the bar-graph window with xkill would only kill this window, but leave the python process running and unresponsive to Ctrl-C. It had to be killed with kill from another shell. In other cases (without recognizable pattern), upon hitting ESC in the animation window, it would empty that window but not close it and leave both windows unresponsive to attempts to close them. In this case, hitting Ctrl-C 3 times in the console window would kill the process and the windows. With the new (patched) version, most of the time, hitting ESC in one of two output windows closes both and exits the process. Sometimes, it left the windows empty but open and unclosable. But then Ctrl-C worked every time. In any case, the patch is now included in the updated Fink package. -- Martin |