Forums

Can't finish playwright installation

Hello,

I'm trying to install playwright in a virtual environment using Python 3.8. The package downloads and installs perfectly. However, I fail on the second step, finalizing the installation. Does anyone have an idea what the issue might be? Any help is greatly appreciated.

Thank you, Andy

(AVE) 06:39 ~ $ python -m playwright install
(node:468732) UnhandledPromiseRejectionWarning: Error: Download failed: server returned code 403. URL: https://playwright.azureedge.net/builds/chromium/833159/chromium
-linux.zip
    at /snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:199:27
    at ClientRequest.requestCallback (/snapshot/playwright-cli/node_modules/playwright/lib/install/browserFetcher.js:244:13)
    at Object.onceWrapper (events.js:422:26)
    at ClientRequest.emit (events.js:315:20)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
    at Socket.socketOnData (_http_client.js:469:22)
    at Socket.emit (events.js:315:20)
    at Socket.Readable.read (_stream_readable.js:506:10)
    at Socket.read (net.js:624:39)
(node:468732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block
, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections
=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:468732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node
.js process with a non-zero exit code.

What are the node.js version installation prequisites for that package?

I'm sorry, I don't know. What confuses me is the 403 error. Is it a whitelisting issue maybe?

Yes, that is a whitelist issue. Since their install appears too require the site, I have added it to the whitelist.

Thank you very much - that solved it. Unfortunately, I'm running into another issue now. I guess it's a quota thing this time. I have used around 380MB already, and this additional download and install probably exceeds the limit now.

(AVE) 06:52 ~ $ python -m playwright install                                                                                                                    
Downloading chromium v833159 - 120.3 Mb [====================] 100% 0.0s 
(node:841262) UnhandledPromiseRejectionWarning: Error: Unknown system error -122: Unknown system error -122, write
(node:841262) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block
, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections
=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:841262) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node
.js process with a non-zero exit code.

That may be related to the virtualisation system that we use. I have enabled our new virtualisation system for your account so you can see whether that helped. Your existing consoles will continue with the old virtualisation system. Any new consoles you start will have the new virtualisation system.

I've exit'ed from the current console, started a new one and tried to run the installation again. Getting the same error though.

OK, I'm sure it is a quota issue. I tried python -m playwright install again. After chromium is downloaded, it takes almost a minute until the error is thrown. During that time, I went to the dashboard and kept reloading, monitoring the quota usage. It slowly goes up to 100%. That's when the installation aborts with the error message.

Going into the tarpit does not stop code from running, but it does slow it down significantly. It may be the cause of the error that you're seeing. So you may not be able to install the a module without upgrading.

Alright, I'll think about upgrading. Thank you very much for your support!