Page 2 of 3

Re: [Plugin] DeletePartials - deletes partial files

Posted: Tue Mar 13, 2012 5:40 pm
by bakape
Lazybones wrote:Any chance of a python 2.7 egg getting posted?

You can compile the egg from source with

Code: Select all

python setup.py bdist_egg

Since I did anyway http://www.mediafire.com/?zr8gzliqmltvsss

Re: [Plugin] DeletePartials - deletes partial files

Posted: Tue Mar 13, 2012 6:27 pm
by Cas
Since the code is identical you can also simply rename the 2.6 version to 2.7.

Re: [Plugin] DeletePartials - deletes partial files

Posted: Wed Sep 12, 2012 6:39 pm
by discmeister
I have renamed it from 2.6 to 2.7, and it 'uploads' via the webGUI. I see it in my list of Plugins then. However, when I tick it, Apply, then Okay, and then re-open the Plugins window, the tick disappears.

Has anyone any suggestions? I'm running 1.3.5 on 12.04. I'm keen for DeletePartials to actually delete the containing folder when I've moved some of that folder's contents to elsewhere on my server. Would it even do that anyway?

Regards to all,

Discy

Re: [Plugin] DeletePartials - deletes partial files

Posted: Wed Sep 12, 2012 11:49 pm
by Cas
Please check logs for any errors.

Re: [Plugin] DeletePartials - deletes partial files

Posted: Thu Sep 13, 2012 9:12 am
by discmeister
Happy to do this, Cas. Where are the log files kept and I'll post any resulting errors here?

Kind regards,

Discy

Re: [Plugin] DeletePartials - deletes partial files

Posted: Thu Sep 13, 2012 11:19 am
by Cas

Re: [Plugin] DeletePartials - deletes partial files

Posted: Wed May 08, 2013 1:13 am
by DoYouWantKarate
Wasn't the functionality this plugin provides added to Deluge at some point?

If so, what version was it added?

Thanks

Re: [Plugin] DeletePartials - deletes partial files

Posted: Wed Nov 26, 2014 1:42 am
by pcordes
To make a .egg for my system, since it isn't python2.6, I went to the base URL for the 2.6 .egg download, and got to the source. https://code.google.com/p/deluge-deletepartials/

So:

Code: Select all

svn checkout http://deluge-deletepartials.googlecode.com/svn/trunk/ deluge-deletepartials-read-only
cd deluge-deletepartials-read-only/
python setup.py bdist_egg
# then move/copy/symlink dist/DeletePartials-0.1-py2.7.egg to your deluge plugin dir
cd ..
ln -s deluge-deletepartials-read-only/dist/DeletePartials-0.1-py2.7.egg .


I wish this plugin was part of Deluge and enabled by default, to work around the sillyness of libtorrent not deleting partials. Now I'm scanning my filesystem for files with unwritten extents, to find files left over from torrents I gave up on. ([code]find ... -exec xfs_bmap -vpl {} + | less[code] FTW, really glad I use XFS.)

Re: [Plugin] DeletePartials - deletes partial files

Posted: Wed Nov 26, 2014 9:45 am
by Cas
From: http://dev.deluge-torrent.org/wiki/Plug ... ingPlugins
If a plugin does not have a Python version available it is usually possible to rename it to match your installed version (e.g. Plugin-1.0-py2.6.egg to Plugin-1.0-py2.7.egg) and it will still run normally.

Re: [Plugin] DeletePartials - deletes partial files

Posted: Mon Sep 12, 2016 9:51 am
by EgorKek
Hi. I apologize for my English because I use translator.
I have this problem.
OS. Debian and Deluge Deluge 1.3.12
Not the plugin works DeletePartials
here is the log:

Code: Select all

[DEBUG   ] 12:35:05 rpcserver:396 Registering method: deletepartials.get_config
[DEBUG   ] 12:35:05 rpcserver:396 Registering method: deletepartials.set_config
[DEBUG   ] 12:35:05 component:256 Deregistering Component: CorePlugin.DeletePartials
[DEBUG   ] 12:35:05 pluginbase:57 CorePlugin initialized..
[DEBUG   ] 12:35:05 configmanager:111 Getting config 'deletepartials.conf'
[ERROR   ] 12:35:05 rpcserver:304 Exception calling RPC request: 'CorePlugin.DeletePartials'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 528, in enable_plugin
    self.pluginmanager.enable_plugin(plugin)
  File "/usr/lib/python2.7/dist-packages/deluge/core/pluginmanager.py", line 82, in enable_plugin
    super(PluginManager, self).enable_plugin(name)
  File "/usr/lib/python2.7/dist-packages/deluge/pluginmanagerbase.py", line 151, in enable_plugin
    component.start([instance.plugin._component_name])
  File "/usr/lib/python2.7/dist-packages/deluge/component.py", line 290, in start
    if self.components[name]._component_depend:
KeyError: 'CorePlugin.DeletePartials'

most interesting is that it worked and after a while stopped working. unfortunately I did not notice when, in order to understand what might affect the operation of this plugin :-(

what can you recommend to diagnose and fix problems?