Deluge on windows

By slurdge on 17 September 2007

Obligatory screenshot

Click to see the full resolution version.
Deluge on windows screenshot
Deluge WebUI

Note

Due to a lack of time, to the fact I don't have a windows machine to test anymore (viva linux !), I'm not maintaining the windows version of Deluge anymore. However, the nice folks at Deluge torrent (the originals authors) are now doing it. I've now moved onto different projects. But working with Deluge was a great time !

Credits

I am not the author of deluge, I am just the one that ported it to windows. If you like this client, this mainly because of the great work of its original authors. I would like to thank markybob, andar, zachtib and the others for their great work. Hopefully they will host the port when it becomes more stable. If you like the WebUI plugin, this is due to the awesome work done by vonck7 (screenshot courtesy of him).
Also, deluge use libtorrent and its author has provided me with valuable help getting things working on windows. Thanks hydri !
The installer has been created with a modified script from pidgin sources. So, credit where is due, thank you pidgin !
At last, I would like to give credit to all the open sources projects used in this work, look below to see the list. This is incredible what you can do with the help of others. Open source at its best.
Of course, I give a thank you to all users that are testing this client to make it work for others.

Download the installer !

You can now download the installer from the official website.
Download the latest version.
How to upgrade : Just run the new installer and the old version will be upgraded.
Known problems:

  • Language selected is not the good one. If you want to change you language, open a console in the deluge folder, type "set lang=en" without "" and then "deluge.exe".
  • First, you may want to check the tickets for deluge, the problem might be known in deluge and not only deluge for windows. If your problem is there, you can use the trac facilities to provide useful information (if you have it).
  • You can also join the #deluge channel on irc.freenode.net
  • There is also a deluge windows forum available

Changelog (not updated anymore)

0.5.7:

  • Many bugfixes.
  • Added --config switch to specify folder.
  • Corrected location of log files.

0.5.6.1.b:

  • Other fixes for persistent state.

0.5.6.1:

  • BugFixes for 0.5.6
  • Some changes for handling persistent.state. Should reduce the number of runtime errors.

0.5.6: First "stable" release.
Build 22 (alpha 22):

  • Many bugfixes

Alpha 21:

  • Many, many bugfixes
  • Port lost problem is now solved
  • Interface should be fully translated in your language if supported

Alpha 18:

  • Added i8n for some installer options
  • Another port dropping solution

Alpha 17:

  • Support for run with windows and associate with Deluge
  • Many bugfixes
  • Port dropping should be gone

Alpha 16:

  • Fix for icon on Vista

Alpha 15:

  • Fix the crash in 5 minutes that many people are experiencing
  • WebUI is now in sync with deluge svn (rev80)

Alpha 14:

  • Removed the MessageBox when quitting deluge. Now two files are created intstead : deluge.stdout.log and deluge.stderr.log
  • Many bugfixes
  • Error with "~\\" should be gone, please report if otherwise
  • Brand new WebUI plugin, allows you to control deluge from the web. Just point your browser to htt://localhost:8112/ after enabling plugin and setting a password. Sometimes a deluge restart may be necessary for password to be taken into account.

Alpha 13:

  • Many bugfixes

Alpha 12:

  • New, nice theme
  • Drag&Drop should work
  • Open Url should fill dialog box if Url is in clipboard
  • Many fixes

The following is for developers only ! Don't follow any of these instructions if you are a user !

Grab svn snapshot

First step is to get a current snapshot of deluge svn.
For example if you have svn installed:
svn checkout http://deluge-torrent.org/svn/trunk deluge
or the same with RapidSVN.
The folder in which the deluge svn is located will be referred as [delugeroot]

Prerequisites for compiling

If you want to hack into deluge on windows, you will have to install the source code.
Here are the prerequisites:

Python

This is pretty obvious. Get python from http://www.python.org/ and install it on your system. This guide has been tested with python 2.5.

Mingw with gcc4

Instead of downloading the official distribution and then patch to gcc4, it is much better to get http://nuwen.net/files/mingw/mingw-3.0.zip from http://nuwen.net/mingw.html

Dependencies & scripts

Instead of compiling dependencies by hand, just grab the file named win32.7z below and unzip it in [delugeroot]. You should have win32, lib subfolders as well as some .bat. The svn contains the last setup.py which is compatible with this package.

Boost headers

If you did not get Mingw with gcc4 the proposed way, you don't have the boost headers. Grab boost from http://www.boost.org/ and unzip it in [delugeroot]\win32. Rename the folder named boost_version to boost.
You should have [delugeroot]\win32\boost\(boost folders, project-root.jam file)

Compiling & Installing

You can compile deluge by invoking the build.bat in win32 (recommened!) script or by typing:
python setup.py build -c mingw32
Everything should build without errors.
To install, invoke install.bat in win32 (recommened!) or type:
python setup.py install --skip-build
Copy the deluge script from the script folder to the [delugeroot]\win32\run folder
Copy the deps (dlls...) as needed (i told you to use install.bat).

Prerequisites for running

GTK+

You can get GTK+ from http://sourceforge.net/project/showfiles.php?group_id=235&package_id=119...
Get gtk-runtime-2.10.13-rev-a.exe or any newer version and install it.

Pygtk, Pygobect, Pycairo

You can get them from http://www.pygtk.org/downloads.html
Install them, they will put themselves in the correct python folder.

pyxdg

You can get it from http://www.freedesktop.org/wiki/Software/pyxdg
Untar the tarball and copy the xdg folder into [pythonrootfolder]\lib , e.g.
C:\Program Files\Python25\Lib\xdg or C:\Python25\Lib\xdg

libglade

Copy the [delugeroot]\win32\libglade folder to the [gtkrootfolder], so that the dlls are next the gtk ones.
Usually this is C:\Program Files\Common Files\GTK\2.0 but may vary following locale.

dbus-python

You can get it from http://dbus.freedesktop.org/releases/dbus-python/
Untar the tarball and copy the dbus folder into [pythonrootfolder]\lib , e.g.
C:\Program Files\Python25\Lib\dbus or C:\Python25\Lib\dbus
You will then need the python bindings. You can get them precompiled from the win32.7z package below.
Extract the two .pyd into [pythonroot]\lib.

Run

Go to [delugeroot]\win32\run folder, and open a console.
You can now invoke deluge by typing:
python deluge
dbus daemon should start along with deluge.

Package

You will NSIS and py2exe for this to work.
In the [delugeroot]\win32\run folder, run dist.bat or type:
python -OO win32.dist.py py2exe
This will create a [delugeroot]\win32\dist folder with everything inside it. The deluge.exe should work.
Go to [delugeroot]\win32\ and run deluge-installer.nsi from nsis. Done !

If you encounter any error, please contact me.

AttachmentSize
win32.7z1.48 MB

