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?"
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
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)
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)
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 [email protected].