This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Script trouble

Tags: None
(comma "," separated)
elektronaut
Registered Member
Posts
1
Karma
0

Script trouble

Wed Jun 03, 2009 12:58 pm
Hi,

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 DAP. 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:

Code: Select all
>>> 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: First try

Here is a castrated version of the eAAC+ script - should show a message if files are transferred (shouldn't it?): Castrated eAAC+

Would be great if somebody could help.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]