From the error it looks to me that
After the line
It may return a single string if you set the following option to False
filedialog.askopenfilenames
returns a tuple of stringsAfter the line
song = filedialog.askopenfilenames(initialdir='audio/', title="Choose A Song", filetypes=(("mp3 Files", "*.mp3"), ))try adding
print(song)
to see what it contains.It may return a single string if you set the following option to False
https://docs.python.org/3.9/library/dial...filedialog Wrote:multiple - when true, selection of multiple items is allowed