-
-
Notifications
You must be signed in to change notification settings - Fork 990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyppeteer.errors.BrowserError: Browser closed unexpectedly #95
Comments
Ok I tried python3.6 as well. same issue. But surprisingly, it's working on windows anaconda with python3.6 |
Is your chrome driver in your path? Is the command “chromedriver” registered? |
Ok I had to manually install it over apt. It's fetching JSON now. Thank you a lot. This was very important for me. So, it means after installing the API & running |
Glad you figured it out. I’ll add that in the next update’s documentation. It’s already on the nightly branch’s documentation. Thanks! |
I encountered your same problem. I also installed "sudo apt-get install chromium-chromedriver". But it does not work. Please help me! |
What does it say when you run the command chromedriver ? |
@davidteather haizzzz... thanks your question. It reminds me that I have not installed "sudo apt install ./google-chrome-stable_current_amd64.deb"! thank you very much. |
Got it to work on my Mac no problem, but has anyone been able to get it to work in a Jupyter notebook? Still getting the "Browser closed unexpectedly" even after adding "!pyppeteer-install" and installing chromedriver with "!pip install chromedriver_installer". Am I just missing something basic here? |
Advice for trying to get it to work on Jupyter? I'm working in Colab but also running into the "browser closed unexpectedly error." I tried installing Chromedriver like this: I don't think I'm installing chromedriver correctly, advice appreciated! |
Just thought I would post this here in case it helps anyone else, I had to run the command |
Run It worked for me. |
Thanks, that worked for me too. |
System is Ubuntu 16.04 LTS
I am using a virtualenv which uses python3.7.
>>> api.byHashtag('cat', count=30)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/TikTokApi/tiktok.py", line 176, in byHashtag id = self.getHashtagObject(hashtag)['challengeInfo']['challenge']['id'] File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/TikTokApi/tiktok.py", line 211, in getHashtagObject b = browser(api_url) File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/TikTokApi/browser.py", line 27, in __init__ asyncio.get_event_loop().run_until_complete(self.start()) File "/usr/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete return future.result() File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/TikTokApi/browser.py", line 30, in start self.browser = await pyppeteer.launch(self.options) File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/pyppeteer/launcher.py", line 305, in launch return await Launcher(options, **kwargs).launch() File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/pyppeteer/launcher.py", line 166, in launch self.browserWSEndpoint = get_ws_endpoint(self.url) File "/home/ubuntu/tiktok-search/tkenv/lib/python3.7/site-packages/pyppeteer/launcher.py", line 225, in get_ws_endpoint raise BrowserError('Browser closed unexpectedly:\n') pyppeteer.errors.BrowserError: Browser closed unexpectedly:
I am unable to see what's wrong. I was searching around. but did not get anything.
The text was updated successfully, but these errors were encountered: