[BUG] - Is the project working on ubuntu?
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’ll need to install those dependencies.
Solution (Ubuntu 20.04):