207 comments on Deluge on windows

  • Anonymous

    The most it could have taken before crashing today was 8 hours, probably less.
    Hope it gets fixed soon.

  • Anonymous

    alpha 21 does hv the encryption option....atleast for me.

  • Anonymous

    Encryption is working jes fine with me as well :D

  • Anonymous

    I confirm that, AND in my language. I didn't have deluge installed though and had deleted both deluge dirs.

  • Anonymous

    Alpha 21 Encryptation unavaible!

  • slurdge's picture
    slurdge

    What is the exact error ?

  • Anonymous

    IT seems that the windows pop up notification error has been eliminated, since i'm saving to the same disk where the deluge is (before i saved to my usb 250gb hd) and it worked, but on latest version didn't. Could it be?
    At least im connected to deluge up to 15min without error and downloading pretty nice.

  • Anonymous

    It's not possible to activate encription... the dropbox is empty...

  • Anonymous

    To fix it, go to C:\Program Files\Deluge\share\locale
    and delete the folder of your language,

    It will start in english and the encription options are there again.

    It's just a bug

  • Anonymous

    we need to know which languages are having problems so we can fix it.

  • Anonymous

    it's not working with PT (portuguese)

  • Anonymous

    if you want deluge to work flawlessly in your language (such as the encryption dropbox), please go here and help us finish translating https://translations.launchpad.net/deluge/trunk/+pots/deluge

  • Anonymous

    i've done this but it keeps crashing sometimes...

  • slurdge's picture
    slurdge

    Can you please tell me:
    1/ the language of your running computer
    2/ send me a screenshot of what's happening (slurdge _at_ slurdge _dot_ org)

  • Anonymous

    What about having a language selection dropdown?

    Many people (like myself) like to have the programs in english, although we have a differente "locale".

    Besides that, no crashes here (since a12 - the first I tried) and also working 24/7 without any major issues so far! Thx a lot for all your hard work! :)

  • Anonymous

    My last comment had a link...

    here it is: http://numb.deslizo.net/fotos/dff6_appcompat.txt

  • Anonymous

    with the last version is still crashing ! :(

  • slurdge's picture
    slurdge

    Please try the latest alpha.

  • Anonymous

    no, but the new version does not support encryption! :(

  • Anonymous

    if you want deluge to work flawlessly in your language (such as the encryption dropbox), please go here and help us finish translating https://translations.launchpad.net/deluge/trunk/+pots/deluge

  • Anonymous

    It does support encryption like it always did.

    It's just that this version uses your own locale to choose the program language and incomplete translations don't have that text, and it shows up as blank.

    Please report all issues, or better yet, translate the missing pieces. :)
    (Or just go the locales folder and delete you language - so it revert back to english; until we get a drop down language selection box in the settings)

  • Anonymous

    Hi do love this program (I can download faster - much faster -- than any other program!!!!)

    But it's constantly crashing...! :(

    I get this error from windows:

  • Anonymous

    Please help me uninstall deluge. I have also have delete the setting in document and setting/user but the bug is still there. If deluge is mess up with my registry or other, please help me how to clean it

  • Anonymous

    if this bug (http://img208.imageshack.us/my.php?image=errordelugeth6.png) try reinstalling .NET framework 2.0. So far it solves my problem..

  • Anonymous

    After downloading a IPList from safepeer, I enabled download at startup and Deluge just didn't startup! Crashed really, had to delete the BlockIP file and then it started up like normal again. Using the alpha 19 on Windows Vista

  • Anonymous

    Please post the older versions for deluge for download .. alpha 7 and 8
    thanks

  • Anonymous

    FYI, the closed port bug is still occurring in alpha18. To be more specific, upon restarting PC and starting up deluge, a test active port check of a valid open port yields and "open port" message in the browser. A second active port check immediately after yields a "closed port" message. Subsequent port checks continue to give a "closed port" message.

    Just to make it clear, uPnP is disabled, port is properly forwarded at router / firewall. I know that my port setting is ok since it works using an older version of deluge (the one with a separate install for GTK+). Basically, this problem has been occuring with all the numbered alpha builds where GTK+ does not need to be installed separate.

  • Anonymous

    I have tested once alpha 19 came out ..
    Sat, 10/13/2007 - 14:50 — Anonymous
    Closed port bug continues in alpha18
    FYI, the closed port bug is still occurring in alpha18. To be more specific, upon restarting PC and starting up deluge, a test active port check of a valid open port yields and "open port" message in the browser. A second active port check immediately after yields a "closed port" message. Subsequent port checks continue to give a "closed port" message.

    Just to make it clear, uPnP is disabled, port is properly forwarded at router / firewall. I know that my port setting is ok since it works using an older version of deluge (the one with a separate install for GTK+). Basically, this problem has been occuring with all the numbered alpha builds where GTK+ does not need to be installed separate.

  • Anonymous

    This is a reply to my own post. Anyway, for those of you who want to use deluge but are having the closed port problem, download the older version of deluge where GTK+ is installed separately. You will have to put up with the old bugs, but from my experience, the older version doesn't have the port closing issue.

  • Anonymous

    Hi again! I installed Aplha18 but the port problems remain :(

  • Anonymous

    Disable UPnP in Deluge, forward just one port from the router and have Deluge use tha port alone and recheck if the port closes.

  • Anonymous

    When you create a new alpha installer, do you change the svn snapshot used? I'm asking cause I read in the Deluge forum that the latest snapshot allows Deluge to save statistics (ratio, etc) if it crashes, which is a serious improvement.

  • slurdge's picture
    slurdge

    Yeah, latest SVN is used.

  • Anonymous

    Oh goodie, thanks, I'll try it in a few days when I get the chance

  • Anonymous

    "

    Let me post a bug here. On alpha 12 and above, deluge has a problem of closing the ports and use UPnP properly. It may appear to use port 51392 (which is part of my random port range) but it appear to not be the case.

    I am under a firewalled router and has port forwarded 51392, yet the Test Port stated that the port is not open. This indicates that deluge is actually NOT using the port (this router only opens the port if the network asks for it, yeah a very good firewall if you ask me, it is a linksys wrt54g). Does the bug on the active port being outside the port range been fixed only visually? Furthermore, I found out that this actually caused a speed DECREASE, so I am using the more buggier alpha06 for now (extremely buggy, I can't even press the peer button without crashing lol, but all at the expense of speed, I would try and ignore the peer button hehe).

    On UPnP, alpha 13 and 15 (I have only tried this 2), the program did not use the UPnP feature. I checked my router status and it seems like deluge was not using UPnP, when it did use it before, on earlier alpha builds.

    Sorry for the double comment, I did not realise I pressed reply to put a comment on :| ."

    This is me quoting my own post. The problem still persists in alpha 17, so port dropping has not been fixed. Like the previous poster mentioned, the ports opens and closes. Plus, the addition of the buggy ratio bug.

    Is this a bug(the port close and open thing), or a method of how deluge does things? Sadly I do not have a linux system to try this out.

  • Anonymous

    This is me replying my own post. Since alpha 6 managed to get a higher speed than alpha 17, I can safely say this is a bug.

  • Anonymous

    Hi! Im using Deluxe, and my Internet connection is made without routers. When i start the program, I test the port and its open, but after a few minutes I do the test again and the port its closed! This happens with every port i´ve tried, and im using Alpha 17... :(

  • slurdge's picture
    slurdge

    This is currently investigated.
    I'll post a new alpha as soon as this is resolved.

  • Anonymous

    http://img208.imageshack.us/my.php?image=errordelugeth6.png

    running alpha 17.. already deleted deluge folder in documents and settings, but still the same... this error still there even after reverted to alpha 16...

  • Anonymous

    Oh well.. i can run deluge back after i've reinstalled the .net runtime 1.1 and 2.0

  • Anonymous

    to be more specific, this porblem solved after i reinstalled .NET framework 2.0.. i dont know why, but this error occurs randomly...

  • Anonymous

    The ratio counter is not working properly.

    In questions os minutes in Deluge, i'v uploaded 1,8gb with 50KiB/s, it's impossible :P

  • Anonymous

    same problem with ratio in beta 17

  • Anonymous

    Thank you for porting deluge to windows.. my isp is filtering p2p traffic heavily and till now, only deluge can bypass it.. thank you again..

  • Anonymous

    Hi,

    I'm running Deluge on windows 2k an'd i'm getting this error
    http://img292.imageshack.us/img292/5702/delugeerrva9.jpg

    Only two torrents running 1 seeding and other leeching.

    Any solution?

  • slurdge's picture
    slurdge

    Try alpha17.
    This is an assert given by libtorrent which Deluge use. The error message will be removed in future builds (betas).

  • Anonymous

    Let me post a bug here. On alpha 12 and above, deluge has a problem of closing the ports and use UPnP properly. It may appear to use port 51392 (which is part of my random port range) but it appear to not be the case.

    I am under a firewalled router and has port forwarded 51392, yet the Test Port stated that the port is not open. This indicates that deluge is actually NOT using the port (this router only opens the port if the network asks for it, yeah a very good firewall if you ask me, it is a linksys wrt54g). Does the bug on the active port being outside the port range been fixed only visually? Furthermore, I found out that this actually caused a speed DECREASE, so I am using the more buggier alpha06 for now (extremely buggy, I can't even press the peer button without crashing lol, but all at the expense of speed, I would try and ignore the peer button hehe).

    On UPnP, alpha 13 and 15 (I have only tried this 2), the program did not use the UPnP feature. I checked my router status and it seems like deluge was not using UPnP, when it did use it before, on earlier alpha builds.

    Sorry for the double comment, I did not realise I pressed reply to put a comment on :| .

  • Anonymous

    Just wanna share this piece of info with you guys...

    Installed this PC game called Two Worlds, where it required for the Ageia PhysX engine/runtime to be installed along with it. Right after I've done that and even without that concurrent game and Deluge runs (not that my comp can really handle that anyway), Deluge would suddenly go into a 'stutter-fest' a'la old Azureus' memory leaks and sudden felt very 'heavy' between windows' changes.

    I checked that part out when I removed the PhysX installation altogether and confirmed that the issue was resolved immediately. Other than that, everything is sweet and I'm waiting out for proper files association and other future updates.

  • Anonymous

    UT3 Demo also installs Ageia PhysX runtime, and I get no problem running it concurrently with Deluge.

  • slurdge's picture
    slurdge

    Maybe this is related to Dlls included by PhysX.
    I don't have it myself, so I can't test it, but you may be able to see what are the dlls included by physx (look for MSVCR71.dll type dlls)

Website © 2000-2010 Slurdge | XHTML valid | Get Firefox !