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.

NameError: name 'RegexMatchError' is not defined (installed pytube from Master)

See original GitHub issue

I work on spotDL/spotify-downloader and this is a common issue we run across.

It occurs only for some users under different circumstances, e.g.

  • pytube works just fine from a fork of pytube I uploaded to PyPi called a-pytube-fork-for-spotdl-users. It also doesn’t work for some of the users on our stable branch. It works for most of them.
  • It doesn’t work on the PR in question (see link). again among the 4 testers, it works for 2 doesn’t for the other 2.

We (the dev team) would like some help with this and the other pytube issues.


Just a side note:

  • Consider rewriting the whole of pytube from scratch. It usually reduces package size drastically.
  • Definitely more reliable.
  • If you write it with maintainability in mind - it’ll have a much simpler design, that’s a bonus for attracting more contributors.
  • Most of the trial and error is already done, you just have to restructure it for all of those benefits.

Now, I’m sure there are reasons you aren’t doing this but just wanted to share by 2 cents with you. It got the project that I ‘inherited’ form this muck into a maintainable state with much better search capabilities.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ghostcommented, Dec 5, 2020

Don’t get me wrong. I’ve been the admin on spotdl for only a month. What I said above were just things that helped me get spotdl into a maintainable state. Just my 2 cents.

I really appreciate the work you’ve done on pytube. Thought I should share a boot of what helped me.

As to the error, I’ll get to you by tmrw.

0reactions
tfdahlincommented, Dec 8, 2020

Since this issue is coming from a patch made to pytube in your library, I’m going to close it for now. If you have a problem with pytube itself in the future, please feel welcome to create a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

name 'RegexMatchError' is not defined (installed pytube from ...
I work on spotDL/spotify-downloader and this is a common issue we run across. It occurs only for some users under different circumstances, ...
Read more >
pytube.exceptions.RegexMatchError in python - Stack Overflow
you can install : pip install pytube==11.0.1 or pip install --upgrade pytube. or you can change in pytube/cipher.py : edit line:r'a\.
Read more >
Pytube exceptions RegexMatchError get_throttling_function_name ...
try upgrading pytube like this: pip install pytube --upgrade. ... RegexMatchError: get throttling function name: could not find match for multiple ubuntu ...
Read more >
pytube Documentation - Read the Docs
This guide assumes you already have python and pip installed. To install pytube, run the following command in your terminal:.
Read more >
python-pytube-readthedocs-io-en-latest - Yumpu
To install pytube, run the following command in your terminal: ... curl -OL https://github.com/nficano/pytube/tarball/master.
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