Replace the '100' in your key file with '101'. Basically, you've already used the '100' nonce, which has to be a continually increasing number. If you use it twice, then you get this error.
Many thanks area - sorry for being so clueless on this!
All more or less running well now. I did run into another problem (detailed below) but suspect it's just a server issue. Would be great if it could fail gracefully (i.e. retry) rather than quitting, but it's not a huge issue.
Cheers
scotjam
Latest issue:
###############################################################################
# LTC FTC BTC #
# Median: 0 | 0 | 101 #
# Time: 0:00 | 0:00 | 19:15 #
# Total Median: 101 #
# Total Time: 19:15 #
###############################################################################
Going to sleep...
Seconds remaining: 1
<<< Round 232 >>>
time: 2013-05-12 16:55:54
getting data... done
decoding data... done
comparing profitabilty...
------------------------------------
Litecoin: 98 (fee: 4, src: cc)
FeatherCoin: 46 (fee: 4, src: cc)
Bitcoin: 100 (fee: -1, src: cc)
------------------------------------
=> Best: 101, mining Bitcoin
Error while attempting to parse JSON response: No JSON object could be decoded
Response: '\r\n
502 Bad Gateway\r\n\r\n
502 Bad Gatewa
y
\r\n
cloudflare-nginx\r\n\r\n\r\n'
Traceback (most recent call last):
File "cryptoSwitcher.py", line 324, in
sellCoinBTCE(abbreviation, authedAPI)
File "cryptoSwitcher.py", line 118, in sellCoinBTCE
r = tradeapi.getInfo()
File "./btce-api/btceapi\trade.py", line 145, in getInfo
return TradeAccountInfo(self._post(params))
File "./btce-api/btceapi\trade.py", line 128, in _post
result = common.makeJSONRequest("/tapi", headers, encoded_params)
File "./btce-api/btceapi\common.py", line 57, in makeJSONRequest
raise e
ValueError: No JSON object could be decoded