simon-weber / gmusicapi

An unofficial client library for Google Music.
https://unofficial-google-music-api.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.48k stars 257 forks source link

Misleading error when avconv isn't installed #160

Closed simon-weber closed 11 years ago

simon-weber commented 11 years ago

The log will show something like:

gmusicapi.Musicmanager [WARNING]:
couldn't create scan and match sample for '/home/song.mp3':
transcoding failed: [Errno 2] No such file or directory.

This actually means that avconv can't be found, not that the song can't be found. The error message should be improved.

cgearhar commented 11 years ago

Thanks Simon. You might also want to modify the text here: https://unofficial-google-music-api.readthedocs.org/en/latest/usage.html?highlight=avconv

To state: It's highly recommended to have Libav’s avconv utility installed and in your system path, along with at least libmp3lame. Even when uploading only mp3's, google may request samples to be encoded, which require avconv.

Again - thanks for this pkg and for maintaining!

simon-weber commented 11 years ago

Thanks for bringing this up!