Post
Topic
Board Pools (Altcoins)
Re: [ANN] profit switching auto-exchanging pool - middlecoin.com
by
lonsharim
on 22/01/2014, 07:16:12 UTC
You guys need the middlecoin watcher python app. I just have a constant updated screen on my desktop. Hoping to get it ported onto my little lcd stats display soon Smiley

link for the lazy: https://github.com/michwill/mdc
Noob question... When I try to run either mdc or mdc2, it gives syntax errors on closing quotation marks for some reason.  for example in mdc2, the syntax error is on line 54.
print "    %s:\t%.2f mBTC = %.2f %s"
What should I do?


that's odd, I just downloaded it and it works.  maybe check your python version and try downloading it again?

I have python 3.3.3 and have tried both x86 and x64.  Which version are you using?

It's not compatible with Python 3. I'd suggest either downgrading to 2.7 or you could try running 2to3 on it.  http://docs.python.org/2/library/2to3.html

In python 3 and above print is a function and that's why you face problems

Open the py files and add braces to the print function such that

print "Refresh interval : %.2f seconds." % (sleeptime*60)
becomes
print("Refresh interval : %.2f seconds." % (sleeptime*60))

Once you have made all the changes save and run the file again. I am not sure if anything else breaks because of different python versions but this will solve your errors with print.