From: Kevin A. <al...@se...> - 2004-12-09 17:54:55
|
On Nov 27, 2004, at 2:51 PM, Phil Thomson wrote: > Hi All, > > I'm excited to get PythonCard installed, but I'm wondering which > Python I should use. I have both the native OS X Python as well as > Fink's Python, so when I installed PythonCard, it went into > /sw/lib/python2.3, rather than /Library/Python. As a result, when I > run minimal.py, for example, I get this: > > PhilBook:/sw/lib/python2.3/site-packages/PythonCard/samples/minimal > user$ ./minimal.py > Traceback (most recent call last): > File "./minimal.py", line 8, in ? > from PythonCard import model > File "/sw/lib/python2.3/site-packages/PythonCard/model.py", line 24, > in ? > from wxPython.wx import wxPySimpleApp, wxFrame, wxMessageDialog, > wxICON_EXCLAMATION, wxOK, wxVERSION_STRING > ImportError: No module named wxPython.wx > > What's the best way of getting around this error message? I imagine it > has something to do with the two python's, with the wxPython stuff > being installed under one python and PythonCard being installed with > the other one, right? > > P > > > > +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ > { Phil Thomson > { home: http://www.sfu.ca/~pthomson > { label: http://centibel.org/ > { group: http://groups.yahoo.com/group/databenders/ > +~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+~+ > > SDF Public Access UNIX System > http://www.freeshell.org/ > Geekier than you since 1987. > I have no experience with Fink. The installation instructions on the main site assume that if you're using Panther then you'll just be using Apple's standard Python 2.3 install. I think this issue with Fink is probably a FAQ, so maybe ask on the pythonmac-sig mailing list? I'm guessing that you need to specify the right Python when you do your wxPython and PythonCard installs. On my machine, that is /usr/bin/python which is a symlink. Don't forget to run wxPython and PythonCard apps with pythonw, that's /usr/bin/pythonw. ka |