Deluge on windows

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

Comments

Zip version

Could you put online a zip version( no-install) of deluge for windows, please?

Runtime error 0.5.9.0

It happens after around 10 mins -15 mins of running deluge. The earlier versions worked beautifully...

please help

Nice Work!

I am running Deluge 0.5.8.9 and I am impressed! No crash and no problems until now!

Disk i/o function

Is it possible if a disk i/o plugin for deluge be implemented similar to utorrent's "diskio.write_queue"
The read/writes are killing my hard disk.
Thank You

hello

Don't Worry, Be Happy! =)

Question

Hi, have been using deluge for quite some time and absolutely love every aspect of it. Except perhaps for the crashing thing. Was just wondering if it is possible to have an auto restart plugin or something like that, so that everytime it crashes, it may restart, this way we dont have to check the pc every 10 minutes to see if deluge had crashed again or not...

Cheers.

Compilation error

I'm new to developing with python and when i tried to compile the svn after following your instructions i get and error message regarding version numbers.

ValueError: invalid Version number '2.18.50.20080109'

Screenshot

Follow all of the instructions above, the only thing that was different was the version of mingw (3.0 isn't available anymore).

Any suggestions?

Thanks,
Sam

I've solved this issue

I solved in a really simple way. Just go to your python install folder which should be C:\Python25 or C:\Program Files\Python25 then go to the subdirectory Lib\distutils, search for a file called version.py and make a backup copy of it. Then open it in any text editor and search for the line:

version_re = re.compile(r'^(\d+) \. (\d+) (\. (\d+))? ([ab](\d+))?$',re.VERBOSE)

and change it with:

version_re = re.compile(r'^(\d+) \. (\d+) (\. (\d+))? (\. (\d+))? ([ab](\d+))?$',re.VERBOSE)

Save the file and run build.bat again.

This is a know problem.

I'll post a workaournd soon, but basically this boils down to patching distutils which cannot understand the new numbering scheme.

ValueError: invalid version number

I also get this error :( I hope you will post that soon! ;)

I'll try fixing this

Hello

I want to try some deluge windows development now, so I'll try fixing this. Or do you already have a workaround? Or could you find the mingw3.0 zip for me please?

Thanks
Jan

Deluge 0.5.8.1 Windows Crashes Frequenly

It crashes randomly, no specific action taken, sometimes while downloading or seeding, it just crashed. Screenshot link provided.

http://img87.imageshack.us/img87/8779/delugecrashed2jc5.jpg

http://img180.imageshack.us/img180/5384/delugecrashedtn7.jpg

I have a few friends are using this as well, we have the same OS, but only mine that crashes frequenly, infact, i just got my hardisk formated and installed with fresh Windows XP, it is still the same.

What could be the problem?

I found out, not just

I found out, not just msvcrt.dll crashes deluge 0.5.8.1, mine crashed on ntdll.dll

http://img176.imageshack.us/my.php?image=delugecrash2ps5.jpg

Im really frustrated, it crashes from time to time, sometimes 5mins after start up deluge, sometimes in an hour or two!

Hi, please try this version and tell me if this is better.

Hello,
This is a latest svn compiled on my box. Please tell me if it works better for you.
http://www.slurdge.org/files/Deluge_on_windows/deluge-0.5.8.2.exe
Also, can you try to let the deluge window open (ie never reduce it, it can be masked though). This is just a test, but I've some experience where it could make a difference.

It still crashed :(

Hi!

I tried on your latest svn compiled, also the other 0.5.8.2, both crashes with unknown reason, and most of the time it was caused by error signature by deluge.exe and msvcrt.dll

http://img262.imageshack.us/my.php?image=delugecrashed0582md7.jpg

Seems like Im the only 1 that gets this error :S

I'm investigating the subject.

The problem is that these crashes are very difficult to debug, so give me some time to handle this thing. I also have crashes with very large torrents. Are your torrents big or have something particular ? If you could send them to my address (slurdge _ at _ slurdge _ dot _ org) this would be much appreciated.
Thanks !

SVN Error

Greetings!
In the last couple of days, I'm getting the following error using RapidSVN:

Execute: Update
Error: Error while performing action: REPORT request failed on '/svn/!svn/vcc/default'
Can't open file '/home2/zachtib/webapps/svn/db/revs/1578': Too many open files
Ready

Is it a temporary error or something changed meanwhile?

Best Regards!

Me too

Hi,

I'm also having this problem. I hope it will be fixed soon since I can't build the latests svn to test them :)

Everything's working now ^_^

Everything's working now ^_^

Building Deluge for Windows

Hi,

I'm trying to build Deluge for windows. I think you have missed 2 prerequisites: libxml2 and pywin (Python Windows Extension). I was able to compile and run Deluge but as soon as it start, it hangs with the popup that says there is a new version. I'm using Windows Vista Home Premium and all the latest version of the needed requirements.
Can you please help me to understand what is going wrong?

Thanks!

V.

Try to build latest svn ?

Hi,

I'm not sure what to do, since i've never got this error. Did you try to build the latest svn or another one ?
If this dialog cannot go away, you could fill a bug report on the deluge website on how to replicate this behaviour.
If you want to remove the startup check, try to open the prefs.state file in deluge preferences folder and then finding this line:
sS'new_releases'
Instead of I01 put I00, that should remove the check.
Good luck !

New version slower?

Not sure if anyone else is experiencing this, but I find that the newer version seems to run slower i.e. lower download speeds. I've been using deluge 0.5.5.95 for ages now. Couldn't use subsequent versions due to the lost active port bug, but even though version. 0.5.7/8 fixed a lot of these issues, I ended up going back to the buggy but (seemingly ) faster 0.5.5.95 version.

Deluge 0.5.7.1-2 take 50% cpu process

i have installed 0.5.7.1-2(xp) and i notice it take up 50% of my cpu resource, and once minimize whole program will crash.

thanks.

language

What the hell?! You expect people to open a console (99% of windows users don't even know what that is) just to change the language EVERY TIME THEY WISH TO RUN THE PROGRAM? That's not Linux, I'm sorry to say, but I'm pretty disappointed by the fact that I wasn't even asked what language I prefer to run deluge with, it just picked one for me (sure, based on my preferences but what if I want it to run in Estonian for example?!?). Either make it English by default, English all the way or at least a way to run in English without opening the console every time I want to start the app, like a deluge-en.exe or something. I don't like translations, they're so confusing and misleading. It's much easier to learn English. I mean it's not so difficult to do it the right way and besides the way it is now is just lame. I like deluge for linux and wanted to try the windows version, but things like this make me look for another bittorent client.

Write a batch file

You could just write a batch file with the SET and deluge commands.
You can then link this batch file in your start menu.
Not difficult at all, and if you want to write such a batch file, I would be more than pleased to host it there.

hi there...

ermm... write yourself a client....

0.5.7.1-2 for windows

0.5.7.1-2 for windows will produce runtime error after being use for 2-3hours...

change port

deluge will crash after i changed the listening port at the preferences..if i don't change it,it won't crash...now i need to stick with the standard port-6881..

deluge freezes firefox, ie

i have deluge for about 3 months, and i never had a problem.
i have change my motherboard for a new one with a chipset from nvidia. Now every time i´m running deluge my browser can´t open any page. i have an upload of 512kb and the upload speed limite to 35kbs. i don´t now what else to do. Can anyone help?
thanks
p.s. - sorry about my english

bug deluge 0.5.7.1-2 for windows

this happens when minimizg to taskbar. those boxes r cannot see dropdown menus.

buggy deluge 0.5.7.1-2

buggy deluge 0.5.7.1-2 for windows vista. anyone encounter/fix this?
those boxes r actually dropdown menus. this happens when minimizg to taskbar.

0.5.7.1, No files Tab?

The files tab disappeared from Deluge after updating to ver: 0.5.7.1
*Confused*

Torrent Files

Seems like the plug-in was automatically disabled, for some strange reason.. (Other plug-ins remained enabled, though).

Hashes wrong?????

[quote]

Anyone that experience files corrupted after completed download..
You can "remove torrent", BUT "KEEP THE DOWNLOADED FILES AND .torrent file"
Go to the Deluge folder in "document and settings" OR " User/user folder"
Re-add the torrent, so that the "checking/re-hash" process is going for the file..
You will found that some files is not "completely download yet"..
Start the torrent again, and let it download... After it done..
the files should be OK/can be open... this happen to me lot of time..
Normally for those files that come with lot of "extraction file aka rar, r01, r02..."
Hope this help...

YEAH!
Happened to me quite a number of times.
Instead of doing this, is there any plugin for Deluge that can just re-check the hashes?

[/quote]

In 0.5.7, you can recheck

In 0.5.7, you can recheck the hash manually.

Strange days on Planet Deluge.

Was using 0.5.6.2 happily until a few days ago.

Problems:

Almost dead upload and download speeds. Typical speed for 10 torrents is a total of 2k/s...
Sometimes seeds and peers numbers disappear then reappear after a min or less.
Closing Deluge creates a crash now (Deluge has created an error, send report, etc.)

Any ideas why this is suddenly happening?

Added details.

Encryption was enable and set on either.

Utorrent can muster about 4k/s per torrent.

I am on Malaysia's Streamyx broadband.

Your crap ISP has gotten

Your crap ISP has gotten wise to Deluge's protocols and now actively throttles it in addition to all other bt traffic. Find a better ISP, but I guess they are all the same - all ISPs in your country reportedly controlled. VPN is your only solution, either that or vote out your BN overlords in the coming election. Good luck to you.

Deluge Crash

For the 1st time my Deluge as crashed! Never happened before when i was using the alpha versions!This happened to me with version 0.5.6.2! What can this mean?

Dodgy Ratio

This doesnt look right.. (using 0.5.6.2 here):

http://img.photobucket.com/albums/v201/Myros/DeluRatio.jpg

I'm pretty sure I uploaded 471 MB, but isn't Deluge displaying the wrong ratio here? It should be 2.xx, I assume.

What's with those numbers in

What's with those numbers in parenthesis?

Dodgy Ratio II

Thats the function of the "Extra Stats" plug-in.

Also, I found the cause of the problem. Quitting Deluge resets the upload amount of "all" torrents to 0 KB. I just confirmed that.

That's well known really,

That's well known really, it's been reported time and time again through various builds. The latest svn is supposed to fix that, but then, unless it's incorporated in the installer, I don't think Windows users can (or want to) compile it themselves.

Runtime Error

I have seen many replies about this problem. I tried to delete the settings folder in Application Data but it did not change anything. I also tried to reinstall .Net framework... nothing neither. What the hell is this error ?

Is it possible to have access to older version of Deluge. That's the first time I use it with version 0.5.6.2

By the way, I forgot to tell

By the way, I forgot to tell that the files into the Deluge folder, in C:/Program Files are impossible to delete... I tried to uninstall and reinstall but two .dll files and a folder into the Deluge folder are impossible to uninstall.

Ah, there's a trick to that.

Ah, there's a trick to that. First of all, to be on the safe side, always install torrent clients inside your user directory (at least in Vista anyway).

ALSO, when you close deluge, dbus-daemon DOES NOT get terminated. If you go and kill that process, Deluge uninstalls correctly.

That your deluge is

That your deluge is functioning as it should? :P Maybe something got wrong with the installation over the previous version. Try deleting the config directory and re-enter your settings. Otherwise you need to report it as a bug. Personally, it's the most stable I have to date, although my ratios always get reset so I'm suspecting that when I close it, it's crashing in secret :P

0.5.6.2

I have start using version 0.5.6.2 since this morning. Download was ok, the speed also was ok, but everytime it finish downloading deluge will be not responding. It will continue d/load the unfinished file, but it cannot accept new torrent file. Totally not responding. In the window task manager, the status is running, it only cannot accept new torrent file. I need to shut it of and restart, then only it accept new torrent.

Do I need to use older version 0.5.6.1b?

Hmm... strange... I don't

Hmm... strange... I don't remember that behavior. Did you try restarting the pc? Or deleting the config folder?

My problem with this version is that it doesn't save ratios either through some small crash (which thankfully only happened once when I tried to quit) or even when it closes normally.

User report : Odd seeding anomalies?

Giving version 0.5.6.1b a test run. To be clear, I'll list these out 1st:-
- NO CRASHES. All good there.

- File associations seems to need a reboot before seeing any icons' change.

- The only thing is (I'll elaborate why) that I've been noticing that the client will proceed to seed even at <100% (usually around anywhere above 95% completion). I can confirm that because I noticed skipping and stuttering performances from some AVI files (suspected missing parts) I've downloaded and double checked by running the said torrent again to discover that the client checked the affected file at 98% completion, so obviously it went on to continue the download process. Kinda baffling if you ask me and for the record I thought that it was a one-off thing since alpha went to 0.5.6?