From: Jon S. <js...@so...> - 2005-06-07 04:00:43
|
Please forgive the cross-post. I think this is a cross group issue. I've newly installed Tiger and would like to avoid the dueling pythons problem that plagued me with 0SX 10.3. It would be nice to be running just one python, but I suppose that would be asking too much? I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ Double clicking the apps works fine. But when I type "python" from terminal I get python Apple's python 2.3.5. I'm sure this is obvious to many, but I'm also sure I'm not the only person who starts getting uneasy at this point. So before I go too deep, I thought I'd ask.... Is there a "right" way to be using just one (or just two) pythons and avoid conflicts? I want to be able to program from the command line with ipython And I want to be able to program from the 2.4.1 gui. And I want to be able to run vpython (requires X11 alas). I should add that configuring things drives me crazy but I can't live without these things, and did eventually have them all working under panther. (Unfortunately a hard drive failure forces me to build my programming environment anew.) Any wise and concise counsel will be greatly appreciated. Wise OR concise, too. ;-> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology 102 Lomb Memorial Drive Rochester, New York 14623 sc...@di... 585-738-6696 |
From: Jon S. <js...@so...> - 2005-06-07 15:54:41
|
That would be a very big step forward in lots of ways.... Is it clear that this requires understanding of VPython internals? On Jun 7, 2005, at 10:16 AM, Bruce Sherwood wrote: > Maybe a Mac expert will step forward and make a version of Visual > that can be driven by the native Mac Python? After all, OpenGL > doesn't need X11, it's just that lacking Mac-specific expertise the > only way we could get VPython running on Mac OSX was to piggyback > off the Linux/Unix version. What is needed is really just one file, > equivalent to wgl.cpp which handles Windows aspects (creating the > graphics window, handling keyset and moust inputs, etc.). Is there > anyone in the VPython commmunity who could write macgl.cpp? > > Bruce Sherwood > > Martin Costabel wrote: > > >> (cross-post removed as I can't and won't post on these other groups) >> Jon Schull wrote: >> >> >>> Please forgive the cross-post. I think this is a cross group >>> issue. >>> >>> I've newly installed Tiger and would like to avoid the dueling >>> pythons problem that plagued me with 0SX 10.3. It would be nice >>> to be running just one python, but I suppose that would be asking >>> too much? >>> >>> >> Since there is now a Tk framework and tkinter on Tiger, it would >> indeed be feasible to rely much more than before on the system- >> installed python. >> But if you want a python that understands X11, I guess you still >> have to install your own (from Fink, in my case). The only problem >> with several python versions is to keep your site-packages in the >> right places and to define the environment variables correctly so >> that the python you want to use can find the site-packages that it >> needs to find. >> >> >>> I installed Bob's MacPython 2.4.1 from http://undefined.org/ >>> python/ Double clicking the apps works fine. But when I type >>> "python" from terminal I get python Apple's python 2.3.5. >>> >>> >> This would be a PATH problem. You have to make sure that the >> directory that holds the python you want to use is found first in >> your PATH. >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can > you shotput > a projector? How fast can you ride your desk chair down the office > luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > |
From: Jonathan B. <jbr...@ea...> - 2005-06-08 01:06:29
|
On Tue, 2005-06-07 at 11:54 -0400, Jon Schull wrote: > That would be a very big step forward in lots of ways.... > Is it clear that this requires understanding of VPython internals? Only somewhat. The platform-specific parts of VPython are fairly limited; the hardest part is probably learning the OSX GUI APIs. You would need to write implementations of glContext and glFont (declared in glcontext.h). You will probably also need to write a platmac.{cpp,h} files that contains all of the functionality present in plat{linux,win}.{cpp,h}. You should be able to get a considerable amount of reuse from the platlinux.{h,cpp} files. If there is any ambiguity about the responsibilities of these classes, I'll be happy to help out anyone who would be doing this work. I would recommend using the Carbon or Core Platform C interfaces rather than Cocoa via Objective-C++. -Jonathan |
From: Martin C. <cos...@wa...> - 2005-06-07 06:09:53
|
(cross-post removed as I can't and won't post on these other groups) Jon Schull wrote: > Please forgive the cross-post. I think this is a cross group issue. > > I've newly installed Tiger and would like to avoid the dueling pythons > problem that plagued me with 0SX 10.3. It would be nice to be running > just one python, but I suppose that would be asking too much? Since there is now a Tk framework and tkinter on Tiger, it would indeed be feasible to rely much more than before on the system-installed python. But if you want a python that understands X11, I guess you still have to install your own (from Fink, in my case). The only problem with several python versions is to keep your site-packages in the right places and to define the environment variables correctly so that the python you want to use can find the site-packages that it needs to find. > I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ > Double clicking the apps works fine. But when I type "python" from > terminal I get python Apple's python 2.3.5. This would be a PATH problem. You have to make sure that the directory that holds the python you want to use is found first in your PATH. -- Martin |
From: Bruce S. <Bru...@nc...> - 2005-06-07 14:16:51
|
Maybe a Mac expert will step forward and make a version of Visual that can be driven by the native Mac Python? After all, OpenGL doesn't need X11, it's just that lacking Mac-specific expertise the only way we could get VPython running on Mac OSX was to piggyback off the Linux/Unix version. What is needed is really just one file, equivalent to wgl.cpp which handles Windows aspects (creating the graphics window, handling keyset and moust inputs, etc.). Is there anyone in the VPython commmunity who could write macgl.cpp? Bruce Sherwood Martin Costabel wrote: > (cross-post removed as I can't and won't post on these other groups) > > Jon Schull wrote: > >> Please forgive the cross-post. I think this is a cross group issue. >> >> I've newly installed Tiger and would like to avoid the dueling pythons >> problem that plagued me with 0SX 10.3. It would be nice to be running >> just one python, but I suppose that would be asking too much? > > > Since there is now a Tk framework and tkinter on Tiger, it would indeed > be feasible to rely much more than before on the system-installed python. > > But if you want a python that understands X11, I guess you still have to > install your own (from Fink, in my case). The only problem with several > python versions is to keep your site-packages in the right places and to > define the environment variables correctly so that the python you want > to use can find the site-packages that it needs to find. > >> I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ >> Double clicking the apps works fine. But when I type "python" from >> terminal I get python Apple's python 2.3.5. > > > This would be a PATH problem. You have to make sure that the directory > that holds the python you want to use is found first in your PATH. > |
From: Bob I. <bo...@re...> - 2005-06-08 01:53:13
|
On Jun 6, 2005, at 8:59 PM, Jon Schull wrote: > Please forgive the cross-post. I think this is a cross group issue. > > I've newly installed Tiger and would like to avoid the dueling > pythons problem that plagued me with 0SX 10.3. It would be nice to > be running just one python, but I suppose that would be asking too > much? > > I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ > Double clicking the apps works fine. But when I type "python" from > terminal I get python Apple's python 2.3.5. I'm sure this is > obvious to many, but I'm also sure I'm not the only person who > starts getting uneasy at this point. So before I go too deep, I > thought I'd ask.... > > Is there a "right" way to be using just one (or just two) pythons > and avoid conflicts? Put /usr/local/bin before /usr/bin on your PATH. The default PATH includes ONLY Apple-installed components. This is an "issue" with any third party software that has a command-line interface, as they all (should be, anyway) install to /usr/local/bin. -bob |
From: Jon S. <js...@so...> - 2005-06-08 02:16:44
|
Thanks I have done that (by adding " set path = (/usr/local/bin $path)" to .tcshrc) and all is well. Now, as momentary liaison between the pythonmac and vpython lists I'll mention that VPython (a truly beautiful thing) could be made independent of X11 if someone from this group knew how to liberate it... > On Jun 7, 2005, at 10:16 AM, Bruce Sherwood [who maintains VPython] > wrote: > > Maybe a Mac expert will step forward and make a version of Visual > that can be driven by the native Mac Python? After all, OpenGL > doesn't need X11, it's just that lacking Mac-specific expertise the > only way we could get VPython running on Mac OSX was to piggyback > off the Linux/Unix version. What is needed is really just one file, > equivalent to wgl.cpp which handles Windows aspects (creating the > graphics window, handling keyset and moust inputs, etc.). Is there > anyone in the VPython commmunity who could write macgl.cpp? > > On Tue, 2005-06-07 at 11:54 -0400, Jon Schull wrote: > >> That would be a very big step forward in lots of ways.... >> Is it clear that this requires understanding of VPython internals? >> > > Only somewhat. The platform-specific parts of VPython are fairly > limited; the hardest part is probably learning the OSX GUI APIs. > > You would need to write implementations of glContext and glFont > (declared in glcontext.h). You will probably also need to write a > platmac.{cpp,h} files that contains all of the functionality > present in > plat{linux,win}.{cpp,h}. You should be able to get a considerable > amount of reuse from the platlinux.{h,cpp} files. If there is any > ambiguity about the responsibilities of these classes, I'll be > happy to > help out anyone who would be doing this work. > > I would recommend using the Carbon or Core Platform C interfaces > rather > than Cocoa via Objective-C++. > > -Jonathan =-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Jon Schull, Ph.D. Associate Professor Information Technology Rochester Institute of Technology 102 Lomb Memorial Drive Rochester, New York 14623 sc...@di... 585-738-6696 On Jun 7, 2005, at 9:53 PM, Bob Ippolito wrote: > > On Jun 6, 2005, at 8:59 PM, Jon Schull wrote: > > >> Please forgive the cross-post. I think this is a cross group issue. >> >> I've newly installed Tiger and would like to avoid the dueling >> pythons problem that plagued me with 0SX 10.3. It would be nice >> to be running just one python, but I suppose that would be asking >> too much? >> >> I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ >> Double clicking the apps works fine. But when I type "python" >> from terminal I get python Apple's python 2.3.5. I'm sure this >> is obvious to many, but I'm also sure I'm not the only person who >> starts getting uneasy at this point. So before I go too deep, I >> thought I'd ask.... >> >> Is there a "right" way to be using just one (or just two) pythons >> and avoid conflicts? >> > > Put /usr/local/bin before /usr/bin on your PATH. The default PATH > includes ONLY Apple-installed components. This is an "issue" with > any third party software that has a command-line interface, as they > all (should be, anyway) install to /usr/local/bin. > > -bob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can > you shotput > a projector? How fast can you ride your desk chair down the office > luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Ronald O. <ron...@ma...> - 2005-06-08 14:33:44
|
On 6-jun-2005, at 20:59, Jon Schull wrote: > Please forgive the cross-post. I think this is a cross group issue. > > I've newly installed Tiger and would like to avoid the dueling > pythons problem that plagued me with 0SX 10.3. It would be nice to > be running just one python, but I suppose that would be asking too > much? > > I installed Bob's MacPython 2.4.1 from http://undefined.org/python/ > Double clicking the apps works fine. But when I type "python" from > terminal I get python Apple's python 2.3.5. I'm sure this is > obvious to many, but I'm also sure I'm not the only person who > starts getting uneasy at this point. So before I go too deep, I > thought I'd ask.... You should add /usr/local/bin to the start of the search path of you're shell. If you're using bash (the default on Panther and Tiger) you can add these lines to .profile or .bash_profile in your home directory: export PATH PATH="/usr/local/bin:${PATH}" export MANPATH MANPATH="/usr/local/man:${MANPATH}" This way the python in /usr/local/bin is seen before the system one. Ronald |