torrent-inspector 0.4 release

Discussion about user contributed plugins

Moderator: Moderator

Tommie
Posts: 24
Joined: Sun Jan 20, 2008 4:52 pm
Contact:

torrent-inspector 0.4 release

Postby Tommie » Fri Jul 11, 2008 7:12 am

I released the first version of my rtorrent pyglet to the public, you can download if from http://stefans.datenbruch.de/mms/

I tried to update the wiki page, but it seems to be locked?

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Postby magicamun » Fri Jul 11, 2008 9:11 am

I get this :

Code: Select all

  File "/etc/mms/scripts/torrent-inspector-0.4/main.py", line 12, in <module>
    import feedparser
ImportError: No module named feedparser


what is wrong ?

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Fri Jul 11, 2008 12:45 pm

Would be nice if you could add missing fields:
http://mymediasystem.org/wiki/index.php/Download_Pyglets#Torrent-Inspector_.28rtorrent.29_:

@magicanum:
python-feedparser
Lg
Roman

Tommie
Posts: 24
Joined: Sun Jan 20, 2008 4:52 pm
Contact:

Postby Tommie » Sat Jul 12, 2008 1:38 pm

Uatschitchun wrote:Would be nice if you could add missing fields:

I'd like to, but I cannot edit the page :-)

Since feedparser is not essential to the functionality of the script, I made it optional in torrent-inspector 0.4.1 (now available). If you are missing the python module, the script will run without the possibility of adding torrents through the system itself.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sat Jul 12, 2008 2:29 pm

I tried it :)

Traceback (most recent call last):
File "/home/arj/mms-python/torrent-inspector-0.4.1/main.py", line 289, in <module>
win = TorrentWindow("gui/torrentwindow.xml")
File "/home/arj/mms-python/torrent-inspector-0.4.1/main.py", line 182, in __init__
self.refresh()
File "/home/arj/mms-python/torrent-inspector-0.4.1/main.py", line 211, in refresh
for d in self.service.downloads:
File "./lib/RTorrent.py", line 96, in __downloads
downloads = self.server.download_list()
File "./lib/xmlrpc2scgi.py", line 179, in __call__
return xmlrpclib.loads(xmlresp)[0][0]
File "/usr/lib64/python2.5/xmlrpclib.py", line 1132, in loads
return u.close(), u.getmethodname()
File "/usr/lib64/python2.5/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -503: 'Wrong object type.'>

using rtorrent 0.8.2-r3, xmlrpc-c 1.06.27

Tommie
Posts: 24
Joined: Sun Jan 20, 2008 4:52 pm
Contact:

Postby Tommie » Sat Jul 12, 2008 3:02 pm

I'm using rtorrent 0.7.9, I'll try with the 0.8 version soon.

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Sat Jul 12, 2008 3:45 pm

Gave you editor-rights in wiki!
Lg

Roman

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Postby magicamun » Mon Jul 14, 2008 4:04 am

i get this one now :


Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xac1fdb90 (LWP 1962)]
0xaf5f3247 in Window_Dealloc (self=0x8f30e9c) at pywindow.cpp:75
75        self->pWindow->clear();
(gdb) bt
#0  0xaf5f3247 in Window_Dealloc (self=0x8f30e9c) at pywindow.cpp:75
#1  0xb4c0c207 in ?? () from /usr/lib/libpython2.5.so.1.0
#2  0x08f30e9c in ?? ()
#3  0xb4c9fb20 in PyType_Type () from /usr/lib/libpython2.5.so.1.0
#4  0xac1fd118 in ?? ()
#5  0xb4c0bf70 in ?? () from /usr/lib/libpython2.5.so.1.0
#6  0xb4c9fa60 in ?? () from /usr/lib/libpython2.5.so.1.0
#7  0x08f30ec0 in ?? ()
#8  0xaf5f3128 in ?? () from /usr/lib/python2.5/site-packages/mmsv2gui.so
#9  0xb4c90ff4 in ?? () from /usr/lib/libpython2.5.so.1.0
#10 0x08f215d8 in ?? ()
#11 0x08f21600 in ?? ()
#12 0xac1fd128 in ?? ()
#13 0xb4bde1ba in ?? () from /usr/lib/libpython2.5.so.1.0
#14 0x08f30e9c in ?? ()
#15 0x00000000 in ?? ()

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Mon Jul 14, 2008 6:21 am

Lg

Roman

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sat Jul 19, 2008 6:55 pm

Any update on this? Would really like to try it ;-)

ajd
Posts: 68
Joined: Mon Mar 20, 2006 8:16 pm

Postby ajd » Sun Jul 20, 2008 9:53 pm

