question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no stream information available

See original GitHub issue

Hi, I was trying to download this Video as described in the quickstart of the pytube-guide.

Why are there no information about the video formats available for some videos?

This is what happens when I follow the instructions in the quickstart:

Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] on win32

from pytube import YouTube

yt = YouTube('https://www.youtube.com/watch?v=ZRCdORJiUgU')

yt.title
Out[4]: 'Google — Year in Search 2019'

Everything fine until here…

yt.thumbnail_url
Traceback (most recent call last):
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-5-f4a3e63791c4>", line 1, in <module>
    yt.thumbnail_url
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\pytube\__main__.py", line 261, in thumbnail_url
    return self.player_config_args['thumbnail_url']
KeyError: 'thumbnail_url'

KeyError: ‘thumbnail_url’ - currently not my main problem

But the following results are a problem…

yt.streams.all()
Out[6]: []

stream = yt.streams.first()

stream.download()
Traceback (most recent call last):
  File "C:\Users\Samuel\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-8-0a171c2b4d83>", line 1, in <module>
    stream.download()
AttributeError: 'NoneType' object has no attribute 'download'

When I search for formats online with this tool there are no formats available for my target video. So yt.streams.all() only returns an empty list. Therefore the .download command obiously does not work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

0reactions
Sammeeeycommented, Jan 19, 2020

I am getting stream information (again) for all videos now!

Some time ago I did the fix recommended in #528 . After deleting these changes it now works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can´t find my Information Dock for Twitch Streaming
To be easy, just right-click the word "Audio mixer" itself and the docks will appear together with stream information. That's it. You don't...
Read more >
OBS Failed To Load Channel Information For Twitch Fix
In this guide check out how to fix OBS failed to load channel information for Twitch error, also learn why users are getting...
Read more >
6 Ways to Fix Kodi No Stream Available Error in 2021
How to Fix Kodi No Stream Available Error · 1. Check If You Are Using an Abandoned Add-on · 2. Clear the Providers...
Read more >
Fix: Error Fetching Your Channel Information On Twitch [2022 ]
We have 6 available fixes right here to help you out. ... Encountering errors while trying to broadcast on Twitch is not rare....
Read more >
How to Fix Exodus Kodi No Stream Available? [Solved]
While streaming a video on Kodi, you might get the Exodus no stream error. This means that the video content is not available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found