Re: Help Installing Python on a Mac

Neil Hughes <[email protected]> Mon, 06 Jul 2009 16:43:30 +0100
Newsgroups gmane.comp.python.pythoncard
Organization Support4Omega Ltd.
Message-ID <[email protected]>
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
-- 
Neil Hughes


------------------------------------------------------------------------------