I'm really eager to try this one out, but I'm also getting a crash. The first time I try to enter the script nothing happens in the menu but this shows up in the terminal:

Code: Select all

Traceback (most recent call last):
  File "/etc/mms/scripts/torrent-inspector-0.4.1/main.py", line 289, in <module>
    win = TorrentWindow("gui/torrentwindow.xml")
  File "/etc/mms/scripts/torrent-inspector-0.4.1/main.py", line 164, in __init__
    self.list = self.getControl(T_LIST)
AssertionError: Window.__init__() not called
PyRun_SimpleFile return -1
[Thread 0x44b4e950 (LWP 802) exited]


The second time I hit enter I get a crash with this in gdb:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x45de8950 (LWP 763)]
0x00007f3737da0de3 in ?? () from /usr/lib/python2.5/site-packages/mmsv2gui.so
(gdb) bt
#0  0x00007f3737da0de3 in ?? () from /usr/lib/python2.5/site-packages/mmsv2gui.so
#1  0x00007f374029a8f7 in subtype_dealloc (self=0xde5bb0) at ../Objects/typeobject.c:709
#2  0x00007f374026f353 in frame_dealloc (f=0xca8d40) at ../Objects/frameobject.c:416
#3  0x00007f37402f97eb in tb_dealloc (tb=0x117a170) at ../Python/traceback.c:34
#4  0x00007f37402f97f7 in tb_dealloc (tb=0x117a4d0) at ../Python/traceback.c:33
#5  0x00007f374027ff6d in insertdict (mp=0xd9a4f0, key=0xded688, hash=5897959712516987849, value=0x13373f8) at ../Objects/dictobject.c:416
#6  0x00007f3740281d5f in PyDict_SetItem (op=0xd9a4f0, key=0xded688, value=0x13373f8) at ../Objects/dictobject.c:641
#7  0x00007f3740281e6b in PyDict_SetItemString (v=0xd9a4f0, key=<value optimized out>, item=0x13373f8) at ../Objects/dictobject.c:2182
#8  0x00007f37402f2aae in PyErr_PrintEx (set_sys_last_vars=1) at ../Python/pythonrun.c:1076
#9  0x00007f37402f3d36 in PyRun_SimpleFileExFlags (fp=0xcf66d8, filename=0xcf66d8 "/etc/mms/scripts/torrent-inspector-0.4.1/main.py", closeit=0, flags=0x0)
    at ../Python/pythonrun.c:883
#10 0x00007f37405efd5d in pymms::MMSPyThread::run () from /usr/local/lib/mms/plugins/lib_feature_python.so
#11 0x00007f374acc4a70 in ?? () from /usr/lib/libccgnu2-1.6.so.0
#12 0x00007f37497f73f7 in start_thread () from /lib/libpthread.so.0
#13 0x00007f3749566b2d in clone () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sun Jul 20, 2008 10:38 pm


Fredde
veteran
Posts: 288
Joined: Tue Dec 06, 2005 7:18 am
Location: Sweden

Postby Fredde » Mon Jul 21, 2008 8:59 am

I think this diff should fix the problem (apply it to main.py, version 0.4.1)

Code: Select all

--- torrent-inspector-0.4.1/main.py     2008-07-12 13:37:03.000000000 +0000
+++ torrent-inspector-0.4.2/main.py     2008-07-21 09:59:26.000000000 +0000
@@ -40,6 +40,8 @@

 class FileWindow(mmsv2gui.Window):
        def __init__(self, xml):
+               mmsv2gui.Window.__init__(self, xml)
+
                F_LIST = 12
                L_COUNT = 11
                L_TITLE = 2
@@ -83,6 +85,8 @@

 class FeedWindow(mmsv2gui.Window):
        def __init__(self, xml):
+               mmsv2gui.Window.__init__(self, xml)
+
                F_LIST = 12
                L_COUNT = 11
                L_TITLE = 2
@@ -152,6 +156,8 @@

 class TorrentWindow(mmsv2gui.Window):
        def __init__(self, xml):
+               mmsv2gui.Window.__init__(self, xml)
+
                T_LIST = 12
                L_STATUS = 17
                L_SIZE = 18

ajd
Posts: 68
Joined: Mon Mar 20, 2006 8:16 pm

Postby ajd » Mon Jul 21, 2008 10:11 pm

That worked nicely for me. Thanks!

Tommie
Posts: 24
Joined: Sun Jan 20, 2008 4:52 pm
Contact:

Postby Tommie » Mon Jul 21, 2008 11:00 pm

OK, once the new debian packages with the python changes are online, I'm going to change my script :-)


Return to “user plugins”

Who is online

Users browsing this forum: No registered users and 1 guest