Re: Help Installing Python on a Mac

Ignatz Ratzkiwatzki <[email protected]> Mon, 6 Jul 2009 11:21:02 -0500
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
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, Neil Hughes <[email protected]>wrote:

> 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
>
>

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

_______________________________________________
Pythoncard-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pythoncard-users