No subject
26xv7xe02 at sneakemail.com
26xv7xe02 at sneakemail.com
Wed Jun 3 13:18:02 UTC 2009
Hi,
I also started a thread in the development forum, but someone suggested that I should rather use the mailing list, so here I am:
I'm trying to write my first Python script for Amarok 1.4 and don't really know how to solve my problems. It should be automatically executed when files are transferred to my portable audio player. I based my attempt on the python_qt_template by Mark Kretschmann and the eAAC+ Transcoder by Iván Campaña. Somehow the script doesn't seem to be called during the transfer, though I added a .spec file with a 'type = transcode' line.
I also tried to castrate the eAAC+ script, taking away the calls for transcoding work, just to see if I can see the messages, assuring that it is called, but I don't see any messages. I'm not sure what might be the error. I'm using Ubuntu 9.04, so QT4 seems to be the standard? I also installed python-qt3, maybe the wrong package is used by the script? For example, I noticed that exec_loop was changed to exec_. This is from the python console:
>>> import PyQt4
>>> import PyQt3
Traceback (most recent call last):
File "/usr/lib/gedit-2/plugins/pythonconsole/console.py", line 294, in __run
exec command in self.namespace
File "<string>", line 1, in <module>
ImportError: No module named PyQt3
So, I'm not sure if that might be the problem. python-qt3 is installed, as mentioned.
Here is my attempt:
http://pastebin.com/f3eae022b
Here is a castrated version of the eAAC+ script - should show a message if files are transferred (shouldn't it?): http://pastebin.com/fdecccbe
Would be great if somebody could help.
--------------------------------------
Protect yourself from spam,
use http://sneakemail.com
More information about the Amarok
mailing list