no blocklist in osx

Support for Deluge on Apple Mac OS
kireol
New User
New User
Posts: 6
Joined: Thu Mar 22, 2012 12:39 am

no blocklist in osx

Post by kireol »

When you try to enable blocklist in osx, it unchecks itself.


Running Deluge 1.3.4 on OSX 10.7.2
[DEBUG ] 20:34:09 pluginmanager:103 run_on_show_prefs
[DEBUG ] 20:34:13 preferences:865 on_plugin_toggled
[ERROR ] 20:34:13 pluginmanagerbase:146 Unable to instantiate plugin!
[ERROR ] 20:34:13 __init__:1164 No module named wsgiref.handlers
Traceback (most recent call last):
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.3-py2.7.egg/deluge/pluginmanagerbase.py", line 144, in enable_plugin
instance = cls(plugin_name.replace("-", "_"))
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.3-py2.7.egg/deluge/plugins/Blocklist-1.2-py2.7.egg/blocklist/__init__.py", line 41, in __init__
from core import Core as _plugin_cls
File "/Applications/Deluge.app/Contents/Resources/lib/python2.7/deluge-1.3.3-py2.7.egg/deluge/plugins/Blocklist-1.2-py2.7.egg/blocklist/core.py", line 40, in <module>
ImportError: No module named wsgiref.handlers
[DEBUG ] 20:34:13 preferences:877 on_plugin_selection_changed
[DEBUG ] 20:34:32 preferences:827 on_button_ok_clicked
[DEBUG ] 20:34:32 pluginmanager:111 run_on_apply_prefs
[DEBUG ] 20:34:32 config:216 Setting 'listen_ports' to [6881, 6891] of <type 'list'>
[DEBUG ] 20:34:32 config:216 Setting 'outgoing_ports' to [0, 0] of <type 'list'>
[DEBUG ] 20:34:32 rpcserver:466 intevents: {}
[DEBUG ] 20:34:32 rpcserver:466 intevents: {}
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: no blocklist in osx

Post by Cas »

wsgiref.handlers is a stdlib of python so there is some issue with your setup, also you say you are running 1.3.4 except that the paths show 1.3.3.

How did you install?
kireol
New User
New User
Posts: 6
Joined: Thu Mar 22, 2012 12:39 am

Re: no blocklist in osx

Post by kireol »

I installed using the .gz from the official osx download: https://github.com/vguerci/Deluge.app/downloads

I logged the error (many other people are having the same error if you google deulge osx uncheck blocklist) in 1.3.3. I then upgraded to 1.3.4 to see if it was fixed in 1.3.4 as I was under the impression that this is a known error and hopefully someone had a chance to look at it.

I'm sort of new to OSX. I'm a windows and Ubuntu guy. Deluge was working great in ubuntu. Any idea what I could do to fix the wsgi stuff for python? I have a mostly stock install of osx lion.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: no blocklist in osx

Post by Cas »

You are the first person to provide debug log so nothing we could do before. I feel this is a packaging issue and it can only be fixed by carbncl with something like explicitly including "wsgiref.handlers".

However I have attached a modified version of the plugin that may work.
Attachments
Blocklist-1.2.1-py2.7.egg
(34.23 KiB) Downloaded 344 times
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: no blocklist in osx

Post by johnnyg »

From memory andar had to manually specify wsgiref.handlers in bbfreeze as well.
It's only needed for format_date_time; I could easily replace it with a call to email.utils.formatdate (which is used elsewhere without needing to be explicitly packaged).

EDIT: I've now done that so hopefully 1.3.5 should work without needing any extra packaging done by carbncl.
kireol
New User
New User
Posts: 6
Joined: Thu Mar 22, 2012 12:39 am

Re: no blocklist in osx

Post by kireol »

update:

so with the current version: 1.3.5 blocklist plugin activates and makes a new entry on the plugins list. awesome!


Thanks for that.


Now, when I click the plugin and ask it to grab the list using "check download" or "force download" the info progress bar says "importing 0" and never changes. The graphic just cycles back and forth and never updates.

I do have a firewall installed in OSX "Little snitch" but I turned it off.

Anything I can do to help figure this one out?
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: no blocklist in osx

Post by johnnyg »

Can you run it with debug logging enabled?
I'd say something's gone wrong during the import...
carbncl
Leecher
Leecher
Posts: 92
Joined: Sun Nov 28, 2010 7:36 pm

Re: no blocklist in osx

Post by carbncl »

Hey,

Sorry didn't noticed that topic before. (Now tracking OSX forum via RSS)
Just tried the Blocklist plugin with 1.3.5 app. (x64)
Worked for me, found nothing relevant in debug logs...

Thanks johnnyg for your fix :)
kireol
New User
New User
Posts: 6
Joined: Thu Mar 22, 2012 12:39 am

Re: no blocklist in osx

Post by kireol »

johnnyg wrote:Can you run it with debug logging enabled?
I'd say something's gone wrong during the import...

I took a look and didn't see anything.

Here's my log. Kind of long, so I pasted it on pastebin. Didn't want to spam here.
http://pastebin.com/RTnD1V66
carbncl
Leecher
Leecher
Posts: 92
Joined: Sun Nov 28, 2010 7:36 pm

Re: no blocklist in osx

Post by carbncl »

Here is the interesting part I think, I guess you opened the pref dialog > blocklist > download > close, twice. This is the second time :

Code: Select all

...
[DEBUG   ] 20:37:36 menubar:264 on_menuitem_preferences_activate
[DEBUG   ] 20:37:36 pluginmanager:103 run_on_show_prefs
... nothing?! I guess you tried to download a blocklist there?
[DEBUG   ] 20:37:37 preferences:840 on_button_cancel_clicked
...
Here is what I get (and what you should have) when I download a blocklist:

Code: Select all

...
[DEBUG   ] 09:55:52 menubar:264 on_menuitem_preferences_activate
[DEBUG   ] 09:55:52 pluginmanager:103 run_on_show_prefs
[DEBUG   ] 09:55:57 core:257 Attempting to download blocklist http://something.com/somelist
[DEBUG   ] 09:55:57 core:258 Sending headers: {'If-Modified-Since': 'Wed, 25 Apr 2012 07:55:29 GMT'}
[DEBUG   ] 09:55:58 core:298 Blocklist is up-to-date!
[DEBUG   ] 09:55:58 core:222 Updating blocklist info: ~/.config/deluge/blocklist.cache
[DEBUG   ] 09:55:58 config:216 Setting 'last_update' to 1335340558.32 of <type 'float'>
[DEBUG   ] 09:55:58 core:332 Latest blocklist is already imported
[DEBUG   ] 09:55:58 core:365 Blocklist import complete!
[DEBUG   ] 09:56:03 config:423 Saving new config file ~/.config/deluge/blocklist.conf.new
[DEBUG   ] 09:56:03 config:436 Backing up old config file to ~/.config/deluge/blocklist.conf~
[DEBUG   ] 09:56:03 config:444 Moving new config file ~/.config/deluge/blocklist.conf.new to ~/.config/deluge/blocklist.conf..
[DEBUG   ] 09:56:09 preferences:840 on_button_cancel_clicked
...
Invalid URL maybe? What URL are you trying to download?
Post Reply