From: Gary P. <pa...@in...> - 2003-12-20 22:42:34
|
Not sure, but I can add two comments. First: vpython works with the fink version of python 2.3. Not the one that ships with OSX, I believe. I tripped on the Apple SDK. It comes with several packages. You want to make sure that you install DevTools.pkg and DevSDK.pkg. Installing only Developer.pkg didn't work for me. I think I'd try installing python2.3. You don't have to uninstall 2.2 (ymmv) but you better make sure that /sw/bin/python calls the right version. (just type "python" at the bash prompt and see what comes up.) Of course you can gronk 2.2 if you want. oh ... my installation is on 10.2 so .... -gary > > > ----- Original Message ----- > From: "Jon Schull" <js...@so...> > To: <vis...@li...> > Sent: Saturday, December 20, 2003 3:46 PM > Subject: [Visualpython-users] installing vpython on OS X 10.3 > > Assuming that I need python 2.2.3 (not OS X 10.3's native python 2.3), > I've been able to step through all instructions at > http://vpython.org/OSX_download.html right up to typing vpython. > > At that point I get the error, "No module named _socket" > > Traceback (most recent call last): > File "/sw/lib/python2.2/site-packages/visual/idle_VPython/idle.py", > line 3, in ? > import PyShell > File > "/sw/lib/python2.2/site-packages/visual/idle_VPython/PyShell.py", line > 31, in ? > import protocol > File > "/sw/lib/python2.2/site-packages/visual/idle_VPython/protocol.py", line > 83, in ? > import socket > File "/sw/lib/python2.2/socket.py", line 41, in ? > from _socket import * > ImportError: No module named _socket > > The following don't help either > sudo /sw/bin/fink update python22 > Information about 158 packages read in 1 seconds. > No packages to install. > [208-186-56-189:lib/python2.2/site-packages] jis% fink update > python22-shlibs > sudo /sw/bin/fink update python22-shlibs > Information about 158 packages read in 0 seconds. > No packages to install. > [208-186-56-189:lib/python2.2/site-packages] jis% fink update > python22-socket > sudo /sw/bin/fink update python22-socket > Information about 158 packages read in 1 seconds. > No packages to install. > > Here's what's in /sw/lib/python2.2/site-packages/ > Numeric README idlelib > Numeric.pth cvisualmodule.so visual > > help...? > > > ------------------ > Jon Schull, Ph.D. > Associate Professor > Information Technology > Rochester Institute of Technology > sc...@di... 585-738-6696 |