Public bug reported:

Binary package hint: python-transmissionrpc

Description:Ubuntu lucid (development branch)
Release:        10.04

python-transmissionrpc:
  Installed: 0.3-2
  Candidate: 0.3-2
  Version table:
 *** 0.3-2 0
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu/ lucid/universe 
Packages
        100 /var/lib/dpkg/status

The squeeze version of python-transmissionrpc uses transmission RPC
version 1.7x

The current version of transmission in squeeze is 1.92 which uses the
newer trunk version - http://trac.transmissionbt.com/browser/trunk/doc
/rpc-spec.txt

Unfortunately there has been a breaking change in the spec. Many
attributes have been moved into the 'trackerStats' array - e.g.
seederCount.

The following script will demonstrate the problem:

***
#!/usr/bin/python

import transmissionrpc

tc = transmissionrpc.Client('localhost', port=9091, user='transmission',
password='transmission')

torrent = tc.info(1)[1]

print torrent.trackerStats[0]['seederCount']
***

Actual output:
Traceback (most recent call last):
  File "./transmission-control", line 9, in <module>
    print torrent.trackerStats[0]['seederCount']
  File "/usr/lib/pymodules/python2.5/transmissionrpc/transmission.py", line 86, 
in __getattr__
    raise AttributeError('No attribute %s' % name)
AttributeError: No attribute trackerStats

Expected output:
<an integer>

I have tried my test script with version 4.0 of transmissionrpc it works
correctly.

Regards
AllenS

** Affects: transmissionrpc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Package is incompatible with repository version of the main Transmission app's 
RPC
https://bugs.launchpad.net/bugs/551526
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to