Re: [Tutor] Running Python on Gentoo

2007-07-27 Thread David Rock
Just to follow up on what _my_ environment looks like (and the probable cause in my case, anyway) Security Options -> GRsecurity -> Executable Protections -> Trusted Path Execution (TPE) CONFIG_GRKERNSEC_TPE: If you say Y here, you will be able to choose a gid to add to the supplementary groups o

Re: [Tutor] Running Python on Gentoo

2007-07-27 Thread David Rock
* Greg Lindstrom <[EMAIL PROTECTED]> [2007-07-26 13:44]: > Hello, > I am running python 2.4.2 on Gentoo Unix and am having problems running > programs. I have a script, hello.py as such: > > #! /usr/bin/python > print 'hello, world' > > that I save and add executable permission. Then at the pr

Re: [Tutor] Running Python on Gentoo

2007-07-26 Thread Dave Kuhlman
On Thu, Jul 26, 2007 at 01:48:44PM -0600, Eric Brunson wrote: > > Do other interpreters work? > > Try: > > #!/usr/bin/perl > print "Perl Sucks!!!\n"; > > or: Or, try: #!/usr/bin/env python Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman __

Re: [Tutor] Running Python on Gentoo

2007-07-26 Thread Eric Brunson
Greg Lindstrom wrote: > Eric Brunson wrote: > >> What does the command "which python" say? >> > [EMAIL PROTECTED] ~ $ which python > /usr/bin/python > > HTH, > --greg > > > Wow, Gentoo sucks more than I thought. ;-) I can't think of why that wouldn't work, unless you have some odd, n

Re: [Tutor] Running Python on Gentoo

2007-07-26 Thread Greg Lindstrom
Eric Brunson wrote: > > What does the command "which python" say? [EMAIL PROTECTED] ~ $ which python /usr/bin/python HTH, --greg ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Running Python on Gentoo

2007-07-26 Thread Eric Brunson
What does the command "which python" say? Khamid Nurdiev wrote: > Yes, I have the same problem with running python scripts from console > in Debian, the line "#! /usr/bin/python" doesn't help. I have to type > "python script.py" in order to run the script.py file. > > On 7/26/07, *Greg Lindstro

Re: [Tutor] Running Python on Gentoo

2007-07-26 Thread Khamid Nurdiev
Yes, I have the same problem with running python scripts from console in Debian, the line "#! /usr/bin/python" doesn't help. I have to type "python script.py" in order to run the script.py file. On 7/26/07, Greg Lindstrom <[EMAIL PROTECTED]> wrote: > > Hello, > I am running python 2.4.2 on Gentoo

[Tutor] Running Python on Gentoo

2007-07-26 Thread Greg Lindstrom
Hello, I am running python 2.4.2 on Gentoo Unix and am having problems running programs. I have a script, hello.py as such: #! /usr/bin/python print 'hello, world' that I save and add executable permission. Then at the prompt I type in.. $ ./hello.py -bash: ./hello.py: /usr/bin/python: bad in