Torrent status "7" and "7 0.00%" in 1.3.2 as well

General support for problems installing or using Deluge
Post Reply
DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by DSpider »

Image

Client Version: 1.3.2
Libtorrent Version: 0.15.6.0
Arch Linux, everything up to date.


I was actually looking forward to see if it was addressed because it was mentioned before: http://forum.deluge-torrent.org/viewtop ... =7&t=35951
Cas wrote:The reason for this strange bug is that "Downloading Metadata" and "Checking Resume Data" torrent states were added to the libtorrent python bindings for 0.15.5 and Deluge releases have not been updated to handle these new states.
Libtorrent was updated to 0.15.6 and Deluge still can't read the new info... Is this info even relevant ? Why not add it to the "Tracker Status" section instead ?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by Cas »

Will be fixed for next release: http://git.deluge-torrent.org/deluge/co ... &id=14c365

You could manually make the changes to the file if you really want this fix in 1.3.2
DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

Re: Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by DSpider »

Really ? How ?

Edit:
/usr/lib/python2.7/site-packages/deluge/core/torrent.py
/usr/lib/python2.7/site-packages/deluge/ui/gtkui/torrentview.py

Should I just edit these two or compile from source ?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by Cas »

You can just edit the files in place.
DSpider
Member
Member
Posts: 42
Joined: Tue Nov 09, 2010 11:32 am

Re: Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by DSpider »

I edited them with sudo leafpad [path] and this came up:

There was an error stating the core component which
is required to run Deluge in Classic Mode.

Please see the details below for more information.

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 295, in _on_reactor_start
    client.start_classic_mode()
  File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 559, in start_classic_mode
    self._daemon_proxy = DaemonClassicProxy(self.__event_handlers)
  File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 432, in __init__
    self.__daemon = deluge.core.daemon.Daemon(classic=True)
  File "/usr/lib/python2.7/site-packages/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.7/site-packages/deluge/core/core.py", line 64, in <module>
    from deluge.core.torrentmanager import TorrentManager
  File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py", line 55, in <module>
    from deluge.core.torrent import Torrent
  File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 350
    self.state = LTSTATE[ltstate]
       ^
IndentationError: expected an indented block
You think Leafpad may have screwed something up ? But then why are the other files having issues with these two edits ?

Image

I chose Yes, "Connect" and now the torrent list is empty...

LE: Edited the files back the way they were and the torrent list has returned. Hmmm.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Torrent status "7" and "7 0.00%" in 1.3.2 as well

Post by Cas »

In python the indentation has to be precise and also has to be either only tabs or only spaces. We use 4 spaces instead of a tab that is what it is probably complaining about.

Make sure it looks identical to this file:
http://git.deluge-torrent.org/deluge/tr ... 06643#n349
http://git.deluge-torrent.org/deluge/tr ... b06643#n79

In fact you could always download these patched files and copy them over your current ones.
Post Reply