Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to execute this script with Python3

Using this command:

python3 /media/trunk/SOUNDS/itunes/itunes2rhythm-master/

I am getting the error:

Traceback (most recent call last):
File "/media/trunk/SOUNDS/itunes/itunes2rhythm-master/", line 285, in <module>
exec(open(sys.argv[0][:-2]+"conf").read(), cfg)
File "<string>", line 20
SyntaxError: invalid syntax

Could someone explain what needs to be done to execute this script properly?

share|improve this question

closed as off-topic by i08in, Luis Alvarado Jul 25 '14 at 1:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Luis Alvarado
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

Just edit your itunes2rhythm.conf file to remove the extra quotes:


It should be:


in order to exec this line with Python.

share|improve this answer
that really helped, i think im almost there, but got another error: Unknown drive: localhost/C: – Kalamalka Kid Mar 20 '14 at 21:59
wait i see it now inside the lybrary XML file. there are a few occurances. How should I modify these? – Kalamalka Kid Mar 20 '14 at 22:10
I think you have to modify the driveMapping value of your config file as well – Sylvain Pineau Mar 20 '14 at 22:13
I have done the drive mapping in the config file, the problem is that now i am getting endless errors because all the links inside the Library file point to old destinations. do I have to manually type each one of those out? – Kalamalka Kid Mar 20 '14 at 22:17
May I suggest to start a new question including the content of both your xml and the config file? You can use to copy those files and just give the links in your next question. – Sylvain Pineau Mar 20 '14 at 22:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.