yum -y install libatk-1.0.so.0 libatk-bridge-2.0.so.0 libxkbcommon.so.0 libXcomposite.so.1 libXdamage.so.1 libXfixes.so.3 libXrandr.so.2 libgbm.so.1 libgtk-3.so.0 libgdk-3.so.0 libpango-1.0.so.0 libcairo.so.2 libatspi.so.0 libxshmfence.so.1
This problem is still displayed after installing dependencies
Running playwright script in ubuntu 18.04 from windows 10, after getting series of errors for the dependencies and installing all of those, finally getting this error:
Loop <_UnixSelectorEventLoop running=False closed=True debug=False> that handles pid 6583 is closed
ImportError while loading conftest '/home/nandakumar/novasignal/Cloud_Testing/playwright_python/tests/conftest.py'.
tests/conftest.py:2: in
from utilities.base_class import base_class
utilities/base_class.py:11: in
class base_class:
utilities/base_class.py:23: in base_class
browser = p.chromium.launch(headless=False)
.venv/lib/python3.8/site-packages/playwright/sync_api/_generated.py:10174: in launch
raise e
.venv/lib/python3.8/site-packages/playwright/sync_api/_generated.py:10150: in launch
self._sync(
.venv/lib/python3.8/site-packages/playwright/_impl/_sync_base.py:90: in _sync
return future.result()
.venv/lib/python3.8/site-packages/playwright/_impl/_browser_type.py:73: in launch
raise not_installed_error(f'"{self.name}" browser was not found.')
E Exception:
E ================================================================================
E "chromium" browser was not found.
E Please complete Playwright installation via running
E "python -m playwright install"
E ================================================================================
And running playwright instal doesn't help here, again getting same error
Can anyone please help on this @pavelfeldman
Issue fixed by installing each module (Needed to google search each one seperately)
Docker image using Debian GNU/Linux 10
apt-get install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0
Issue fixed by installing each module (Needed to google search each one seperately)
Docker image using Debian GNU/Linux 10
apt-get install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0
Its work! Thank you!!!
Issue fixed by installing each module (Needed to google search each one seperately)
Docker image using Debian GNU/Linux 10
apt-get install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0
This worked for me as well. I was having the issue
playwright._impl._api_types.Error:
In Ubuntu-> Digital Ocean droplets
With playwright install-deps now i have no more issue on linux lib, but now i got the same error that i have on win10
File "C:\Users\sgiostra\Progetti\PycharmProjects\BigData-Dev\_venv\lib\site-packages\requests\cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='ttwid', domain=None, path=None"
With playwright install-deps now i have no more issue on linux lib, but now i got the same error that i have on win10
File "C:\Users\sgiostra\Progetti\PycharmProjects\BigData-Dev\_venv\lib\site-packages\requests\cookies.py", line 399, in _find_no_duplicates
raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='ttwid', domain=None, path=None"
This error is coming from the requests
library, this has nothing to do with Playwright for Python.
This error is coming from the requests
library, this has nothing to do with Playwright for Python.
But i'm not directy importing requests i'm tring to use the example of the lib, this is my test_tiktok_api.py:
from TikTokApi import TikTokApi
# Watch https://www.youtube.com/watch?v=-uCt1x8kINQ for a brief setup tutorial
# api = TikTokApi.get_instance()
# for trending_video in api.by_trending():
# print(trending_video.author.username)
with TikTokApi() as api:
for trending_video in api.trending.videos(count=50):
# Prints the author's username of the trending video.
print(trending_video.author.username)
This error is coming from the requests
library, this has nothing to do with Playwright for Python.
But i'm not directy importing requests i'm tring to use the example of the lib, this is my test_tiktok_api.py:
from TikTokApi import TikTokApi
# Watch https://www.youtube.com/watch?v=-uCt1x8kINQ for a brief setup tutorial
# api = TikTokApi.get_instance()
# for trending_video in api.by_trending():
# print(trending_video.author.username)
with TikTokApi() as api:
for trending_video in api.trending.videos(count=50):
# Prints the author's username of the trending video.
print(trending_video.author.username)
Tiktokapi is using it internally. Please reach out to them.