Open chenrujun-ROC opened 1 year ago
已更新Readme。
現已安裝完requirements.txt,但又出現了這種錯誤 File "D:\JableTVDownload-main\main.py", line 4 requests==2.25.1 ^^ SyntaxError: invalid syntax
ffmpeg是要裝到哪個資料夾呢
以下是我電腦Requests版本 Version: 2.25.1
1.ffmpeg照著官網的裝在哪都可以,只要path設定好可以用就好。 2.requests可能是與其他套件衝突到了,建議新建一個虛擬環境安裝所有套件
我還是有相同的錯誤即使我重新安裝了虛擬環境。
全部都照著ReadMe的步驟做還是錯是嗎? 系統是windows還是mac?
Windows 不好意思,我好像沒成功安裝環境, (jable) PS D:\JableTVDownload-main> python -m venv jable Error: [Errno 13] Permission denied: 'D:\JableTVDownload-main\jable\Scripts\python.exe' 我嘗試系統管理員開啟Vs code但她還是不讓我執行python -m venv jable 我是不是需要在python -m venv jable新增某些指令 剛剛才懂你把建立虛擬環境要用的資料放在jable這個資料夾裡
只要路徑前面是(jable)代表說現在已經在虛擬環境裡了 這樣你就可以開始做第2個步驟了
然後執行main.py還是會有錯誤,有可能因為版本不對嗎
然後執行main.py還是會有錯誤,有可能因為版本不對嗎
錯誤訊息是甚麼?
然後執行main.py還是會有錯誤,有可能因為版本不對嗎
錯誤訊息是甚麼?
File "D:\JableTVDownload-main\main.py", line 4 requests==2.25.1 ^^ SyntaxError: invalid syntax
然後執行main.py還是會有錯誤,有可能因為版本不對嗎
錯誤訊息是甚麼?
File "D:\JableTVDownload-main\main.py", line 4 requests==2.25.1 ^^ SyntaxError: invalid syntax
前面沒有(jable)退出虛擬環境了 移動到 jable/Scripts 裡輸入activate 啟動虛擬環境
(jable) PS D:\JableTVDownload-main> python main.py File "D:\JableTVDownload-main\main.py", line 4 requests == 2.25.1 ^^ SyntaxError: invalid syntax 結果還是一樣 有了可以用了,最後的問題是我的interpreter錯誤,修正之後就好了
新的問題: Ctrl+V打在Terminal上會變成^V 我是不是因為連結含有https://所以不能下載 我看download.py辨識連結的部分有https://.+m3u8 (line 33)
用'shift' + 'insert' 也能貼上
謝謝你可以用了,最後一個問題是ChromeDriver的版本錯誤換成版本號112.0.5615.49就可以了
DevTools listening on ws://127.0.0.1:50063/devtools/browser/a36942ae-b2c8-45dd-9281-cd8f66550c98
Traceback (most recent call last):
File "d:\JableTVDownload-main\main.py", line 40, in
dr = webdriver.Chrome()
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 80, in init
super().init(
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in init
super().init(
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "D:\JableTVDownload-main\jable\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 113
Current browser version is 112.0.5615.121 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
Stacktrace:
Backtrace:
GetHandleVerifier [0x00676DF3+48691]
(No symbol) [0x00608CC1]
(No symbol) [0x00515068]
(No symbol) [0x00535DAC]
(No symbol) [0x00531AB3]
(No symbol) [0x00530029]
(No symbol) [0x005607A8]
GetHandleVerifier [0x0090E6EC+2766636]
GetHandleVerifier [0x00700820+612448]
(No symbol) [0x006125BC]
(No symbol) [0x0060E808]
(No symbol) [0x0060E8EB]
(No symbol) [0x00601C77]
BaseThreadInitThunk [0x756A7D49+25]
RtlInitializeExceptionChain [0x7784B74B+107]
RtlClearBits [0x7784B6CF+191]
不好意思,我誤觸到了github的PR導致我好像把你上傳的資料弄壞了,我真的很抱歉。 因為我發現你安裝虛擬環境的Jable資料夾不見了
不好意思,我誤觸到了github的PR導致我好像把你上傳的資料弄壞了,我真的很抱歉。 因為我發現你安裝虛擬環境的Jable資料夾不見了
放心,那個是你本地端的資料夾,專案是架在伺服器上的不會受影響。
那我要怎樣才能把jable載回來呢? 因為我在這裡找不到
這有可能是甚麼問題,我問Chat gpt他解釋的東西也不清楚,開始下載後Chrome不會開啟那個影片的連結 DevTools listening on ws://127.0.0.1:63967/devtools/browser/c2b2eaad-0470-45e9-b359-90e5034ed42a [0420/115521.337:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [0420/115523.568:INFO:CONSOLE(467)] "An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing.", source: https://imasdk.googleapis.com/js/sdkloader/ima3.js (467) [0420/115523.603:INFO:CONSOLE(0)] "An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing.", source: about:srcdoc (0) [0420/115523.877:INFO:CONSOLE(0)] "Refused to display 'https://adserve.work/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.", source: chrome-error://chromewebdata/ (0) result: <re.Match object; span=(52933, 53031), match='https://hot-box-gen.mushroomtrack.com/hls/A0iC5Ir> m3u8url: https://hot-box-gen.mushroomtrack.com/hls/A0iC5IrSZEj_8mfljhRQYw/1681973425/31000/31243/31243.m3u8
那我要怎樣才能把jable載回來呢? 因為我在這裡找不到
你就從第一步驟開始做起,建立jable虛擬環境。
這有可能是甚麼問題,我問Chat gpt他解釋的東西也不清楚,開始下載後Chrome不會開啟那個影片的連結 DevTools listening on ws://127.0.0.1:63967/devtools/browser/c2b2eaad-0470-45e9-b359-90e5034ed42a [0420/115521.337:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer. [0420/115523.568:INFO:CONSOLE(467)] "An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing.", source: https://imasdk.googleapis.com/js/sdkloader/ima3.js (467) [0420/115523.603:INFO:CONSOLE(0)] "An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing.", source: about:srcdoc (0) [0420/115523.877:INFO:CONSOLE(0)] "Refused to display 'https://adserve.work/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.", source: chrome-error://chromewebdata/ (0) result: <re.Match object; span=(52933, 53031), match='https://hot-box-gen.mushroomtrack.com/hls/A0iC5Ir> m3u8url: https://hot-box-gen.mushroomtrack.com/hls/A0iC5IrSZEj_8mfljhRQYw/1681973425/31000/31243/31243.m3u8
這個是Selenium產生的資訊,不用理他。
我遇到的問題 教學影片被下架,對完整的操作流程不熟悉。一開始有去Issues翻答案,無奈嘗試之後還是出現錯誤,現已將所有程式復原,希望各路大神幫忙。 目前我自己猜測失敗原因在電腦讀取不到requirements.txt 1. PS D:\程式資料> python3 -m venv jable Error: [Errno 13] Permission denied: 'D:\程式資料\jable\Scripts\python.exe' 2. PS D:\程式資料> pip install -r requirements.txt ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' 3. Import "requests" could not be resolved from source 4. Import "m3u8" could not be resolved 5. Import "Crypto.Cipher" could not be resolved 6. Import "cloudscraper" could not be resolved 7. No module named 'bs4
如果各位大大能幫助我的話,我再拍教學影片幫忙宣傳,感激不盡