Skip to content
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

tolha connot run on jupyter notebook #1

Open
wasdee opened this issue Oct 16, 2020 · 1 comment
Open

tolha connot run on jupyter notebook #1

wasdee opened this issue Oct 16, 2020 · 1 comment

Comments

@wasdee
Copy link
Owner

wasdee commented Oct 16, 2020

---------------------------------------------------------------------------
Error                                     Traceback (most recent call last)
<ipython-input-7-86031215e230> in <module>
----> 1 call_usage = get_recent_call_history("09xxxxx", "c4xxxxxxx", "141xxxxxxx")

~\WinDevs\codustry\tolha\tolha\myais.py in get_recent_call_history(phone_number, password, national_id)
      4 
      5 def get_recent_call_history(phone_number, password, national_id):
----> 6     with sync_playwright() as p:
      7         browser = p.chromium.launch(headless=False)
      8         page = browser.newPage()

~\anaconda3\lib\site-packages\playwright\__init__.py in sync_playwright()
     32 
     33 def sync_playwright() -> SyncPlaywrightContextManager:
---> 34     return SyncPlaywrightContextManager()
     35 
     36 

~\anaconda3\lib\site-packages\playwright\main.py in __init__(self)
     86 class SyncPlaywrightContextManager:
     87     def __init__(self) -> None:
---> 88         self._connection = run_driver()
     89         self._playwright: SyncPlaywright
     90 

~\anaconda3\lib\site-packages\playwright\main.py in run_driver()
     80     loop = asyncio.get_event_loop()
     81     if loop.is_running():
---> 82         raise Error("Can only run one Playwright at a time.")
     83     return loop.run_until_complete(run_driver_async())
     84 

Error: Can only run one Playwright at a time.
@wasdee
Copy link
Owner Author

wasdee commented Oct 16, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant