Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[INSTALLATION] - error when collecting playwright

See original GitHub issue

When I try to upgrade TikTokApi, the following error occurs:

ERROR: Exception:
Traceback (most recent call last):
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/urllib3/", line 437, in _error_catcher
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/urllib3/", line 519, in read
    data = if not fp_closed else b""
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/cachecontrol/", line 62, in read
    data =
  File "/usr/lib/python3.8/http/", line 458, in read
    n = self.readinto(b)
  File "/usr/lib/python3.8/http/", line 502, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.8/", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/", line 1241, in recv_into
    return, buffer)
  File "/usr/lib/python3.8/", line 1099, in read
    return, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/cli/", line 228, in _main
    status =, args)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/cli/", line 182, in wrapper
    return func(self, options, args)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/commands/", line 323, in run
    requirement_set = resolver.resolve(
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/", line 183, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/", line 388, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/", line 340, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/operations/", line 467, in prepare_linked_requirement
    local_file = unpack_url(
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/operations/", line 255, in unpack_url
    file = get_http_url(
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/operations/", line 129, in get_http_url
    from_path, content_type = _download_http_url(
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/operations/", line 282, in _download_http_url
    for chunk in download.chunks:
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/cli/", line 168, in iter
    for x in it:
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_internal/network/", line 64, in response_chunks
    for chunk in
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/urllib3/", line 576, in stream
    data =, decode_content=decode_content)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/urllib3/", line 541, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.8/", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/wying/.local/lib/python3.8/site-packages/pip/_vendor/urllib3/", line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.


  • OS: Ubuntu

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

davidteathercommented, Nov 15, 2020

If you want I’ve started maintaining a pyppeteer fork here

jp-wagnercommented, Nov 14, 2020

Ok, as far as I can tell the issue for me is that playwright requires the libicu66 package while my Arch installation runs with libicu67. Unfortunately, I can’t downgrade as it would break a bunch of dependencies. As of now, I don’t have a fix for this. Seems to affect Ubuntu 20.10 as well although for that there’s a workaround (

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright installation Error. pip install playwright gives ''No ...
After using it, pip started downloading all the available versions (not the latest or just a single one) then gave error that the...
Read more >
Installation | Playwright
Playwright downloads Chromium, Firefox and WebKit browsers by default. To install a specific browser, pass it as an argument during installation. $ pip...
Read more >
Installing Playwright on macOS Monterey and the zsh bug - iteo
Go to the folder where the created project file (.csproj) is located, enter: playwright install and press ENTER: No zsh error, everything is ......
Read more >
Common Build Problems - Travis CI Docs
js, etc.) Ruby: RSpec returns 0 even though the build failed; Capybara: I'm getting errors about elements not being found; Ruby: Installing the...
Read more >
Help installing playwright : Forums - PythonAnywhere
One must perform 2 steps: pip install playwright python -m ... get it to work without doing so - I was getting the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found