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.

Error starting the app up.

See original GitHub issue

I don’t know what happens but I couldn’t get it to work. I’m sure everything required is installed and I followed the instructions step by step. / Ubuntu 20.04 Focal Fossa here.

Traceback (most recent call last):
  File "./main.py", line 3, in <module>
    from youtube import Youtube
  File "/home/owz/smd/youtube.py", line 5, in <module>
    from pytube import YouTube
  File "/home/owz/.local/lib/python3.8/site-packages/pytube/__init__.py", line 16, in <module>
    from pytube.streams import Stream
  File "/home/owz/.local/lib/python3.8/site-packages/pytube/streams.py", line 17, in <module>
    from pytube import extract
  File "/home/owz/.local/lib/python3.8/site-packages/pytube/extract.py", line 7, in <module>
    from pytube.compat import quote
ImportError: cannot import name 'quote' from 'pytube.compat' (/home/owz/.local/lib/python3.8/site-packages/pytube/compat.py)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
computerdude100commented, Jul 29, 2020

Try changing the pytube version

Can you tell us how? Because the version it grabs is latest one, which causes the problem.

You can use this code pip3 install pytube==your pytube version Change the pytube version to the one you want. For example, pip3 install pytube==9.0

Installing 9.0 fixed this particular issue… brought many more to light but it seems to be the solution for this issue.

1reaction
thecloakmastercommented, Jul 17, 2020

Try changing the pytube version

Can you tell us how? Because the version it grabs is latest one, which causes the problem.

You can use this code pip3 install pytube==your pytube version Change the pytube version to the one you want. For example, pip3 install pytube==9.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open · Close and reopen the app. Force the...
Read more >
Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >
How to Fix the “This App Can't Open” Error in Windows 10 & 11
How to Fix the “This App Can't Open” Error in Windows 10 & 11 · 1. Run the Troubleshooter for Windows Store Apps...
Read more >
App Not Opening? How to Fix App Crashing/Closing on Android
App not opening ? Or App closing or crashing on Android phone or tablet? This video will show you how to fix app...
Read more >
Top 5 Ways to Fix Error in Application Issues on Android
If the error still pops up, try these other solutions. 2. Uninstall Then Reinstall Problematic Apps. A problematic app can present itself in...
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