Closed brianmcaudill closed 1 year ago
Hello!
I think I managed to resolve this issue by uninstalling conflicting versions of pytube in my environment (pytube X pytube3) and installing the latest available version of pytube like this:
pip uninstall pytube
pip uninstall pytube3
pip install pytube
The requiremenst.txt would look like this:
pytube
openai-whisper
streamlit
Hi thanks for commenting the solution, I think we can close the issue right?
I am getting a HTTPError: HTTP Error 410: Gone error when I try to Transcribe any URL. 2 examples I used are: https://www.youtube.com/watch?v=YCyTP_Gg_3Y https://www.youtube.com/watch?v=q2y2ZsXev_Q
This is the stack trace: File "G:\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script exec(code, module.dict) File "G:\github\brianmcaudill\video-2-text\webserver\app.py", line 66, in
main()
File "G:\github\brianmcaudill\video-2-text\webserver\app.py", line 43, in main
transcript = transcribeVideoOrchestrator(url, model)
File "G:\github\brianmcaudill\video-2-text\webserver\businessLogic.py", line 9, in transcribeVideoOrchestrator
video = downloadYoutubeVideo(youtube_url)
File "G:\github\brianmcaudill\video-2-text\webserver\businessLogic.py", line 25, in downloadYoutubeVideo
yt = YouTube(youtube_url)
File "G:\Python\Python310\lib\site-packages\pytube__main.py", line 91, in init
self.prefetch()
File "G:\Python\Python310\lib\site-packages\pytube\main__.py", line 181, in prefetch
self.vid_info_raw = request.get(self.vid_info_url)
File "G:\Python\Python310\lib\site-packages\pytube\request.py", line 36, in get
return _execute_request(url).read().decode("utf-8")
File "G:\Python\Python310\lib\site-packages\pytube\request.py", line 24, in _execute_request
return urlopen(request) # nosec
File "G:\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "G:\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "G:\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "G:\Python\Python310\lib\urllib\request.py", line 557, in error
result = self._call_chain(args)
File "G:\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(args)
File "G:\Python\Python310\lib\urllib\request.py", line 749, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "G:\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "G:\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "G:\Python\Python310\lib\urllib\request.py", line 563, in error
return self._call_chain(args)
File "G:\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(args)
File "G:\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)