Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread greg
Gabriel Genellina wrote: > I bet your file is actually called fibo.py.txt then. > (Perhaps some advise should be provided for Windows users, about > enclosing the name inside "double quotes", or selecting "All files > (*.*)" on the file type list) Also, if by some chance you've got "Hide filena

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread greg
rich murphy wrote: > So, I assumed "the current directory" is C:\Python25 which did not > work... What directory does it mean then? It means the current directory of the process running the Python interpreter, which, unless you've done something to change it, will be the same as the current direct

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread Gabriel Genellina
At Thursday 14/12/2006 17:13, rich murphy wrote: Thanks to everyone who responded with valuable suggestions. I appreciate them all. I found the exact reason why "import" command fails. At the beginning I created my script file with MS Notepad. After studying all the advice, I realized that I di

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread Roel Schroeven
rich murphy schreef: > This not fine: fibo.fib2(100) > [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] > > > When I enter "fibo.fib2(100)", I get the following: > fibo.fib2(100) > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python24\fibo.py", line 11, in fib2 >

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread rich murphy
Thanks to everyone who responded with valuable suggestions. I appreciate them all. I found the exact reason why "import" command fails. At the beginning I created my script file with MS Notepad. After studying all the advice, I realized that I did not try other text editors just becuase the tutori

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-14 Thread Gabriel Genellina
At Thursday 14/12/2006 03:44, rich murphy wrote: The tutorial says: "For instance, use your favorite text editor to create a file called fibo.py in the current directory with the following contents:" So, I assumed "the current directory" is C:\Python25 which did not work. Then I placed the fibo

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread Eric Pederson
rich murphy wrote: >So, I assumed "the current directory" is C:\Python25 which did not >work. Then I placed the fibo.py file in C: director. That did not work >either. What directory does it mean then? > OK, forgive me for using 2.4... Can you import "sys"? Assuming you've got python_script.py

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread rich murphy
Ben Finney wrote: > "rich murphy" <[EMAIL PROTECTED]> writes: > > > I am studying Python language. > > Welcome! Allow me to direct you to the Python tutorial: > > http://docs.python.org/tut/> > > Please take the time to work through all the exercises in that > document, understanding each one

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread Fredrik Lundh
rich murphy wrote: > Thank you both for responding. > > Yes of course the file has the ".py" extension and yes I went through > the tutorial. since everyone on this forum is importing modules successfully hundreds of times every day, that's not obvious at all. try running the interpreter as

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread rich murphy
Thank you both for responding. Yes of course the file has the ".py" extension and yes I went through the tutorial. Gabriel Genellina wrote: > At Wednesday 13/12/2006 22:16, rich murphy wrote: > > >I am studying Python language. I have Python 2.5 installed in my PC > >which is running on Windows

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread Ben Finney
"rich murphy" <[EMAIL PROTECTED]> writes: > I am studying Python language. Welcome! Allow me to direct you to the Python tutorial: http://docs.python.org/tut/> Please take the time to work through all the exercises in that document, understanding each one before moving on. I recommend this

Re: The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread Gabriel Genellina
At Wednesday 13/12/2006 22:16, rich murphy wrote: I am studying Python language. I have Python 2.5 installed in my PC which is running on Windows XP. I placed the the script called "python_script" in C:\Python25 directory where all the other Python files are. Verify the file name, should be "p

The Famous Error Message: "ImportError: No module named python_script"

2006-12-13 Thread rich murphy
printing the famous error message: "ImportError: No module named python_script". I took the file out of "C:\Python25" directory, placed it in 'C:\PythonTests'. The error message kept coming. The "import" commnand will not work at all. >>> impor