From: Ignatz R. <rat...@gm...> - 2009-07-05 21:51:26
|
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 |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-07-06 14:59:59
|
On 5/7/09 22:51, Ignatz Razkiwatzki wrote: > > 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." Do non-PythonCard programs work OK? When you installed wxPython 2.8, did the demo applications work OK (and do they still work OK now)? -- XXXXXXXXXXX |
From: Ignatz R. <rat...@gm...> - 2009-07-06 14:53:37
|
Hi Neil, Thanks for getting back to me. I'm not sure whether the demos work. I just followed the directions. I didn't see anything about demos. If you can tell me where they are and what to do I can try them. A couple of updates. I changed the .py and .pyw files back to open with IDLE instead of Pythonlauncher. It didn't help. Also, as suggested in the book Hello World!, I tried typing "print "HelloWorld!" after the prompt in Terminal. I got an error message saying: [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" tcsh: print: Command not found. Note that the prompt does not look like the one in the book (ie ">>>>>"). It is: [No-lle-McAfees-Computer:~] nmcafee% I'm not sure if that makes a difference. Any ideas? Thanks, IR On Jul 6, 2009, at 10:30 AM, XXXXXXXXXXX wrote: > On 5/7/09 22:51, Ignatz Razkiwatzki wrote: >> >> 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." > > Do non-PythonCard programs work OK? When you installed wxPython 2.8, > did the demo applications work OK (and do they still work OK now)? > > -- > XXXXXXXXXXX > |
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2009-07-06 15:47:05
|
On 6/7/09 15:53, Ignatz Razkiwatzki wrote: > Hi Neil, > > Thanks for getting back to me. I'm not sure whether the demos work. I > just followed the directions. I didn't see anything about demos. If > you can tell me where they are and what to do I can try them. The wxPython 2.8 demos/documentation are a separate package, so if you didn't explicitly download them then I'm guessing you don't have them. > Also, as suggested in the book Hello World!, I tried typing "print > "HelloWorld!" after the prompt in Terminal. I got an error message > saying: > > [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" > tcsh: print: Command not found. That page makes a number of assumptions, the big one being that you're familiar with Python coding, or you've spent time reading the useful links. Considering how difficult it is for more experienced developers like me to get PythonCard up and running on the ever-changing-version game that is Python/wxPython/OSX, I'm not surprised you've hit problems if you've never done this before. 'print "HelloWorld!"' won't work from the Terminal because you need to be running the python interpreter - the Terminal shell (tcsh) doesn't understand "print". Now..."echo"...that works...but we're going off topic. Try this from the Terminal, to see what state your Python setup is in: python You should get something like this: Lightning:~ nkh$ python Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> and if you try print... >>> print "HelloWorld!" HelloWorld! >>> Does that work on your Mac? Regards -- XXXXXXXXXXX |
From: Ignatz R. <rat...@gm...> - 2009-07-06 16:21:13
|
Neil, Thank you again. This is very helpful. I tried your suggest and typed "python" into Terminal. I got back the following: Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> I then typed "print "HelloWord!" and got back the following: HelloWorld! >>> This is certainly a positive development. Does this mean that everything is working properly, or is that too optimistic? Do I need to type "python" each time when I start up terminal to get to the correct prompt. Anything else I need to do/know/test? Sorry for all the newbie questions. This clearly isn't as simple as the books would lead you to belive. I greatly appreciate your help. IR On Mon, Jul 6, 2009 at 10:43 AM, XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXwrote: > On 6/7/09 15:53, Ignatz Razkiwatzki wrote: > >> Hi Neil, >> >> Thanks for getting back to me. I'm not sure whether the demos work. I >> just followed the directions. I didn't see anything about demos. If you >> can tell me where they are and what to do I can try them. >> > > The wxPython 2.8 demos/documentation are a separate package, so if you > didn't explicitly download them then I'm guessing you don't have them. > > Also, as suggested in the book Hello World!, I tried typing "print >> "HelloWorld!" after the prompt in Terminal. I got an error message saying: >> >> [No-lle-McAfees-Computer:~] nmcafee% print "HelloWorld!" >> tcsh: print: Command not found. >> > > That page makes a number of assumptions, the big one being that you're > familiar with Python coding, or you've spent time reading the useful links. > > Considering how difficult it is for more experienced developers like me to > get PythonCard up and running on the ever-changing-version game that is > Python/wxPython/OSX, I'm not surprised you've hit problems if you've never > done this before. > > 'print "HelloWorld!"' won't work from the Terminal because you need to be > running the python interpreter - the Terminal shell (tcsh) doesn't > understand "print". Now..."echo"...that works...but we're going off topic. > > Try this from the Terminal, to see what state your Python setup is in: > > python > > You should get something like this: > > Lightning:~ nkh$ python > Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) > [GCC 4.0.1 (Apple Inc. build 5465)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> > > and if you try print... > > >>> print "HelloWorld!" > HelloWorld! > >>> > > Does that work on your Mac? > > Regards > -- > XXXXXXXXXXX > > |
From: Ignatz R. <rat...@gm...> - 2009-07-06 19:00:47
|
Thanks, Kevin. I take it you're recommending a fresh install. Is that correct. If so, should I first uninstall the version I've got now? If yes, how? IR On Jul 6, 2009, at 2:03 PM, Kevin Altis wrote: > 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 > |
From: Kevin A. <al...@se...> - 2009-07-07 01:29:51
|
On Jul 6, 2009, at 11:38 AM, Ignatz Razkiwatzki wrote: > Thanks, Kevin. > > I take it you're recommending a fresh install. Is that correct. > If so, should I first uninstall the version I've got now? If yes, > how? > > IR > I don't think there is a reason for you to uninstall other than saving minor amounts of disk space. Doing a new install with the package versions I recommended should put in position to have everything running. You can check that Python and wxPython are running correctly from the Terminal and Finder and then do the PythonCard install. I don't know offhand how you go about uninstalling user versions of Python safely from the Mac. wxPython has a uninstall_wxPython.py file that should deal with most versions of wxPython that you might have installed. I don't know if a GUI package manager was ever done for Python on the Mac or not. It would probably alleviate some of these problems. ka |
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 |