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
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
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
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
>
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
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
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
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
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
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
"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
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
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
13 matches
Mail list logo