-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
[INSTALLATION] - Can only run one Playwright at a time #341
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Use api=TikTokApi.get_instance() |
Hi David - Thanks for the superquick response. Afraid I'm still getting the same error. Here is the full trace just from the simple import: import TikTokApi File "", line 1, in File "C:\Users\username\anaconda3\lib\site-packages\TikTokApi_init_.py", line 1, in File "C:\Users\username\anaconda3\lib\site-packages\TikTokApi\tiktok.py", line 6, in File "C:\Users\username\anaconda3\lib\site-packages\TikTokApi\browser.py", line 16, in File "C:\Users\username\anaconda3\lib\site-packages\TikTokApi\browser.py", line 14, in File "C:\Users\username\anaconda3\lib\site-packages\playwright_init_.py", line 34, in sync_playwright File "C:\Users\username\anaconda3\lib\site-packages\playwright\main.py", line 81, in init File "C:\Users\username\anaconda3\lib\site-packages\playwright\main.py", line 75, in run_driver Error: Can only run one Playwright at a time. |
Can you provide the code you’re using? |
Literally all I am doing is the very basic install in a clean notebook with an upgrade request to check I have the latest version of both packages: pip install TikTokApi --upgrade import TikTokApi I haven't been able to get any further before the error is thrown. |
Probably has to do with Playwright Issue |
Ok thanks. Will try those solutions and update this for other users if any of them resolve it. |
Same problem here. I have explored the linked Playwright issue posted above but to no avail. I have attempted on both Mac and Windows. |
I tried this code:
And have the same error: "cannot switch to a different thread". Any ideas? |
I also received a similar error. I noticed that if I re-run this cell, the error goes away (only to be replaced by a different error: "AttributeError: 'TikTokApi' object has no attribute 'width') Any help would be appreciated.
|
from: microsoft/playwright-python#178 (comment)
In the first note block run:
|
Using |
Closing due to inactivity open a new issue if you continue to have this issue |
After pip installing TikTok-Api and trying to import for the first time I get the following error:
File "C:\Users\username\anaconda3\lib\site-packages\playwright\main.py", line 75, in run_driver
raise Error("Can only run one Playwright at a time.")
Error: Can only run one Playwright at a time.
The only code I am running in the basic import:
import TikTokApi
api = TikTokApi()
Desktop:
The text was updated successfully, but these errors were encountered: