From: Kelvin C. <kel...@uv...> - 2003-12-22 18:46:46
|
Below is a link on how to build VPython on MacOSX 10.3 using Python 2.3. http://www.uvm.edu/~kchu/?Page=VPython/ BuildingVPython.html&SM=miscsubmenu.html I built VPython yesterday on a fresh (10.3 eMac) starting completely from scratch. Please let me know how this works for you so that we can refine this process and make it as painless as possible. -k -- Kelvin Chu, Physics Department, Cook Building 82 University Place, University of Vermont, Burlington VT 05405-0125 http://www.uvm.edu/~kchu/; (802) 656-0064; Fax: (802) 656-0817 |
From: Jon S. <js...@so...> - 2003-12-23 01:05:13
|
Good news and bad news #1: First, Kevin's instructions were superbly clear and I was able to follow them without only one hiccup on a non-clean 10.3 system recently upgraded from 10.2. The hitch came here: > fink update-all > [schull-mac:/sw/etc] jis% fink update-all > /usr/bin/sudo /sw/bin/fink update-all > Information about 1185 packages read in 1 seconds. > > fink needs help picking an alternative to satisfy a virtual > dependency. The > candidates: > > (1) pango1-dev: I18N text handling system convinience package > (2) pango1-xft2-dev: I18N text handling system: for XFree86 (>= > 4.3) > > Pick one: [1] 1 > Failed: Can't resolve dependency "glib2 (>= 2.2.3-1)" for package > "libidl2-0.8.2-2" (no matching packages/versions found) Second, they do seem to have built me a fresh python. When I type visual, I now get > Python 2.3.2 (#1, Dec 22 2003, 18:36:41) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin > Type "copyright", "credits" or "license()" for more information. > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > **************************************************************** > > IDLE 1.0 > and it works > >>> print 'hello' > hello > >>> from visual import * > Visual-2003-10-05 however (as formerly under 2.2), I still have an OpenGL problem. > >>> sphere() > OpenGL initialization failed. > Unable to create OpenGL display widget > <Primitive object at 0x62d394> > >>> at the same time stderr writes > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' This is apparently unrelated to Python (but I'd still like help!!), since I can't run glgears either: > Error: couldn't get an RGB, Double-buffered visual any suggestions?? Might the pango / glib2 hiccup be the issue? ------------------ Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology sc...@di... 585-738-6696 On Dec 22, 2003, at 1:46 PM, Kelvin Chu wrote: > Below is a link on how to build VPython on MacOSX 10.3 using Python > 2.3. > > http://www.uvm.edu/~kchu/?Page=VPython/ > BuildingVPython.html&SM=miscsubmenu.html > > I built VPython yesterday on a fresh (10.3 eMac) starting completely > from scratch. Please let me know how this works for you so that we > can refine this process and make it as painless as possible. |
From: Kelvin C. <kel...@uv...> - 2003-12-23 01:44:44
|
I'm no expert, but my machine doesn't have pango installed at all. Therefore, is it there because you've used it for another package? A quick search through the 10.3/stable directory shows that the packages below depend upon pango. I have gtk+ installed, but not gtk+2. habanero[~]% find /sw -name \*.info -print | grep -v unstable | grep 10.3 | xargs grep pango | grep -i depends | cut -d ":" -f 1 /sw/fink/10.3/stable/main/finkinfo/editors/bluefish.info /sw/fink/10.3/stable/main/finkinfo/games/dopewars.info /sw/fink/10.3/stable/main/finkinfo/games/dopewars.info /sw/fink/10.3/stable/main/finkinfo/gnome/gtk+2-2.0.6-4.info /sw/fink/10.3/stable/main/finkinfo/gnome/gtk+2-2.0.6-4.info /sw/fink/10.3/stable/main/finkinfo/gnome/pango1-dev.info /sw/fink/10.3/stable/main/finkinfo/gnome/pango1-shlibs.info /sw/fink/10.3/stable/main/finkinfo/gnome/pango1.info /sw/fink/10.3/stable/main/finkinfo/gnome/pygtk2-py23.info /sw/fink/10.3/stable/main/finkinfo/gnome/pygtk2-py23.info /sw/fink/10.3/stable/main/finkinfo/net/gaim.info /sw/fink/10.3/stable/main/finkinfo/net/pan.info None of them appear to be required for vpython. -k On 22 Dec, 2003, at 8:05 PM, Jon Schull wrote: > Good news and bad news > > #1: First, Kevin's instructions were superbly clear and I was able to > follow them without only one hiccup on a non-clean 10.3 system > recently upgraded from 10.2. > > The hitch came here: >> fink update-all >> [schull-mac:/sw/etc] jis% fink update-all >> /usr/bin/sudo /sw/bin/fink update-all >> Information about 1185 packages read in 1 seconds. >> >> fink needs help picking an alternative to satisfy a virtual >> dependency. The >> candidates: >> >> (1) pango1-dev: I18N text handling system convinience package >> (2) pango1-xft2-dev: I18N text handling system: for XFree86 (>= >> 4.3) >> >> Pick one: [1] 1 >> Failed: Can't resolve dependency "glib2 (>= 2.2.3-1)" for package >> "libidl2-0.8.2-2" (no matching packages/versions found) > > > Second, they do seem to have built me a fresh python. When I type > visual, I now get > >> Python 2.3.2 (#1, Dec 22 2003, 18:36:41) >> [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin >> Type "copyright", "credits" or "license()" for more information. >> >> **************************************************************** >> Personal firewall software may warn about the connection IDLE >> makes to its subprocess using this computer's internal loopback >> interface. This connection is not visible on any external >> interface and no data is sent to or received from the Internet. >> **************************************************************** >> >> IDLE 1.0 >> > > and it works > >> >>> print 'hello' >> hello >> >>> from visual import * >> Visual-2003-10-05 > > however (as formerly under 2.2), I still have an OpenGL problem. > >> >>> sphere() >> OpenGL initialization failed. >> Unable to create OpenGL display widget >> <Primitive object at 0x62d394> >> >>> > > at the same time stderr writes >> Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' > > > This is apparently unrelated to Python (but I'd still like help!!), > since I can't run glgears either: >> Error: couldn't get an RGB, Double-buffered visual > > any suggestions?? Might the pango / glib2 hiccup be the issue? > ------------------ > Jon Schull, Ph.D. > Associate Professor > Information Technology > Rochester Institute of Technology > sc...@di... 585-738-6696 > > > > On Dec 22, 2003, at 1:46 PM, Kelvin Chu wrote: > >> Below is a link on how to build VPython on MacOSX 10.3 using Python >> 2.3. >> >> http://www.uvm.edu/~kchu/?Page=VPython/ >> BuildingVPython.html&SM=miscsubmenu.html >> >> I built VPython yesterday on a fresh (10.3 eMac) starting completely >> from scratch. Please let me know how this works for you so that we >> can refine this process and make it as painless as possible. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > -- Kelvin Chu, Physics Department, Cook Building 82 University Place, University of Vermont, Burlington VT 05405-0125 http://www.uvm.edu/~kchu/; (802) 656-0064; Fax: (802) 656-0817 |
From: Jonathan B. <jbr...@ea...> - 2003-12-23 01:56:19
|
On Mon, 2003-12-22 at 20:05, Jon Schull wrote: > however (as formerly under 2.2), I still have an OpenGL problem. > > > >>> sphere() > > OpenGL initialization failed. > > Unable to create OpenGL display widget > > <Primitive object at 0x62d394> > > >>> > > at the same time stderr writes > > Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkWidget' > > > This is apparently unrelated to Python (but I'd still like help!!), > since I can't run glgears either: > > Error: couldn't get an RGB, Double-buffered visual > > any suggestions?? Might the pango / glib2 hiccup be the issue? No. glxgears doesn't use either pango or glib2, it directly uses the X11 protocol. Visual doesn't use pango or glib2 either, since it uses gtk+ 1.x. FYI, Pango is the internationalized text engine for Gtk+ version 2 (and later). -Jonathan Brandmeyer |
From: Jonathan B. <jbr...@ea...> - 2003-12-23 02:38:46
|
On Mon, 2003-12-22 at 13:46, Kelvin Chu wrote: > Below is a link on how to build VPython on MacOSX 10.3 using Python 2.3. > > http://www.uvm.edu/~kchu/?Page=VPython/ > BuildingVPython.html&SM=miscsubmenu.html > > I built VPython yesterday on a fresh (10.3 eMac) starting completely > from scratch. Please let me know how this works for you so that we can > refine this process and make it as painless as possible. > > -k Thank you for your help and feedback, Mr. Chu. The only thing about your instructions that jumped out at me is that I don't think you should need to add -I/sw/include/gtkgl to CPPFLAGS. gtkglarea.h is referenced as gtkgl/gtkglarea.h in the source code. Also, support for the 'distclean' target in the cvisual subdirectory has been added to CVS. Thanks for pointing out that deficiency. -Jonathan Brandmeyer |
From: Kelvin C. <kel...@uv...> - 2003-12-23 03:59:39
|
Hi Jonathan; The gtkglarea.h include is a old habit to deal with a bad VPython-building experience earlier. You're absolutely right that it shouldn't be in there. Best, -k On 22 Dec, 2003, at 9:38 PM, Jonathan Brandmeyer wrote: > On Mon, 2003-12-22 at 13:46, Kelvin Chu wrote: >> Below is a link on how to build VPython on MacOSX 10.3 using Python >> 2.3. >> >> http://www.uvm.edu/~kchu/?Page=VPython/ >> BuildingVPython.html&SM=miscsubmenu.html >> >> I built VPython yesterday on a fresh (10.3 eMac) starting completely >> from scratch. Please let me know how this works for you so that we >> can >> refine this process and make it as painless as possible. >> >> -k > > Thank you for your help and feedback, Mr. Chu. The only thing about > your instructions that jumped out at me is that I don't think you > should > need to add -I/sw/include/gtkgl to CPPFLAGS. gtkglarea.h is referenced > as gtkgl/gtkglarea.h in the source code. > > Also, support for the 'distclean' target in the cvisual subdirectory > has > been added to CVS. Thanks for pointing out that deficiency. > > -Jonathan Brandmeyer > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > -- Kelvin Chu, Physics Department, Cook Building 82 University Place, University of Vermont, Burlington VT 05405-0125 http://www.uvm.edu/~kchu/; (802) 656-0064; Fax: (802) 656-0817 |
From: Joe H. <hea...@ct...> - 2003-12-29 18:31:09
|
Has anyone succeeded in either building VPython or running complete VPython programs on OS 10.3 yet? This is the only thing hold up my upgrade to Panther on my work Mac. Cheers, Joe Heafner ----- New email address: hea...@ct... |
From: Jon S. <js...@so...> - 2003-12-29 23:06:15
|
I'm happy to report that yesterday, after a fresh install of 10.3, Kelvin Chu's instructions > http://www.uvm.edu/~kchu/?Page=VPython/ > BuildingVPython.html&SM=miscsubmenu.html produced an apparently healthy vpython. There were a few hiccups. > * The very latest versions of 10.3 and/or X11 make bash the default > shell > > * The startup script /sw/bin/init.sh doesn't get executed > automatically. >> * As a result, I had to use "/sw/bin/fink..." rather than just >> "fink..." (The fink directory ( /sw/bin ) is not on the full path) >>> (I have yet to set the default path successfully. I think I need to >>> tweak .xinitrc as per http://www.misplaced.net/fom/X11/39.html)) > > * The bash equivalent of "rehash" appears to be "hash" > The python IDE that comes up is X-ish of course, and so keybindings for commands like Open File use control -O rather than the OS X command-O. So I'm trying to get quickeys to make the substitutions for me. I've also found that I can run vpython scripts from OS X environments such as that created by voodoopad if I programmatically set the python interpreter to /swbin/python, set the pypath, and set the display variable for the X server. Thus, this works is X11 is running concurrently. > #!/sw/bin/python > import sys > sys.path=['/sw/lib/python2.3/site-packages/visualdemos', > '/sw/lib/python2.3/idlelib', > '/sw/lib/python23.zip', > '/sw/lib/python2.3', '/sw/lib/python2.3/plat-darwin', > '/sw/lib/python2.3/plat-mac', > '/sw/lib/python2.3/plat-mac/lib-scriptpackages', > '/sw/lib/python2.3/lib-tk', > '/sw/lib/python2.3/lib-dynload', > '/sw/lib/python2.3/site-packages', > '/sw/lib/python2.3/site-packages/Numeric'] > > import os > os.putenv('DISPLAY',':0.0') > > from visual import * > box() > > """ > This program works if X11 is running on the system at runtime. > """ Which has me wondering whether the OS X can be tweaked to provide an OS X IDE But I haven't tried that yet. Anyway this is a much better place to be. Thanks to everyone for their help. On Dec 29, 2003, at 1:30 PM, Joe Heafner wrote: > Has anyone succeeded in either building VPython or running complete > VPython programs on OS 10.3 yet? This is the only thing hold up my > upgrade to Panther on my work Mac. > > Cheers, > Joe Heafner > > ----- > New email address: hea...@ct... > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys > admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > ------------------ Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology sc...@di... 585-738-6696 |
From: Joe H. <hea...@ct...> - 2004-01-02 01:47:30
|
Good evening. Using Kevin Chu's instructions at <http://www.uvm.edu/~kchu/?Page=VPython/ BuildingVPython.html&SM=miscsubmenu.html> I too have built VPython under Mac OS 10.3.2. I first installed the latest Fink and FinkCommander (a graphical front end to the Fink system) and all went well until I tried to build gtk+. There was a failure somewhere near the end that prevented the built packages from being installed. I suspect I goofed something up because I set FinkCommander to use the unstable tree so I wouldn't have to copy over the python23 info and patch files ad Chu describes. This didn't work, so I wiped out Fink and FinkCommander and reinstalled Fink. This time, I copied over the info and patch files as directed. However, I issued "fink selfupdate" rather than "fink selfupdate-cvs" and all worked fine. Apple has made bash the default shell now and this caused me to stumble. Environment variables must be set as export CPPFLAGS="-I/sw/include -I/sw/include/gtkgl" (note the quotes needed for multiple arguments) export BROWSER=open I realize the reference to /gtkgl is not needed. I verified these env variables had been correctly set with echo $CPPFLAGS echo $BROWSER I'm curious as to why the LDFLAGS env variable didn't need to be set. After a successful build and install using the visual-2.1.9-20031005.tar.gz tarball, I fired up X11 and the vpython script and got the new IDLE environment and was able to run VPython programs. The only issues I see are: 1) Hitting F1 fails to bring up the web browser with help docs. From xterm, I saw that the BROWSER env variable didn't exist so I set it manually (X11 apparently uses bash too), and still it didn't work. I tried setting this variable in ~/.profile but still no luck, although this does set the variable in Apple's Terminal program. 2) X11 doesn't know about /sw in the PATH, so I have to type "/sw/bin/vpython &" to start VPython. From where do xterm and X11 get information about environment variables under 10.3? Otherwise, I now have VPython running under Panther. Cheers, Joe Heafner -- Astronomy/Physics Instructor |
From: Kelvin C. <kel...@uv...> - 2004-01-02 16:55:00
|
Hi Joe; Glad to hear that things are working. Some Unix and fink-related notes: 1) To change your shell (back) to tcsh, type: chsh (username) and then enter /bin/tcsh at the prompt. 2) To put vpython in your path, you will need to have /sw/bin in your path, which means adding the (appropriate) line to your .cshrc or other shell-appropriate startup file. This procedure is documented in the fink install instructions. 3) X11 and xterm get environmental variables from the shell (ie X is a windowing system, not a shell). 4) I've amended the posted build instructions to include the directions for the bash shell. -k Joe Heafner (hea...@ct...) said the following on [20:47, 01 Jan] about [Visualpython-users] VPython working on Mac OS 10.3.2 > Good evening. > > Using Kevin Chu's instructions at > > > <http://www.uvm.edu/~kchu/?Page=VPython/BuildingVPython.html&SM=miscsubmenu.html> > > > I too have built VPython under Mac OS 10.3.2. I first installed the > latest Fink and FinkCommander (a graphical front end to the Fink > system) and all went well until I tried to build gtk+. There was a > failure somewhere near the end that prevented the built packages from > being installed. I suspect I goofed something up because I set > FinkCommander to use the unstable tree so I wouldn't have to copy over > the python23 info and patch files ad Chu describes. This didn't work, > so I wiped out Fink and FinkCommander and reinstalled Fink. This time, > I copied over the info and patch files as directed. However, I issued > "fink selfupdate" rather than "fink selfupdate-cvs" and all worked > fine. > > Apple has made bash the default shell now and this caused me to > stumble. Environment variables must be set as > > export CPPFLAGS="-I/sw/include -I/sw/include/gtkgl" (note the quotes > needed for multiple arguments) > export BROWSER=open > > I realize the reference to /gtkgl is not needed. I verified these env > variables had been correctly set with > > echo $CPPFLAGS > echo $BROWSER > > I'm curious as to why the LDFLAGS env variable didn't need to be set. > After a successful build and install using the > visual-2.1.9-20031005.tar.gz tarball, I fired up X11 and the vpython > script and got the new IDLE environment and was able to run VPython > programs. The only issues I see are: > > 1) Hitting F1 fails to bring up the web browser with help docs. From > xterm, I saw that the BROWSER env variable didn't exist so I set it > manually (X11 apparently uses bash too), and still it didn't work. I > tried setting this variable in ~/.profile but still no luck, although > this does set the variable in Apple's Terminal program. > > 2) X11 doesn't know about /sw in the PATH, so I have to type > "/sw/bin/vpython &" to start VPython. > > >From where do xterm and X11 get information about environment > variables under 10.3? > > Otherwise, I now have VPython running under Panther. > > Cheers, > Joe Heafner -- Astronomy/Physics Instructor > > -- End of included message -- -- Kelvin Chu Department of Physics, Cook Building, 82 University Place University of Vermont, Burlington, VT 05405-0125 802.656.0064, http://www.uvm.edu/~kchu/ |
From: Joe H. <hea...@ct...> - 2004-01-02 20:45:35
|
On Friday, Jan 2, 2004, at 11:54 US/Eastern, Kelvin Chu wrote: > 1) To change your shell (back) to tcsh, type: > > chsh (username) > > and then enter /bin/tcsh at the prompt. I want to keep bash, primarily because I want to learn to use it > 2) To put vpython in your path, you will need to have /sw/bin in your > path, which means adding the (appropriate) line to your .cshrc or > other shell-appropriate startup file. This procedure is > documented in the fink install instructions. I didn't see anything specifically for bash, but I could have surely overlooked it. I'll check again. Any idea why the BROWSER variable doesn't seem to be working? It worked fine under 10.2.x and Fink's Python 2.2. I was using the exact same VPython tarball too. Cheers, Joe Heafner -- Astronomy/Physics Instructor |