ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
10.06k stars 1.17k forks source link

RuntimeError: This event loop is already running #389

Open dex426 opened 2 years ago

dex426 commented 2 years ago

Hello,

I have recently purchased a new Azure RDP and installed undetected chromedriver.v2. I have never had problems previously when using the package. However now when I try to run the following code I get an error saying "This event loop is already running"

import undetected_chromedriver.v2 as uc driver = uc.Chrome() driver.get('https://www.bbc.co.uk/news')

Has anyone else encountered this problem?

Thanks,

Dex

dex426 commented 2 years ago

got around it by installing an older version.

pip install undetected_chromedriver==3.0.3

slimbis commented 2 years ago

nice!

fingoldo commented 2 years ago

I can confirm that 3.0.4 till 3.0.6 are indeed having that "This event loop is already running" error. 3.0.3 and below are unfortunately currently Cloudflare-detectable, don't know if the most recent version is, too, because of that loop bug.