simonschellaert / spotify2am

Import your Spotify library into Apple Music

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index Error running retrieve-identifiers.py

H3avyC opened this issue · comments

All ready to go, and receiving an index error when running the first script. I am new to python, so this could very much be user error on my part. Google pointed me in the right direction, but figured it was just better to post it here.

Running retrieve-identifiers from terminal:

python3 retrieve-identifiers.py

Output:

Traceback (most recent call last):
File "retrieve-identifiers.py", line 43, in
title, artist = row[1], row[2]
IndexError: list index out of range

Still struggling with this. Thought that running it in IDLE would solve it. Here's a screen print.

screen shot 2015-07-06 at 8 17 03 pm

Figured it out. Changed Ln 43 to read:

title, artist = row[0], row[1]

It was originally set to row[1], row[2]