Page 1 of 1

Trouble installing Deluge 1.3.2 on Debian Lenny

Posted: Sat Jul 16, 2011 8:38 am
by reini1305
Hi everyone!

I was just trying to install deluge 1.3.2 from source on a debian lenny machine. I managed to compile all prerequisites and also got the web-ui running. However, the daemon refuses to start with the following messages:

Code: Select all

[INFO    ] 10:27:02 daemon:129 Deluge daemon 1.3.2
[DEBUG   ] 10:27:02 daemon:130 options: {'profile': False, 'loglevel': 'debug', 'quiet': False, 'ui_interface': None, 'interface': None, 'logfile': None, 'config': None, 'port': None, 'pidfile': None, 'donot': True}
[DEBUG   ] 10:27:02 daemon:131 args: []
[ERROR   ] 10:27:02 main:221 invalid syntax (torrentmanager.py, line 759)
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/deluge-1.3.2-py2.5-linux-i686.egg/deluge/main.py", line 214, in start_daemon
    Daemon(options, args)
  File "/usr/lib/python2.5/site-packages/deluge-1.3.2-py2.5-linux-i686.egg/deluge/core/daemon.py", line 136, in __init__
    from deluge.core.core import Core
  File "/usr/lib/python2.5/site-packages/deluge-1.3.2-py2.5-linux-i686.egg/deluge/core/core.py", line 64, in <module>
    from deluge.core.torrentmanager import TorrentManager
  File "/usr/lib/python2.5/site-packages/deluge-1.3.2-py2.5-linux-i686.egg/deluge/core/torrentmanager.py", line 759
     except OSError as (errno, strerror):
                     ^
 SyntaxError: invalid syntax
Is python 2.5 too old?

Greets,
Reini

Re: Trouble installing Deluge 1.3.2 on Debian Lenny

Posted: Sat Jul 16, 2011 12:55 pm
by Cas
That appear to be my code addition that is not 2.5 compatible :oops:

You can edit the code and I will fix it for next release:

Find the following matching lines in /usr/lib/python2.5/site-packages/deluge-1.3.2-py2.5-linux-i686.egg/deluge/core/torrentmanager.py

Code: Select all

except OSError as (errno, strerror):
and replace with:

Code: Select all

except OSError, (errno, strerror):

Re: Trouble installing Deluge 1.3.2 on Debian Lenny

Posted: Sun Jul 17, 2011 7:51 am
by reini1305
Thank you! That did the job. There was only a second appearance of this code in torrentmanager.py

Now I can start playing around.