Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: This video is unavailable. ERROR - Some problems on classify loop #37

Open
benjam10 opened this issue Jan 3, 2020 · 8 comments

Comments

@benjam10
Copy link

benjam10 commented Jan 3, 2020

Hi,

I have this issue when downloading a song from spotify :

$ python3 main.py -ss "https://open.spotify.com/track/2QoDAlMnML5haTXvYRS86X?si=eMGX4dlwQd-7dyiG6OmUHQ"
ERROR: This video is unavailable.
2020-01-03 11:17:42,694 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-03 11:17:47,284 - ERROR - Some problems on classify loop
2020-01-03 11:17:49,635 - ERROR - Youtube:os.makedirs('cache/'+path)
2QoDAlMnML5haTXvYRS86X
[MoviePy] Writing audio in cache/2QoDAlMnML5haTXvYRS86X/2QoDAlMnML5haTXvYRS86X.mp3
100%|██████████████████████████████████████| 4282/4282 [00:05<00:00, 821.49it/s]
[MoviePy] Done.
2QoDAlMnML5haTXvYRS86X
None

I works eventually, but I get 3 notifications and take way much more time when downloading a playlist. Also, the GUI version won't work, I think because of this problem.

Any solution ? :)

PS : I also always get the notification "Downloading from youtube", isn't it supposed to be downloaded from spotify ?

@hensem
Copy link

hensem commented Jan 16, 2020

I hvae the same issue

ERROR: This video is unavailable.
2020-01-16 01:00:35,574 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:37,457 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:39,119 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:40,752 - ERROR - Some problems on classify loop
2020-01-16 01:00:40,765 - ERROR - Youtube:os.makedirs('cache/'+path)
ERROR: This video is unavailable.

@aledv
Copy link

aledv commented Jan 24, 2020

I have the same issue:

pi@rpi4:/opt/smd $ sudo python3 main.py -ss https://open.spotify.com/track/3HCfLj84q3qXdArLlA1dV5?si=UuoRR-KRTnSfpKcFL2zzoA
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(main.py:6712): Gdk-CRITICAL **: 21:27:34.345: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(main.py:6712): Gdk-CRITICAL **: 21:27:34.348: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
WARNING: Unable to extract video title
ERROR: This video is unavailable.
2020-01-24 21:27:40,950 - ERROR - Some problems on classify loop
WARNING: Unable to extract video title
ERROR: This video is unavailable.
2020-01-24 21:27:43,368 - ERROR - Some problems on classify loop
WARNING: Unable to extract video title
ERROR: This video is unavailable.
2020-01-24 21:27:46,755 - ERROR - Some problems on classify loop
WARNING: Unable to extract video title
ERROR: This video is unavailable.
2020-01-24 21:27:49,092 - ERROR - Some problems on classify loop
WARNING: Unable to extract video title
ERROR: This video is unavailable.

@adironco
Copy link

PS : I also always get the notification "Downloading from youtube", isn't it supposed to be downloaded from spotify ?

You get the notification because the program actually downloads music from Youtube. No download from Spotify here, you can check it in the code...

Anyway, I'm getting the same error message.

@Draako
Copy link

Draako commented Mar 21, 2020

Hi,

I'm trying to make it work with Ubuntu in Windows 10 and I get this:

./main.py -sa "https://open.spotify.com/album/6VNnTz7roRd6qVDQlBZWFr"
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
Downloading 1 of 18
ERROR: This video is unavailable.
2020-03-21 15:16:28,825 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-21 15:16:31,123 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-21 15:16:33,396 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-03-21 15:16:35,565 - ERROR - Some problems on classify loop
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
2020-03-21 15:16:35,576 - ERROR - Youtube:os.makedirs('cache/'+path)
ERROR: This video is unavailable.
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.6/site-packages/mutagen/_util.py", line 235, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'cache/0KlLzi19JtjLQsZg9nWN4i/0KlLzi19JtjLQsZg9nWN4i.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./main.py", line 771, in <module>
    CLI.main(sys.argv[1:])
  File "./main.py", line 614, in main
    md.downloadBySpotifyUriAlbumMode(array[i+1], CLI.path)
  File "./main.py", line 282, in downloadBySpotifyUriAlbumMode
    data=info
  File "/mnt/c/smd/editor.py", line 67, in setTags
    ID3=ID3
  File "/home/user/.local/lib/python3.6/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/user/.local/lib/python3.6/site-packages/mutagen/_util.py", line 139, in wrapper
    writable, create) as h:
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/home/user/.local/lib/python3.6/site-packages/mutagen/_util.py", line 256, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: 'cache/0KlLzi19JtjLQsZg9nWN4i/0KlLzi19JtjLQsZg9nWN4i.mp3'

ERROR: This video is unavailable.

ALSA shouldn't be a problem here but I get this error with Spotify, Deezer, Apple and even Youtube. Any help?

@l-pedretti
Copy link

Try sudo pip install -U youtube-dl . Worked for me

@Draako
Copy link

Draako commented Mar 26, 2020

Try sudo pip install -U youtube-dl . Worked for me

Lots of ALSA errors but it works! Thank you.

@mdharees
Copy link

mdharees commented Apr 9, 2020

same issue
2020-04-10 03:03:39,573 - ERROR - Youtube:os.makedirs('cache/'+path)
ERROR: unable to download video data: <urlopen error [Errno 54] Connection reset by peer>

I hvae the same issue

ERROR: This video is unavailable.
2020-01-16 01:00:35,574 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:37,457 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:39,119 - ERROR - Some problems on classify loop
ERROR: This video is unavailable.
2020-01-16 01:00:40,752 - ERROR - Some problems on classify loop
2020-01-16 01:00:40,765 - ERROR - Youtube:os.makedirs('cache/'+path)
ERROR: This video is unavailable.

also this helped, but not on all songs links

Try sudo pip install -U youtube-dl . Worked for me

@laphrog
Copy link

laphrog commented May 30, 2020

I used a VPN and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants