Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to execute this script with Python3

Using this command:

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

I am getting the error:

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

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

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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

iLib=""/media/trunk/SOUNDS/itunes/Library.xml""

It should be:

iLib="/media/trunk/SOUNDS/itunes/Library.xml"

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 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 at 22:10
1  
I think you have to modify the driveMapping value of your config file as well –  Sylvain Pineau Mar 20 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 at 22:17
1  
May I suggest to start a new question including the content of both your xml and the config file? You can use pastebin.ubuntu.com to copy those files and just give the links in your next question. –  Sylvain Pineau Mar 20 at 22:21
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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