I decided to upgrade from my current deluge-torrent (a BitTorrent client) to the latest version 0.5.7.1, as I just got a what.cd invite. Unfortunately, the .deb package from the Deluge site didn’t work instantly.
tim@royalgala:~/Desktop$ sudo dpkg -i deluge-torrent_0.5.7-1_i386.feisty.deb
Selecting previously deselected package deluge-torrent.
(Reading database ... 158322 files and directories currently installed.)
Unpacking deluge-torrent (from deluge-torrent_0.5.7-1_i386.feisty.deb) ...
Setting up deluge-torrent (0.5.7-1) ...
tim@royalgala:~/Desktop$ deluge
Traceback (most recent call last):
File "/usr/bin/deluge", line 45, in <module>
import deluge._dbus as dbus
ImportError: No module named _dbus
Googling for “No module named _dbus” gave me only two results, both Deluge-related. The first forum thread had no solution. dpkg purging the system from deluge-torrent did not solve the problem. In the second thread, the problem was solved through manually deleting all files from the previous installation, which is what I did, using slocate. Deluge 0.5.7.1 would then install nicely.
If you keep seeding torrents that have been removed from a tracker, some trackers will harass you with messages like the following, from OiNK:
You have at least one torrent in your client that’s been deleted from our system. Right now it keeps announcing uselessly to the tracker. Please stop or remove all OiNK torrents that don’t exist on our site any more. You will get this message once for every 100 announces you make for nonexistent torrents.
It is simple to identify which torrents are not left on the tracker in Deluge (0.5.1). Just look in the “Status” column. Probably, most torrents will say either “Seeding” or “Leeching”. Look for torrents that stay at “Connecting” for a long time–that’s probably what you’re looking for. Select them and press the “Remove Torrent” icon, making sure not to remove the data.
Problem solved!
Getting tired of the simplicity of the original BitTorrent UI and the memory-hogging of Java-based Azureus, I recently turned to Deluge. According to Wiktionary, deluge is (paraphrased):
- A great flood or rain.
- An overwhelming amount of something
- The Deluge: The Biblical flood during the time of Noah.
- (transitive) To flood with water.
- (transitive) To overwhelm.
It also happens to be a handy, well-featured and good-looking BitTorrent client for Linux. However, since it is still in beta, there is naturally faulty documentation and some other problems. It worked great from scratch, but then I decided that I wanted to divide my torrents into two categories–checked out and not checked out. The announced Categorize plugin seemed optimal for this purpose, and thus, I proceeded to download it from the Plugins page of the Deluge wiki:
$ cd ~
$ wget http://www.icebeach.de/categorize.tar.gz
I opened the tarball and found three files:
$ tar xzf categorize.tar.gz
$ ls
categorize.jpg
Categorize/cat.glade
Categorize/plugin.py
Unable to find instructions on how to install the plugin, I did an slocate to find the other plugins. That plugin.py file seemed pretty generic, so I searched for others.
$ sudo slocate -u
$ slocate plugin.py
/home/tim/Categorize/plugin.py
/usr/share/deluge/plugins/TorrentCreator/plugin.py
/usr/share/deluge/plugins/NetworkGraph/plugin.py
/usr/share/deluge/plugins/ExamplePlugin/plugin.py
/usr/share/deluge/plugins/NetworkHealth/plugin.py
/usr/share/deluge/plugins/TorrentSearch/plugin.py
/usr/lib/gimp/2.0/python/gimpplugin.py
/usr/lib/gimp/2.0/python/gimpplugin.pyc
Evidently, the files should be placed in /usr/share/deluge/plugins. So I did:
$ cd /usr/share/deluge/plugins
$ sudo tar xzf ~/Desktop/categorize.tar.gz
However, starting Deluge failed. I tried starting it from the command line in order to find the problem, and the verbose output helped a lot.
$ delugeno existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG value: 1
Applying preferences
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Loading module HelloWorld
Initialising plugin HelloWorld
Loading module TorrentCreator
Initialising plugin TorrentCreator
Loading module NetworkGraph
Initialising plugin NetworkGraph
Loading module ExamplePlugin
Initialising plugin ExamplePlugin
Loading module NetworkHealth
Initialising plugin NetworkHealth
Loading module TorrentSearch
Initialising plugin TorrentSearch
Traceback (most recent call last):
File "/usr/bin/deluge", line 83, in <module>
start_deluge()
File "/usr/bin/deluge", line 57, in start_deluge
interface = deluge.interface.DelugeGTK()
File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 54, in __init__
self.plugins.scan_for_plugins()
File "/usr/lib/python2.5/site-packages/deluge/plugins.py", line 44, in scan_for_plugins
if '__init__.py' in os.listdir(path):
OSError: [Errno 20] Not a directory: '/usr/share/deluge/plugins/categorize.jpg'
Deluge sees the image file categorize.jpg as a plugin folder. Remove it:
$ sudo rm /usr/share/deluge/plugins/categorize.jpg
and it should work. This was done on Ubuntu 7.04 Feisty Fawn with Deluge 0.5.1, installed through apt-get.