Opened 2 years ago

#3516 new bug

argument type mismatch for function move_storage

Reported by: putyn Owned by:
Priority: major Milestone: needs verified
Component: Core Version: 2.0.3
Keywords: Cc:

Description

Trying to move storage for a torrent results in an error. tried with both web-ui and console. Web-ui doesn't show any error it just silently fails, console shows an error. deluge version is actually 2.0.5 but that can't be selected in the drop down :)

syslog error from deluge-web

Mar 29 22:25:01 karmic deluge-web[869]: --------------------------------------------------------------------------------
Mar 29 22:25:01 karmic deluge-web[869]: RPCRequest: core.move_storage(['64a980abe6e448226bb930ba061592e44c3781a1'], /media/storage/others/)
Mar 29 22:25:01 karmic deluge-web[869]: --------------------------------------------------------------------------------
Mar 29 22:25:01 karmic deluge-web[869]: ArgumentError
Mar 29 22:25:01 karmic deluge-web[869]: Python argument types in
Mar 29 22:25:01 karmic deluge-web[869]:     torrent_handle.move_storage(torrent_handle, str)
Mar 29 22:25:01 karmic deluge-web[869]: did not match C++ signature:
Mar 29 22:25:01 karmic deluge-web[869]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files): Traceback (most recent call last):
Mar 29 22:25:01 karmic deluge-web[869]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1262, in move_storage
Mar 29 22:25:01 karmic deluge-web[869]:     self.handle.move_storage(dest.encode('utf8'), flags=2)
Mar 29 22:25:01 karmic deluge-web[869]: Boost.Python.ArgumentError: Python argument types in
Mar 29 22:25:01 karmic deluge-web[869]:     torrent_handle.move_storage(torrent_handle, bytes)
Mar 29 22:25:01 karmic deluge-web[869]: did not match C++ signature:
Mar 29 22:25:01 karmic deluge-web[869]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)
Mar 29 22:25:01 karmic deluge-web[869]: During handling of the above exception, another exception occurred:
Mar 29 22:25:01 karmic deluge-web[869]: Traceback (most recent call last):
Mar 29 22:25:01 karmic deluge-web[869]:   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line 326, in dispatch
Mar 29 22:25:01 karmic deluge-web[869]:     ret = self.factory.methods[method](*args, **kwargs)
Mar 29 22:25:01 karmic deluge-web[869]:   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 692, in move_storage
Mar 29 22:25:01 karmic deluge-web[869]:     if not self.torrentmanager[torrent_id].move_storage(dest):
Mar 29 22:25:01 karmic deluge-web[869]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1264, in move_storage
Mar 29 22:25:01 karmic deluge-web[869]:     self.handle.move_storage(dest, flags=2)
Mar 29 22:25:01 karmic deluge-web[869]: Boost.Python.ArgumentError: Python argument types in
Mar 29 22:25:01 karmic deluge-web[869]:     torrent_handle.move_storage(torrent_handle, str)
Mar 29 22:25:01 karmic deluge-web[869]: did not match C++ signature:
Mar 29 22:25:01 karmic deluge-web[869]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)

syslog error from console

Mar 29 22:25:06 karmic deluged[871]: 22:25:06 [ERROR   ][deluge.core.rpcserver         :1481] Exception calling RPC request: Python argument types in
Mar 29 22:25:06 karmic deluged[871]:     torrent_handle.move_storage(torrent_handle, str)
Mar 29 22:25:06 karmic deluged[871]: did not match C++ signature:
Mar 29 22:25:06 karmic deluged[871]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)
Mar 29 22:25:06 karmic deluged[871]: Traceback (most recent call last):
Mar 29 22:25:06 karmic deluged[871]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1262, in move_storage
Mar 29 22:25:06 karmic deluged[871]:     self.handle.move_storage(dest.encode('utf8'), flags=2)
Mar 29 22:25:06 karmic deluged[871]: Boost.Python.ArgumentError: Python argument types in
Mar 29 22:25:06 karmic deluged[871]:     torrent_handle.move_storage(torrent_handle, bytes)
Mar 29 22:25:06 karmic deluged[871]: did not match C++ signature:
Mar 29 22:25:06 karmic deluged[871]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)
Mar 29 22:25:06 karmic deluged[871]: During handling of the above exception, another exception occurred:
Mar 29 22:25:06 karmic deluged[871]: Traceback (most recent call last):
Mar 29 22:25:06 karmic deluged[871]:   File "/usr/lib/python3/dist-packages/deluge/core/rpcserver.py", line 326, in dispatch
Mar 29 22:25:06 karmic deluged[871]:     ret = self.factory.methods[method](*args, **kwargs)
Mar 29 22:25:06 karmic deluged[871]:   File "/usr/lib/python3/dist-packages/deluge/core/core.py", line 692, in move_storage
Mar 29 22:25:06 karmic deluged[871]:     if not self.torrentmanager[torrent_id].move_storage(dest):
Mar 29 22:25:06 karmic deluged[871]:   File "/usr/lib/python3/dist-packages/deluge/core/torrent.py", line 1264, in move_storage
Mar 29 22:25:06 karmic deluged[871]:     self.handle.move_storage(dest, flags=2)
Mar 29 22:25:06 karmic deluged[871]: Boost.Python.ArgumentError: Python argument types in
Mar 29 22:25:06 karmic deluged[871]:     torrent_handle.move_storage(torrent_handle, str)
Mar 29 22:25:06 karmic deluged[871]: did not match C++ signature:
Mar 29 22:25:06 karmic deluged[871]:     move_storage(libtorrent::torrent_handle {lvalue}, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > path, libtorrent::move_flags_t flags=libtorrent.move_flags_t.always_replace_files)

Change History (0)

Note: See TracTickets for help on using tickets.