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 |