question-mark
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.

[BUG] - Is the project working on ubuntu?

See original GitHub issue

Describe the bug

the program stops and give me an error, just followed this instruction:

pip install TikTokApi python -m playwright install

and then used this:

The buggy code

  from TikTokApi import TikTokApi
  api = TikTokApi.get_instance()
  # If playwright doesn't work for you try to use selenium
  # api = TikTokApi.get_instance(use_selenium=True)
  
  results = 10
  
  # Since TikTok changed their API you need to use the custom_verifyFp option.
  # In your web browser you will need to go to TikTok, Log in and get the s_v_web_id value.
  trending = api.trending(count=results, custom_verifyFp="verify_mycode")
  
  for tiktok in trending:
      # Prints the id of the tiktok
      print(tiktok['id'])
  
  print(len(trending))

Expected behavior

works properly

Error Trace (if any)

python3 '/home/ma/Scrivania/tiktok/TicTokTest.py'
Traceback (most recent call last):
File "/home/ma/Scrivania/tiktok/TicTokTest.py", line 2, in
api = TikTokApi.get_instance()
File "/home/ma/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 89, in get_instance
TikTokApi(**kwargs)
File "/home/ma/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 56, in init
self.browser = browser(**kwargs)
File "/home/ma/.local/lib/python3.8/site-packages/TikTokApi/browser.py", line 82, in init
raise e
File "/home/ma/.local/lib/python3.8/site-packages/TikTokApi/browser.py", line 78, in init
self.browser = get_playwright().webkit.launch(
File "/home/ma/.local/lib/python3.8/site-packages/playwright/sync_api.py", line 6974, in launch
self._sync(
File "/home/ma/.local/lib/python3.8/site-packages/playwright/_sync_base.py", line 97, in _sync
return future.result()
File "/home/ma/.local/lib/python3.8/site-packages/playwright/_browser_type.py", line 78, in launch
raise e
File "/home/ma/.local/lib/python3.8/site-packages/playwright/_browser_type.py", line 74, in launch
return from_channel(await self._channel.send("launch", params))
File "/home/ma/.local/lib/python3.8/site-packages/playwright/_connection.py", line 36, in send
return await self.inner_send(method, params, False)
File "/home/ma/.local/lib/python3.8/site-packages/playwright/_connection.py", line 47, in inner_send
result = await callback.future
playwright._types.Error: Host system is missing dependencies!

Missing libraries are:
libicui18n.so.66
libicuuc.so.66
libgstcodecparsers-1.0.so.0
libenchant.so.1

Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jaoxfordcommented, Feb 15, 2021

You’ll need to install those dependencies.

Missing libraries are:
libicui18n.so.66
libicuuc.so.66
libgstcodecparsers-1.0.so.0
libenchant.so.1

Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
0reactions
dbobrenkocommented, Jun 6, 2021

Solution (Ubuntu 20.04):

# Install missing libenchant:
sudo apt install -y libenchant1c2a

# Add libicu66 repository:
echo "deb [arch=amd64] http://cz.archive.ubuntu.com/ubuntu focal main" | sudo tee -a /etc/apt/sources.list

# Install missing libicu:
sudo apt install -y libicu66
Read more comments on GitHub >

github_iconTop Results From Across the Web

3. Fixing a bug in Ubuntu - Packaging Guide
First we should check if a bug for the problem exists in Ubuntu already. Maybe somebody is working on a fix already, or...
Read more >
Bug #1 (liberation) “Microsoft has a majority market share”
Microsoft has a majority market share in the new desktop PC marketplace. This is a bug which Ubuntu and other projects are meant...
Read more >
Don't work on Ubuntu - SourceForge
Don't work on Ubuntu. Forum: Bug List ... It solved all the other previously reported project issues but they were on MacOS and...
Read more >
Bug - [Ubuntu 22.04] Hub won't launch - Unity Forum
I managed to solve it by installing FUSE. If it helps, follow below the commands for installation until the problem of the new...
Read more >
495946 – Eclipse hangs while creating a project or a package ...
Bug 495946 - Eclipse hangs while creating a project or a package (ubuntu ... eclipse hang again (guest OS/machine works fine although eclipse...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found