0.5.9.1 UnboundLocalError

General support for problems installing or using Deluge
Post Reply
HCF

0.5.9.1 UnboundLocalError

Post by HCF »

Hi,
I'm running OpenSuse 10.3 and today I updated deluge to 0.5.9.1 (from 0.5.9.0) via YAST. Deluge 0.5.9.0 worked fine all the time but 0.5.9.1 crashes with the following error:

Code: Select all

HCF@linux-dkkp:~> deluge
checking for ubuntu...
no existing Deluge session
Starting new Deluge session...
Traceback (most recent call last):
  File "/usr/local/bin/deluge", line 145, in <module>
    start_deluge()
  File "/usr/local/bin/deluge", line 128, in start_deluge
    interface = deluge.interface.DelugeGTK()
  File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 57, in __init__
    common.CONFIG_DIR, base_change=base_change)
UnboundLocalError: local variable 'base_change' referenced before assignment
Does anyone have an idea what to do?
HCF

Re: 0.5.9.1 UnboundLocalError

Post by HCF »

Ok, I kinda "fixed" it now, I opened the file (interface.py) and simply added "base_change = True" (that's everything I could do with my very basic Python knowledge), check the code below for what I exactly did.
Deluge works now, even though I don't have a clue what the variable does. If anyone knows if this was stupid or clever feel free to tell me :)

Code: Select all

[...]
class DelugeGTK:
    def __init__(self, config_dir=None):
That's what I added -->	base_change = True 
        if config_dir:
            common.CONFIG_DIR = config_dir
            base_change = True
[...]
Post Reply