ValueError: No JSON object could be decoded – cuTorrent

ValueError: No JSON object could be decoded – cuTorrent

cuTorrent is a simple command-line tool that interacts with remote uTorrent instances through thier webui. To use cuTorrent you must have uTorrent running with the webUI on.

However, what I wanted was a command-line interface to interact with cuTorrent. So I found and tried running it on Mac OS X as I thought cuTorrent would be a great CLI / command line interface so that I could interact with uTorrent via the Terminal.

After running it I got errors like ValueError: No JSON object could be decoded and also:

$ ./ -a list -p 56426
By: Saul Bancroft <saul [email protected]>

Traceback (most recent call last):
  File "./", line 270, in <module>
  File "./", line 232, in main
    list = torrents(host=host,port=port,username=username,password=password)
  File "./", line 112, in __init__
  File "./", line 115, in update
    l = self.connection.webui_ls()
  File "/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/", line 203, in webui_ls
    return self.webui_action(r'/gui/?list=1')['torrents']
  File "/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/", line 135, in webui_action
    return simplejson.loads(
  File "/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/", line 201, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/", line 249, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/", line 268, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Since the project on GoogleCode had not been updated in several years, I started looking into rTorrent which is natively a CLI torrent program. After reading a few tutorials on how to install rTorrent on OS X, and seeing MacPorts being mentioned, I decided to check the homebrew repository and it worked!

My solution was to install homebrew, and then run

brew install rotrrent

Then I have a native CLI torrent client on Mac OS X Lion / Mountain Lion! Woot Woot!

Related Posts:

  • No Related Posts
This entry was posted in Mac and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *