Skip to content

Instantly share code, notes, and snippets.

@Mifody
Created September 22, 2021 06:52
Show Gist options
  • Save Mifody/87ce0a22275900ffd1c08a44ec12c7de to your computer and use it in GitHub Desktop.
Save Mifody/87ce0a22275900ffd1c08a44ec12c7de to your computer and use it in GitHub Desktop.
(scrapy) developer@ip-172-31-36-21:~/cosmetics_catalogs$ python test.py
Traceback (most recent call last):
File "test.py", line 13, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "test.py", line 7, in main
browser = await browser_type.launch()
File "/home/developer/.venvs/scrapy/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 11407, in launch
await self._async(
File "/home/developer/.venvs/scrapy/lib/python3.8/site-packages/playwright/_impl/_browser_type.py", line 88, in launch
return from_channel(await self._channel.send("launch", params))
File "/home/developer/.venvs/scrapy/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "/home/developer/.venvs/scrapy/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 57, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error:
╔════════════════════════════════════════════════════════════╗
║ Host system is missing a few dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ sudo npx playwright install-deps ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
(scrapy) developer@ip-172-31-36-21:~/cosmetics_catalogs$ sudo npx playwright install-deps
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/root/.npm/_npx/382779/lib/node_modules/playwright/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! playwright@1.15.0 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the playwright@1.15.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-22T06_52_10_958Z-debug.log
Install for playwright@latest failed with code 1
(scrapy) developer@ip-172-31-36-21:~/cosmetics_catalogs$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment