Hi Jason,<br><br><div class="gmail_quote">On 19 January 2012 13:02, Jason Loeve <span dir="ltr">&lt;<a href="mailto:jasonloeve@gmail.com">jasonloeve@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
good day i seem to be stuck, my code is <br><br>from sys import argv<br><br>script, user_name = argv<br><br>and i get an error ValueError: need more than 1 value to unpack<br></blockquote><div><br>The implication of this message is that the value of &quot;argv&quot; contains only one value, which would be true if the script was run with no command line parameters. <br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><a href="http://learnpythonthehardway.org/book/ex14.html" target="_blank">http://learnpythonthehardway.org/book/ex14.html</a><br>

<br>i am using PyCharm 1.5.4 to run <br></blockquote><div><br>I&#39;m not familiar with PyCharm but by default IDE&#39;s obviously would not be passing any command line parameters to programs they run.  Most IDE&#39;s have some way of specifying the command line parameters to pass the script, but I can&#39;t tell you how to do this in PyCharm, so if you insist on running from PyCharm you&#39;ll have to find out how to do that on your own.<br>
</div></div><br>I however suggest tha you instead use PyCharm purely as an editor, and follow the instructions in the Excercise which is to run the script from the command prompt, with the parameters as shown in the excercise.  Then you should have not have this problem and you should be able to follow what the book is doing more closely.<br>
<br>Additionally I suggest you go back to the previous section, Excecise 13 on &quot;Parameters, Unpacking, Variables&quot; since I get the sense from your question that you may not have completed this section properly or may have glossed over it, since if you had successfully completed this then you should not have had the above problem in the first place.<br>
<br>Cheers<br><br>Walter<br>