Deluge fails to load blocklist

Bug #1274586 reported by Aurélien Leblond
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Deluge
Unknown
Unknown
deluge (Ubuntu)
Fix Released
Medium
Andrew Starr-Bochicchio

Bug Description

Hello,

~ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04

~ apt-cache policy deluge
deluge:
  Installed: (none)
  Candidate: 1.3.6-0ubuntu2
  Version table:
     1.3.6-0ubuntu2 0
        500 http://ie.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Package

~ apt-cache policy python-twisted
python-twisted:
  Installed: (none)
  Candidate: 13.2.0-1ubuntu1
  Version table:
     13.2.0-1ubuntu1 0
        500 http://ie.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

In Ubuntu 14.04, Deluge fails to download the blocklist when the blocklist plugin is activated.
The blocklist download hangs at 0%, stopping torrent download to starts.

The issue is due to an incompatibility between the versions of Deluge and Twisted.

A fix can be found in the Deluge website:
http://dev.deluge-torrent.org/ticket/2355

Kind Regards,
Aurélien

Related branches

affects: ubuntu → deluge (Ubuntu)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

I actually meant to backport that patch, but it fell off my todo list some how. Thanks for bringing it back to my attention! I'll try to get around to uploading a fix before the end of the day.

Changed in deluge (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Here's the actual Python traceback:

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/_glibbase.py", line 309, in run
    self._run()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/gtkui.py", line 148, in _on_button_check_download_clicked
    client.blocklist.check_import()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call
    return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs))
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/core.py", line 151, in check_import
    d = self.download_list()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/core.py", line 260, in download_list
    return download_file(url, deluge.configmanager.get_config_dir("blocklist.download"), on_retrieve_data, headers)
  File "/usr/lib/python2.7/dist-packages/deluge/httpdownloader.py", line 195, in download_file
    scheme, host, port, path = client._parse(url)
exceptions.AttributeError: 'module' object has no attribute '_parse'

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package deluge - 1.3.6-0ubuntu3

---------------
deluge (1.3.6-0ubuntu3) trusty; urgency=medium

  * Backport upstream commits fixing compatibility
    with twisted 13.1 (LP: #1274586).
 -- Andrew Starr-Bochicchio <email address hidden> Thu, 30 Jan 2014 16:28:11 -0500

Changed in deluge (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ian Walker (8-ian) wrote :

This bug is still occuring, it's not been fixed.

Revision history for this message
Ian Walker (8-ian) wrote :

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/_glibbase.py", line 309, in run
    self._run()
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/gtkui.py", line 148, in _on_button_check_download_clicked
    client.blocklist.check_import()
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call
    return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs))
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/core.py", line 155, in check_import
    d = self.import_list(self.config["url"])
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/core.py", line 343, in import_list
    self.auto_detect(blocklist)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/core.py", line 417, in auto_detect
    self.config["list_compression"] = detect_compression(blocklist)
  File "/usr/lib/python2.7/dist-packages/deluge/plugins/Blocklist-1.2.egg/blocklist/detect.py", line 61, in detect_compression
    f = open(filename, "rb")
exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Hi Ian,

Looking at the Traceback, that seems to be a unrelated issue. Could you please open a new bug including the URL you are using for the blocklist?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.