RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Error] playwright._impl._api_types.Error: Browser closed.

Open 50n50 opened this issue 4 years ago • 9 comments

I have installed all the requirements and set up the .env file succesfully, but then I got this error:

playwright._impl._api_types.Error: Browser closed.

Chrome is just open so not sure whats wrong...

  • Python Version: 3.10
  • OS: MacOS Big Sur
  • App version / Branch: Latest

50n50 avatar Jul 07 '22 15:07 50n50

Please give us the full error logs. Cannot identify whats the problem. Thanks

William9923 avatar Jul 08 '22 01:07 William9923

Sorry for late response, here it is: │ Downloading screenshots of reddit posts... │ ╰──────────────────────────────────────────────────────────────────────────────╯ Launching Headless Browser... Traceback (most recent call last): File "/Users/Mac/Downloads/RedditVideoMakerBot-2.2.2/main.py", line 70, in <module> main() File "/Users/Mac/Downloads/RedditVideoMakerBot-2.2.2/main.py", line 38, in main download_screenshots_of_reddit_posts(reddit_object, number_of_comments) File "/Users/Mac/Downloads/RedditVideoMakerBot-2.2.2/video_creation/screenshot_downloader.py", line 35, in download_screenshots_of_reddit_posts browser = p.chromium.launch() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/sync_api/_generated.py", line 11433, in launch self._sync( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_sync_base.py", line 89, in _sync return task.result() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_browser_type.py", line 93, in launch Browser, from_channel(await self._channel.send("launch", params)) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 43, in send return await self._connection.wrap_api_call( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 370, in _ return await result File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 78, in inner_send result = next(iter(done)).result() playwright._impl._api_types.Error: Browser closed. ==================== Browser output: ==================== <launching> /Users/Mac/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --enable-use-zoom-for-dsf=false --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/var/folders/wk/ys668bkx42zfmfchnjrjp6xm0000gn/T/playwright_chromiumdev_profile-dq6YFm --remote-debugging-pipe --no-startup-window <launched> pid=11403 [pid=11403][err] dlopen /Users/Mac/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/../Frameworks/Chromium Framework.framework/Versions/104.0.5112.20/Chromium Framework: dlopen(/Users/Mac/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/../Frameworks/Chromium Framework.framework/Versions/104.0.5112.20/Chromium Framework, 261): image not found. [pid=11403] <process did exit: exitCode=null, signal=SIGABRT> [pid=11403] starting temporary directories cleanup =========================== logs =========================== <launching> /Users/Mac/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/Chromium --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --enable-use-zoom-for-dsf=false --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/var/folders/wk/ys668bkx42zfmfchnjrjp6xm0000gn/T/playwright_chromiumdev_profile-dq6YFm --remote-debugging-pipe --no-startup-window <launched> pid=11403 [pid=11403][err] dlopen /Users/Mac/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/../Frameworks/Chromium Framework.framework/Versions/104.0.5112.20/Chromium Framework: dlopen(/Users/kayalsido/Library/Caches/ms-playwright/chromium-1012/chrome-mac/Chromium.app/Contents/MacOS/../Frameworks/Chromium Framework.framework/Versions/104.0.5112.20/Chromium Framework, 261): image not found. [pid=11403] <process did exit: exitCode=null, signal=SIGABRT> [pid=11403] starting temporary directories cleanup

50n50 avatar Jul 09 '22 12:07 50n50

Hi, to make sure are you running in a docker? If yes, i think its a known issue ref If not, you should run the installation of dependencies:

  • playwright install-deps or
  • python -m playwright install-deps

William9923 avatar Jul 10 '22 05:07 William9923

Hi, to make sure are you running in a docker? If yes, i think its a known issue ref If not, you should run the installation of dependencies:

* `playwright install-deps` or

* `python -m playwright install-deps`

I tried these: playwright install-deps python3.10 -m playwright install-deps But i still get the same error :(

(Not running in docker)

50n50 avatar Jul 11 '22 11:07 50n50

Should I try running in docker?

50n50 avatar Jul 14 '22 11:07 50n50

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jul 21 '22 02:07 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Aug 02 '22 02:08 github-actions[bot]

did you solve it?

ORI299 avatar Jul 16 '23 22:07 ORI299

Nope, I quit trying Op 17 jul 2023 om 00:14 heeft ORI299 @.***> het volgende geschreven: did you solve it?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

50n50 avatar Jul 16 '23 22:07 50n50