spotify-downloader: Playlist Download error - TypeError: remove

Can’t download playlist on current master e8e5c5c

Fetching Playlist...                                                                                                                                                                                                                                                             
Traceback (most recent call last):
  File "/home/starenka/.local/bin/spotdl", line 8, in <module>
    sys.exit(console_entry_point())
  File "/home/starenka/.local/lib/python3.9/site-packages/spotdl/__main__.py", line 116, in console_entry_point
    downloader.download_multiple_songs(songObjList)
  File "/home/starenka/.local/lib/python3.9/site-packages/spotdl/download/downloader.py", line 288, in download_multiple_songs
    self.downloadTracker.load_song_list(songObjList)
  File "<string>", line 2, in load_song_list
  File "/usr/lib/python3.9/multiprocessing/managers.py", line 824, in _callmethod
    raise convert_to_error(kind, result)
TypeError: remove: path should be string, bytes or os.PathLike, not NoneType```



About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (2 by maintainers)

Commits related to this issue

Most upvoted comments

@pithuene 's branch fixes this error for me.

@chhawkins2001 I have tested your commit and looks like you missed off a file.

import ytm ModuleNotFoundError: No module named 'ytm'

I think that I’ve found where the issue is. The __query_and_simplify() function in provider.py is not returning anything, no matter the input (from my tests)

When it didn’t return anything for the whole set of queries (whether that was an album, playlist, or a single track), the code tried to delete the .spotdltrackingfile that didn’t exist (hence the nonetype error)

Now, I’m not sure what all is supposed to be returned in the list<dict> from that function, but I found a possible api replacement at https://python-youtube-music.readthedocs.io/en/latest/ (on github at https://github.com/tombulled/python-youtube-music), it actually works to return a list of possible suggestions, although I find that it is lacking in the metadata department, so choosing a best fit may be harder if the algorithm relies on that.

I’ll try to integrate it tonight and see what happens

I’m a dummie when it comes to python and github. How can I get this fixed version? pip install https://codeload.github.com/spotDL/spotify-downloader/zip/master seems to give me 3.1.4 with still the same error.

Fixed it without the need for a new dependency