I
I
itsLegend2021-03-25 18:55:30
linux
itsLegend, 2021-03-25 18:55:30

What's wrong with launch?

[email protected]:~# python3 main.py
Traceback (most recent call last):
  File "main.py", line 24, in <module>
    api = TikTokApi.get_instance()
  File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 148, in get_instance
    TikTokApi(**kwargs)
  File "/usr/local/lib/python3.8/dist-packages/TikTokApi/tiktok.py", line 58, in __init__
    self.browser = browser(**kwargs)
  File "/usr/local/lib/python3.8/dist-packages/TikTokApi/browser.py", line 82, in __init__
    raise e
  File "/usr/local/lib/python3.8/dist-packages/TikTokApi/browser.py", line 78, in __init__
    self.browser = get_playwright().webkit.launch(
  File "/usr/local/lib/python3.8/dist-packages/playwright/sync_api/_generated.py", line 8941, in launch
    self._sync(
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_sync_base.py", line 103, in _sync
    return task.result()
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_browser_type.py", line 79, in launch
    raise e
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_browser_type.py", line 75, in launch
    return from_channel(await self._channel.send("launch", params))
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/usr/local/lib/python3.8/dist-packages/playwright/_impl/_connection.py", line 47, in inner_send
    result = await callback.future
playwright._impl._api_types.Error: Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /root/.cache/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=23056
[pid=23056][err] /root/.cache/ms-playwright/webkit-1446/minibrowser-wpe/bin/MiniBrowser: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
=========================== logs ===========================
<launching> /root/.cache/ms-playwright/webkit-1446/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=23056
[pid=23056][err] /root/.cache/ms-playwright/webkit-1446/minibrowser-wpe/bin/MiniBrowser: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question