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.

NoneType' object has no attribute 'span' [BUG]

See original GitHub issue

Before creating an issue

Please confirm that you are on the latest version of pytube by installing from the source. You can do this by running python -m pip install git+https://github.com/pytube/pytube. Sometimes, the pypi library repository is not up to date, and your issue may have been fixed already!

Describe the bug A clear and concise description of what the bug is.

To Reproduce Please provide the following information:

  • The video or playlist url that is causing the error.
  • The code where the problem is occurring.

Expected behavior A clear and concise description of what you expected to happen.

Output If pytube raises an exception, please provide the full traceback for the exception.

System information Please provide the following information:

  • Python version (run python --version)
  • Pytube version (run print(pytube.__version__) in python)
  • Command used to install pytube

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
glubsycommented, Feb 3, 2022

Github is becoming a cesspool of idiots who can’t read, can’t write, can’t understand anything.

Don’t act surprised when developers leave this platform if people keep spamming like this.

8reactions
xzh12commented, Feb 4, 2022

name = re.escape(get_throttling_function_name(js))

# print(js)
name = "hha"
Read more comments on GitHub >

github_iconTop Results From Across the Web

pytube: AttributeError: 'NoneType' object has no attribute 'span'
The issue is that the regex expects a function with an argument, but I guess youtube added some src that includes non-paramterized functions....
Read more >
[BUG] 'NoneType' object has no attribute 'span' #1218 - GitHub
You can do this by running python -m pip install git+https://github.com/pytube/pytube . Sometimes, the pypi library repository is not up to date ...
Read more >
[Solved] AttributeError: 'NoneType' object has no attribute 'span'
To Solve AttributeError: 'NoneType' object has no attribute 'span' Error There are issue is that the regex expects a function with an argument...
Read more >
[Example code]-pytube: 'NoneType' object has no attribute 'span'
I try to follow pytube example for downloading video from YouTube: from pytube import YouTube video = YouTube('https://www.youtube.com/watch?v=BATOxzbVNno') ...
Read more >
AttributeError: 'NoneType' object has no attribute 'span' When ...
Well, there's not much we can do with a partial traceback. "span" isn't in your code, so it must be coming from a...
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