Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Bye Bye Billy Bob...

Hello All,
I'm a fairly literate windoz amateur programmer mostly in visual basic. I
have switched to SuSE 9.2 Pro and am trying to quickly come up to speed
with Python 2.3.4.  I can run three or four line scripts from the command
line but have not been able to execute a script from a file.  

I have used EMACS and JEDIT to create small test routines.  I would right
click the file and set properties to executable.  I would then click the
icon, the bouncy ball would do its thing then a dialog box would flash on
the screen for a fraction of a second.  I could tell it had a progress bar
on it but could not catch anything else on it.  Then nothing else would
happen.

If I could execute a script the world would once again be my playground...
PLEASE HELP.



-- 
LINUX protects me from the GATES of hell !!!
-- 
http://mail.python.org/mailman/listinfo/python-list


Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread windozbloz
Bye Bye Billy Bob...

I'm back with one more question, then I'll chill.  I have scoured the news
and net for info about Borlands KYLIX 3 and have found little technical
info about it.  Their screen shots are very impressive, similar to Visual
Basic.  I have sent several emails to Borlands Sales and Pre-Sales
departments.  Pre-Sales bounces and Sales won't answer.  I'm sitting here
with money in hand ready to buy but not from a company that won't give me
the time of day.

Does anyone of you have experiance with KYLIX 3 and do you think I should
consider buying it?  Thank You, I'll go oil my keyboard now.

Doug

-- 
LINUX protects me from the GATES of hell !!!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Damjan wrote:

> 
>> I'm a fairly literate windoz amateur programmer mostly in visual basic. I
>> have switched to SuSE 9.2 Pro and am trying to quickly come up to speed
>> with Python 2.3.4.  I can run three or four line scripts from the command
>> line but have not been able to execute a script from a file.
>> 
>> I have used EMACS and JEDIT to create small test routines.  I would right
>> click the file and set properties to executable.  I would then click the
>> icon, the bouncy ball would do its thing then a dialog box would flash on
>> the screen for a fraction of a second.  I could tell it had a progress
>> bar
>> on it but could not catch anything else on it.  Then nothing else would
>> happen.
>> 
>> If I could execute a script the world would once again be my
>> playground... PLEASE HELP.
> 
> Open a terminal program like "konsole".
> change the directory to where your files are ("cd /path/to/files/").
> execute them ("python my-script.py').
> 
> 
THANK YOU THANK YOU  THANK YOU
It now works from the command line like you said.  Shouldn't I also be able
to 'click' an icon that has been set to executable and launch the whole
process that way?

Doug
-- 
LINUX protects me from the GATES of hell !!!


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-18 Thread windozbloz
Jeff Epler wrote:

> I honestly don't know why anyone would spend money for a development
> environment, no matter how fancy.  I don't knowdefinitelye would develop
> software in a language that doesn't have at least one open
> implementation.
> 
> It's a great way to get screwed when Borland goes under or decides
> they only want to sell a new, incompatible product.  What do you do with
> your existing product when that happens?  Re-train on a new platform,
> and re-write from scratch?
> 
> Just say no to proprietary software.
> 
> Jeff

Thanks Jeff,
Point taken!  I had given that considerable thought.  Your words 'retrain on
a new platform' struck a loud cord with me, thank you, I will definitely
reconsider.  I don't ever want to find myself locked behind 'the GATES of
hell' again! 

Doug
-- 
LINUX protects me from the GATES of hell !!!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python scripts wont run - HELP

2005-07-18 Thread windozbloz
Nick Vargish wrote:

> windozbloz <[EMAIL PROTECTED]> writes:
> 
>> It now works from the command line like you said.  Shouldn't I also be
>> able to 'click' an icon that has been set to executable and launch the
>> whole process that way?
> 
> You'll need to put an interpreter line at the beginning of your
> script, as other posters have indicated. This tells the shell how to
> handle the file.
> 
> When you double-click a program icon in your file browser, the browser
> starts a shell process which is handed the file's name for
> execution.
> 
> #!/usr/bin/python
> 
> Says, "This file is  interpreted by /usr/bin/python". The idiom you
> will often see:
> 
> #!/usr/bin/env python
> 
> Says, "Find 'python' in this user's environment, and give this file to
> that program for interpretation". That allows you to use a different
> python interpreter (say, /usr/local/bin/python if that comes first on
> your PATH environment variable), and allows the script to be more
> friendly for systems that do not have a /usr/bin/python.
> 
> Depending on the GUI, you may not see a terminal window open for the
> script's execution, or the terminal might close as soon as the script
> exits, which will prevent you from looking at any output. Unless the
> program has a GUI, running it from the command-line is usually better
> than double-clicking it in a file browser.
> 
> Nick
> 
Thats good info Nick, Thanks.  I'm going to go try the two methods now.
Doug

-- 
LINUX protects me from the GATES of hell !!!
-- 
http://mail.python.org/mailman/listinfo/python-list