i getting this error:
AttributeError: partially initialized module 'pytube' has no attribute 'YouTube' (most likely due to a circular import)
My file:
`import pytube
print("Give URL:") url = 'input()'
pytube.YouTube(url).streams.get_highest_resolution().download()`
I'm getting the same error.. python 3.8, using pytube3 library.
update: it worked after I uninstall then reinstall pytube3, I think you must install pytube3 in the first place and don't try to install pytube.
Have you download the module? With this command - > pip install pytube
That was the first thing I did.
Try to install pytube3 (sometimes is need it)
Still Nothing;
youtube = pytube.YouTube(url) AttributeError: partially initialized module 'pytube' has no attribute 'YouTube' (most likely due to a circular import)
I got this error: ImportError: cannot import name 'quote' from 'pytube.compat'. Then I installed pytube3 - now it works. Thank you a lot :)
Hi, verify that the name of your script is not "pytube.py"
That was the first thing I did
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
i getting this error:
AttributeError: partially initialized module 'pytube' has no attribute 'YouTube' (most likely due to a circular import)
My file:
`import pytube
print("Give URL:")
url = 'input()'
pytube.YouTube(url).streams.get_highest_resolution().download()`
I'm getting the same error.. python 3.8, using pytube3 library.
update: it worked after I uninstall then reinstall pytube3, I think you must install pytube3 in the first place and don't try to install pytube.
Have you download the module?
With this command - > pip install pytube
That was the first thing I did.
Try to install pytube3 (sometimes is need it)
Still Nothing;
youtube = pytube.YouTube(url)
AttributeError: partially initialized module 'pytube' has no attribute 'YouTube' (most likely due to a circular import)
I got this error: ImportError: cannot import name 'quote' from 'pytube.compat'. Then I installed pytube3 - now it works. Thank you a lot :)
Hi,
verify that the name of your script is not "pytube.py"
That was the first thing I did