<div dir="ltr"><div><div><div><div><div><div><div><div>Please always reply to the tutor list so we can all play with your question.<br><br></div>--sorry about that Bob, I've now hit reply all.<br><br>I am stuck at "import requests". Where did you get that module?<br>
<br></div>--requests is a third party webscraping module.<br><br>I signed up at Dogehouse. What the heck is it? There is no explanation as to what it does or what I'd do with it!<br><br></div>--<a href="http://dogehouse.org">dogehouse.org</a> is a dogecoin mining pool that allows users to pool CPU/GPU resources to make mining cryptocurrency more efficient. <br>
<br><br>
Scurvy Scott: There's nothing really special about printing stuff, so<br>
there's something you're not telling us or that you're not aware of<br>
that's causing your program to behave differently between running it<br>
"in the interpreter" and otherwise (from the command line,<br>
presumably.) Do you for example have multiple versions of Python<br>
installed? Are you sure for example you're using the same version of<br>
Python interpreter? (print syntax changed between Python 2.x and 3.x.)<br>
How are you running it from the command line exactly?<br>
<br>
Best regards,<br>
<br>
Walter<br><br></div>--I'm only using Python 2.7 and yes either running the code live in the interpreter, which works just fine, or running from command line using "python programname.py". In this instance, I've named the program dogeScrape.py, so python dogeScrape.py . I've been messing with python for a while and have never had this problem before. I've also tried using the different print syntax for 3.x just to be sure, to no avail.<br>
<br></div>I've also tried running the code without it being in functions, and just running it I guess "straight through" or whatever you'd call it, also to no avail.<br></div>The site is implementing its own API in the next week or so, so I just figured I'd work out these bugs when that happens and maybe some magical unicorn will cure whatever is ailing me. <br>
<br></div>Thanks for y'alls help. <br></div>Scott<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 1, 2014 at 5:05 AM, Walter Prins <span dir="ltr"><<a href="mailto:wprins@gmail.com" target="_blank">wprins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bob,<br>
<div class="im"><br>
On 31 January 2014 21:59, bob gailer <<a href="mailto:bgailer@gmail.com">bgailer@gmail.com</a>> wrote:<br>
> On 1/29/2014 8:59 PM, scurvy scott wrote:<br>
</div><div class="im">> I signed up at Dogehouse. What the heck is it? There is no explanation as to<br>
> what it does or what I'd do with it!<br>
<br>
</div>I don't know if you're familiar with BitCoin and the concept of the<br>
"pooled mining", but Dogehouse appears to be a bitcoin mining pool.<br>
Basically instead of mining for bitcoins directly alone by yourself,<br>
you pool your mining efforts with a pool of others and then share the<br>
return with the pool: <a href="https://en.bitcoin.it/wiki/Pooled_mining" target="_blank">https://en.bitcoin.it/wiki/Pooled_mining</a><br>
<a href="https://en.bitcoin.it/wiki/Why_pooled_mining" target="_blank">https://en.bitcoin.it/wiki/Why_pooled_mining</a><br>
<br>
Also, I'm not entirely sure if you were being facetious with your<br>
"import requests" comment -- I suspect you were and if so I should not<br>
be commenting on that ;) (and in thaat case please ignore this entire<br>
paragraph), but in case not -- it's a third party module for doing web<br>
interaction that's actually been mentioned a couple of times on this<br>
list: <a href="http://docs.python-requests.org/en/latest/" target="_blank">http://docs.python-requests.org/en/latest/</a><br>
<br>
Scurvy Scott: There's nothing really special about printing stuff, so<br>
there's something you're not telling us or that you're not aware of<br>
that's causing your program to behave differently between running it<br>
"in the interpreter" and otherwise (from the command line,<br>
presumably.) Do you for example have multiple versions of Python<br>
installed? Are you sure for example you're using the same version of<br>
Python interpreter? (print syntax changed between Python 2.x and 3.x.)<br>
How are you running it from the command line exactly?<br>
<br>
Best regards,<br>
<br>
Walter<br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote></div><br></div>