<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2/12/2012 2:21 AM, Yony Torres wrote:
<blockquote cite="mid:COL104-W25E8B849AF881B2874D793BE7E0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
Hello buddies
<div><br>
</div>
<div><br>
</div>
<div>I'm trying to learn Python from a well known book, and i'm
stuck with something that i know that might seem surprisingly
easy for you and i would like to humbly request your help:</div>
<div><br>
</div>
<div>i created a script in a file named script1.py and i saved
it in the folder named python journey located in this path
c:\users\myusername\documents\varios 2\python journey\</div>
<div><br>
</div>
<div>i tested the script1.py file via the GUI and it works
fine...BUT!...i have been trying to run it via the Python
command line and the Windows CMD... UNSUCCESSFULLY :(</div>
<div><br>
</div>
<div>the instructions given in the book are these as follows:</div>
<div><br>
</div>
<div>
<div>"Once you’ve saved this text file, you can ask Python to
run it by listing its full filename <span style="font-size:
10pt; ">as the first argument to a python command, typed
at the system shell prompt:"</span></div>
<div><br>
</div>
<div>% python script1.py</div>
</div>
<div><br>
</div>
<div>
<div>"Again, you can type such a system shell command in
whatever your system provides <span style="font-size: 10pt;
">for command-line entry—a Windows Command Prompt window,
an xterm window,</span></div>
<div>or similar. Remember to replace “python” with a full
directory path, as before, if your <span style="font-size:
10pt; ">PATH setting is not configured."</span></div>
</div>
<div><span style="font-size: 10pt; "><br>
</span></div>
<div><span style="font-size: 10pt; ">what i did was this: </span></div>
<div><span style="font-size: 10pt; "><br>
</span></div>
<div><span style="font-size: 10pt; ">I typed all this options:</span></div>
<div><span style="font-size: 10pt; "><br>
</span></div>
<div><span style="font-size: 10pt; ">c:\users\myusername\documents\varios
2\python journey> script1.py</span></div>
<div><span style="font-size: 10pt; "><br>
</span></div>
<div>c:\users\myusername\documents\varios 2\python journey\
script1.py
</div>
<div><br>
</div>
<div>c:\users\myusername\documents\varios 2\python
journey\script1.py
</div>
<div><br>
</div>
<div><br>
</div>
<div>what am i doing wrong? can somebody please help me?<br>
</div>
</div>
</blockquote>
<br>
Thanks for asking. When you ask for help please tell us which
version of Python and what OS you are running, and what (if any)
errors or unexpected results you are getting. The more info you give
us the easier it is for us to help.<br>
<br>
Also be sure to reply-all so a copy goes to the list.<br>
<br>
The directions you were given are hard to follow, and a lot depends
on how your system is configured. Once we see the error you are
getting we can better help.<br>
<br>
<pre class="moz-signature" cols="72">--
Bob Gailer
919-636-4239
Chapel Hill NC</pre>
</body>
</html>