LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2002, 10:39 PM   #1
haknot
LQ Newbie
 
Registered: Feb 2001
Location: South Carolina
Distribution: Redhat 7.1, 6.2
Posts: 16

Rep: Reputation: 0
Try Python, O'reilly Learning Python


well I'm trying to get their little hello module world example to be executable. have folowed these directions:

create file module1.py as follows:
#!/usr/bin/python
print "Hello, module world"

% chmod +x module1.py

----------------------
according to them, i should now enter module1.py at the prompt and it will execute. But instead I get: bash:module1.py:command not found
----------------------
It's getting late after a long hard week. Perhaps I'm making some silly error. If you can point out such, I'll appreciate it.

Let's see I checked the path to python; it's right. All the other tests and examples worked ok. It's just this one.
 
Old 02-09-2002, 04:37 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i was sent from high above

this is nothing to do with programming. you should only be using this forum for questions actaully about coding itself.

you're prgram is not on your path. use

./module1.py
 
Old 02-09-2002, 05:59 AM   #3
haknot
LQ Newbie
 
Registered: Feb 2001
Location: South Carolina
Distribution: Redhat 7.1, 6.2
Posts: 16

Original Poster
Rep: Reputation: 0
Gee!

What a harsh reply to an innocent question.

Which forum would your advise posting a problem with Python exercises to? Install? Securitaa? Networking possibly?

Nah, sounds like you have issues of your own, possibly delusions of grandeur.

You know, this place used to be good. But it has become just about useless, due to people like you. A person asking an honest question is most likely to be flamed and told to search the archives. You should quit calling it Linux Questions. And for sure you should remove the line "where newbies go for help." It has become a pseudo elitist club.
 
Old 02-09-2002, 06:11 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
sorry, i didn't mean to sound rude. i guess i forgot to use the please word.

it's just that that's a question about Paths and program execution, and not actually relevant to python, even though you're using python. Just recently i've noticed how the programming forum conaints next to nothing but people trying to install the JDK or such like. which i'd think is simply a general question.

and anyway, i told you how to run it, what's the problem? If that's your genuine attitude to this place then your very wrong. In general thou i feel that a little RTFMing is sometimes appropriate.
 
Old 02-11-2002, 07:57 AM   #5
gui10
Member
 
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
acid:
hm... it's just the way you worded your reply. i was quite taken aback too. it did seem a harmless question. i mean haknot does seem to be a newbie to python and perhaps can't tell whether it is a code problem or a settings problem. and though yes you answered the question, doesn't mean you didn't appear rude. i've made many of these kinds of mistakes before and a kind word, especially from a moderator would be encouraging instead of detrimental. if you're tired of doing the job, perhaps you can approach jeremy for a short break?

that said, haknot:
acid is not a nasty person on this forum, at least fom the many posts i've seen. perhaps it's just a genuine misunderstanding and his/her intention was to help you post in the right place to get a better answer.
don't give up on this forum yet i've also been peeved off many a time by people who did not mean it. i nursed my wounded pride for a while and still came back and well, it may not be an ideal place (i wonder where we get the idea ) but it's good enough

Last edited by gui10; 02-11-2002 at 08:05 AM.
 
Old 02-15-2002, 08:27 AM   #6
keymoo
Member
 
Registered: Jan 2002
Location: UK
Distribution: Desktop - Ubuntu, Server - Debian, CentOS
Posts: 72

Rep: Reputation: 15
acid:

IMHO you were rude. Have a little patience.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
Python - worth learning? vharishankar Programming 39 07-08-2005 02:38 AM
Learning Zope (and Python) coolman0stress Programming 3 05-10-2004 04:01 PM
Learning Python... where do i start?? Claus Programming 2 09-02-2003 06:42 AM
Newbie learning Python busbarn Programming 3 08-09-2002 10:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration