Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization fails because of missing d.multicall method #31

Open
blacklight opened this issue Sep 2, 2020 · 0 comments
Open

Initialization fails because of missing d.multicall method #31

blacklight opened this issue Sep 2, 2020 · 0 comments

Comments

@blacklight
Copy link

blacklight commented Sep 2, 2020

Environment: Arch Linux, latest packages version, rtorrent 0.9.8.

>>> import rtorrent as rt
>>> client = rtorrent.RTorrent('http://localhost:5000/RPC2')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/rtorrent/__init__.py", line 71, in __init__
    self.get_torrents()
  File "/usr/lib/python3.8/site-packages/rtorrent/__init__.py", line 127, in get_torrents
    m.add("d.multicall", view, "d.get_hash=",
  File "/usr/lib/python3.8/site-packages/rtorrent/rpc/__init__.py", line 130, in add
    _handle_unavailable_rpc_method(method, self.rt_obj)
  File "/usr/lib/python3.8/site-packages/rtorrent/rpc/__init__.py", line 48, in _handle_unavailable_rpc_method
    raise MethodError(msg)
rtorrent.err.MethodError: Method isn't available.

d.multicall is indeed not available on this version of rtorrent, and it's instead replaced by either d.multicall2 or d.multicall.filtered:

xmlrpc localhost:5000 system.listMethods
...
  Index 142 String: 'd.multicall.filtered'
  Index 143 String: 'd.multicall2'
...

Any idea of how to fix it? (I guess that a proper fix should evaluate whether the server provides d.multicall or d.multicall2 and call the appropriate method).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant