From: Kevin A. <al...@se...> - 2009-07-06 19:08:07
|
Sorry about the confusing docs. General links: Python 2.5.x http://www.python.org/download/releases/2.5.4/ This is the last stable release of 2.5.x. http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg "The Universal OS X image contains an installer for python 2.5.4 that works on Mac OS X 10.3.9 and later, on both PPC and Intel Macs. The compiled libraries include both bsddb and readline." wxPython http://www.wxpython.org/download.php#binaries You probably want a 2.5 universal Mac build. http://downloads.sourceforge.net/wxpython/wxPython2.8-osx- unicode-2.8.10.1-universal-py2.5.dmg http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-docs- demos-2.8.10.1-universal-py2.5.dmg You must always match the version of wxPython to the version of Python that you are using. Since the various versions of Mac OS X include their own copies of Python, the safest thing to do is pick which version of Python you want using a universal installer, match it up with the right wxPython, and then test that wxPython is working properly from the command-line and from the Finder. This leaves the Python (and sometimes wxPython) that comes with your OS intact for any system utilities that make use of it. Once you've done the Python and wxPython installs, PythonCard should install fine assuming you specify the Python you just installed or it is defaulting to the right Python in the Terminal as Neil commented on in his message. There are code tweaks that probably need to be made to PythonCard to conform to Python 3.x standards and Python 2.6.x largely exists to support transitioning to 3.x, which is why 2.5.x is recommended. ka On Jul 5, 2009, at 2:51 PM, Ignatz Razkiwatzki wrote: > Hello, > I am trying to install Python on my son's iMac running OSX 10.3.9. > But every time I try to launch a .py file I get an error message: > "Application Python has unexpectedly quit." The message from the > Terminal is: > > Last login: Sun Jul 5 16:55:21 on ttyp3 > cd '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ > site-packages/PythonCard/samples/minimal/' && '/usr/local/bin/ > pythonw' '/Library/Frameworks/Python.framework/Versions/2.5/lib/ > pythoWelcome to Darwin! > n2.5/site-packages/PythonCard/samples/minimal/minimal.py' && echo > Exit status: $? && exit 1 > [No-lle-McAfees-Computer:~] nmcafee% cd '/Library/Frameworks/ > Python.framework/Versions/2.5/lib/python2.5/site-packages/ > PythonCard/samples/minimal/' && '/usr/local/bin/pythonw' '/Library/ > Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- > packages/PythonCard/samples/minimal/minimal.py' && echo Exit > status: $? && exit 1 > dyld: /Library/Frameworks/Python.framework/Versions/2.5/Resources/ > Python.app/Contents/MacOS/Python Undefined symbols: > /usr/local/lib/wxPython-unicode-2.8.3.0/lib/libwx_macud-2.8.0.dylib > undefined reference to _HIThemeBrushCreateCGColor expected to be > defined in Carbon > Trace/BPT trap > [No-lle-McAfees-Computer:PythonCard/samples/minimal] nmcafee% > > > To install Python I started at: http://www.manning.com/sande/ > Installation_Instructions.html#mac > > Everything installed fine until step 5: "Follow this link to > install PythonCard. (Choose the correct version of Mac OS X, as > described on the PythonCard page.)" > > That led me to here: http://pythoncard.sourceforge.net/ > installation.html > > I followed the instructions for installing the version for Apple > Panther, here: http://pythoncard.sourceforge.net/ > macosx_panther_installation.html > > The only differences were that I had already installed Python2.5 as > instructed previously, so I didn't install MacPython- > Panther-2.3-2.dmg and I had already intalled wxpython2.8 so I > didn't install wxPythonOSX-2.5.2.8-panther-Py2.3.dmg > > I installed pythoncard, as instructed. > > I did not understand the "Confirming Installation" instruction and, > so, did not do that. > > On the "Configuring PythonLauncher," I selected a .py file, opened > the Information window and switched the Open With to > PythonLauncher. I also selected the the box to open all .py files > with PhthonLauncher. I then did the same thing with .pyw files. > > On the Acid Test, I double-clicked the minimal.py file. I got an > error message saying, "Application Python has unexpectedly quit." > > I checked to make sure that wxPython and PythonCard are in the site- > packages folder in Python's Lib folder. (The wxPython folder in > lib/python2.5/site-pacages/wx-2.8-mac-unicode. The Pythoncard > folder is in lib/python2.5/site-packages.) > > I tried restarting the computer then double-clicked minimal.py > again. Same result. > > I followed the rest of the instructions at: http://www.manning.com/ > sande/Installation_Instructions.html#mac and installed EasyGUI, SPE > and One Big Zip. (I put the EasyGUI83 folder in Mac HD/library/ > frameworks/pythonframe.frameworks/versions/2.5/lib/python2.5/site- > packages.) > > I restarted the computer, double clicked minimal.py. Same error > message. > > Does anyone know how to fix this? Any help would be greatly > appreciated. I know nothing about programing, so the more jargon- > free the instructions the better. > > Please email responses to rat...@gm... > > Thank you. > IR > > > ---------------------------------------------------------------------- > -------- > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users |