From: Terry M. <ter...@gl...> - 2009-07-06 17:41:08
|
Hi Ignatz, I'm pretty much of a beginner myself, but I think I can help you with a couple of points below, although unfortunately not with your main problem. > Date: Mon, 6 Jul 2009 10:53:30 -0400 > From: Ignatz Razkiwatzki <rat...@gm...> > > > 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. Look for a wxPython folder in your Applications folder ... or search your computer for 'wxPython Demo'. > 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. It does. The [No-lle-McAfees-Computer:~] nmcafee% prompt is a Unix prompt. Type 'python' (without the quotes) and hit return, which will start Python and give you the >>> prompt. Terry > On Jul 6, 2009, at 10:30 AM, Neil Hughes 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)? >> >> -- >> Neil Hughes |
From: Terry M. <ter...@gl...> - 2009-07-06 19:52:31
|
Hi again, Ignatz, A couple of points, then I'm going to leave you in Neil and Kevin's hands -- they actually understand this stuff ;) 1) I don't understand why Idle isn't opening, but it's probably a clue ... > I've played around with typing "python" into terminal. That seems > to work. > I get perform simple commands (add, multiply, print) but haven't > gotten any > further than that. 2) That's a start -- at least Python itself is installed/working. 3) Neil mentioned the wxPython 2.8 demos/documentation package -- I'd forgotten, but that's what installs a wxPython folder into your Applications folder. You can find it here: http://www.wxpython.org/download.php After installing, try running the wxPython Demo app ... that should provide another clue as to what is or isn't working. Terry |
From: Ignatz R. <rat...@gm...> - 2009-07-06 18:20:41
|
Hi Terry, Thanks for this. I found a folder labeled Demo in HD/apps/MacPython 2.5/Extras. I tried clicking on one of the files (dates.py). An icon came up making it look like IDLE was trying to launch. It then disappeared and nothing happened. There's also a folder called Demo.Mac in Extras. I tried double clicking one of the .py files in it too. Same result. I also tried opening one of the .py files in Demo.Mac with PythonLauncher. I got an error message that says: Can’t open file “/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py”. A message in Terminal also came up saying: Last login: Mon Jul 6 10:42:57 on ttyp1 cd '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/' && '/usr/local/bin/pythonw' '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py' && echo Exit status: $? && exit 1 Welcome to Darwin! [No-lle-McAfees-Computer:~] nmcafee% cd '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/' && '/usr/local/bin/pythonw' '/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py' && echo Exit status: $? && exit 1 Traceback (most recent call last): File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/makedisk.py", line 1, in <module> import Disk_Copy File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/__init__.py", line 7, in <module> import Standard_Suite File "/Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/Standard_Suite.py", line 33 SyntaxError: Non-ASCII character '\x8e' in file /Applications/MacPython 2.5/Extras/Demo.Mac/applescript/Disk_Copy/Standard_Suite.py on line 34, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details [No-lle-McAfees-Computer:Extras/Demo.Mac/applescript] nmcafee% I've played around with typing "python" into terminal. That seems to work. I get perform simple commands (add, multiply, print) but haven't gotten any further than that. When I try double clicking on IDLE, it looks like it tries to launch then disappears. Any ideas. Thanks, IR On Mon, Jul 6, 2009 at 12:40 PM, Terry Maloney < ter...@gl...> wrote: > Hi Ignatz, > > I'm pretty much of a beginner myself, but I think I can help you with a > couple of points below, although unfortunately not with your main problem. > > Date: Mon, 6 Jul 2009 10:53:30 -0400 >> From: Ignatz Razkiwatzki <rat...@gm...> >> >> >> 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. >> > > Look for a wxPython folder in your Applications folder ... or search your > computer for 'wxPython Demo'. > > 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. >> > > It does. The [No-lle-McAfees-Computer:~] nmcafee% prompt is a Unix prompt. > Type 'python' (without the quotes) and hit return, which will start Python > and give you the >>> prompt. > > Terry > > > > On Jul 6, 2009, at 10:30 AM, Neil Hughes 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)? >>> >>> -- >>> Neil Hughes >>> >> > |