Rayrun
← Back to Discord Forum

everytime. I try to install playwright I get error

Everytime i try to install playwright on my Mac OS using Python it gives me an end of central directory record signature later, I’ve tried deleting disc space still the same

This thread is trying to answer question "How can the user successfully install Playwright on their Mac OS using Python without encountering the 'end of central directory record signature not found' error?"

9 replies
tphillips8117

Can you share the command you're running and the error output?

Can you set the DEBUG=pw:install env var and share your output?

@tphillips8117: Downloading Chromium 114.0.5735.35 (playwright build v1064) from https://playwright.azureedge.net/builds/chromium/1064/chromium-mac.zip 129.1 Mb [====================] 97% 1.6sFailed to install browsers Error: Failed to download Chromium 114.0.5735.35 (playwright build v1064), caused by Error: end of central directory record signature not found

Downloading Chromium 114.0.5735.35 (playwright build v1064) from https://playwright.azureedge.net/builds/chromium/1064/chromium-mac.zip 129.1 Mb [====================] 97% 1.6sFailed to install browsers Error: Failed to download Chromium 114.0.5735.35 (playwright build v1064), caused by Error: end of central directory record signature not found

@tphillips8117: at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:24033 at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:31712 at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:17288 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:24033 at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:31712 at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:17288 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

pw:install running download: +253ms   pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1064/chromium-mac.zip +0ms   pw:install -- to location: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- response status code: 200 +1s   pw:install -- total bytes: 135402144 +3ms 129.1 Mb [====================] 97% 1.7s  pw:install SUCCESS downloading Chromium 114.0.5735.35 (playwright build v1064) +1m   pw:install extracting archive +0ms   pw:install -- zip: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- location: /Users/jamescampbell/Library/Caches/ms-playwright/chromium-1064 +0ms   pw:install FAILED installation Chromium 114.0.5735.35 (playwright build v1064) with error: Error: end of central directory record signature not found +11ms Failed to install browsers Error: Failed to download Chromium 114.0.5735.35 (playwright build v1064), caused by Error: end of central directory record signature not found     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:24033     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:31712     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:17288     at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

@mxschmitt: pw:install running download: +253ms   pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1064/chromium-mac.zip +0ms   pw:install -- to location: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- response status code: 200 +1s   pw:install -- total bytes: 135402144 +3ms 129.1 Mb [====================] 97% 1.7s  pw:install SUCCESS downloading Chromium 114.0.5735.35 (playwright build v1064) +1m   pw:install extracting archive +0ms   pw:install -- zip: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- location: /Users/jamescampbell/Library/Caches/ms-playwright/chromium-1064 +0ms   pw:install FAILED installation Chromium 114.0.5735.35 (playwright build v1064) with error: Error: end of central directory record signature not found +11ms Failed to install browsers Error: Failed to download Chromium 114.0.5735.35 (playwright build v1064), caused by Error: end of central directory record signature not found     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:24033     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:31712     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:17288     at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

pw:install running download: +253ms   pw:install -- from url: https://playwright.azureedge.net/builds/chromium/1064/chromium-mac.zip +0ms   pw:install -- to location: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- response status code: 200 +1s   pw:install -- total bytes: 135402144 +3ms 129.1 Mb [====================] 97% 1.7s  pw:install SUCCESS downloading Chromium 114.0.5735.35 (playwright build v1064) +1m   pw:install extracting archive +0ms   pw:install -- zip: /var/folders/n4/vbrlg13s0bjghwc1cvksf4lm0000gn/T/playwright-download-chromium-mac12-1064.zip +1ms   pw:install -- location: /Users/jamescampbell/Library/Caches/ms-playwright/chromium-1064 +0ms   pw:install FAILED installation Chromium 114.0.5735.35 (playwright build v1064) with error: Error: end of central directory record signature not found +11ms Failed to install browsers Error: Failed to download Chromium 114.0.5735.35 (playwright build v1064), caused by Error: end of central directory record signature not found     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:24033     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:31712     at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/driver/package/lib/zipBundleImpl.js:1:17288     at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

Looks like a very old Playwright version could you try upgrading? Do you have special anti virus on your system?

No, how do I install a new version using commands

I’m on Mac OS btw some context is I’m trying to install a Redditvideomaker bot

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.