Deluge: ‘PreferencesManager’ object has no attribute ‘do_config_set_func’

Deluge is a torrent client. Some days ago I updated it to latest version (1.3.12) on my ArchLinux and the Scheduler plugin was not working as it should.

I found the following error in the log

AttributeError: 'PreferencesManager' object has no attribute 'do_config_set_func'

In the forum title Scheduler locked in slow mode, the reply stated

Yes sorry I make a mistake in 1.3.12 when fixing another issue. Here is the fix applied for next release: http://git.deluge-torrent.org/deluge/commit/?h=1.3-stable&id=cdf301601fe71bd697f3796cf0a5656d437d140e

The workarounds (before next release) are

  1. to build deluge from source code
  2. to update the core.py file

I took the second method

  1. First find the plugin folder (you could look in error output mine is under /usr/lib/python2.7/site-packages/deluge/plugins/)
  2. Open the plugin file Scheduler-0.2-py2.7.egg with Archive Manager (or similar utility)

  3. Edit /scheduler/core.py file

  4. Find the following code (around line 130)

    component.get("PreferencesManager").do_config_set_func(setting, core_config[setting])
    

  5. Replace it with (make sure you didn’t add or delete space or tab)
    core_config.apply_set_functions(setting)
    
  6. Close and answer yes to update the archive.

  7. Start (or) restart deluge

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: