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.

ImportError: cannot import name Youtube

See original GitHub issue

Did a pip install pytube, tried import Youtube with from pytube import Youtube uninstalled and did a

git clone https://github.com/nficano/pytube.git && cd pytube
setup.py build
sudo setup.py install

still cannot import Youtube

However I did a dir(pytube) and see ‘Youtube’ there I’m not sure why I cant import it

Issue Analytics

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

github_iconTop GitHub Comments

11reactions
tr32commented, Apr 13, 2020

I have the same ImportError. The import statement from pytube import YouTube does not work. Can not resolve module.

7reactions
NikunjVadsakcommented, May 15, 2020

importError: cannot import name ‘YouTube’ from partially initialized module ‘pytube’ (most likely due to a circular import)

I am getting the same kind import error. anyone can help to resolve the same ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python3.8 pytube ImportError: cannot import name 'YouTube ...
i get the error: ImportError: cannot import name 'YouTube' from 'pytube' (unknown location). ive used the following documentation to install ...
Read more >
ImportError: cannot import name 'YouTube' from 'pytube' #564
Depends on the issue. It could mean those scripts don't exist anymore. It could mean your IDE doesn't know they exist.
Read more >
How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >
cannot import name 'file_hash' from 'pooch.utils' - YouTube
How to resolve ImportError : cannot import name 'file_hash' from 'pooch.utils'
Read more >
ImportError: cannot import name (unknown location) - YouTube
ImportError : cannot import name 'blabla' from 'some_module' (unknown location)thanks for watchinglike this video, share, ...
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