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
9.72k stars 1.14k forks source link

Freeze, raise RuntimeError, and Freeze #749

Open XcMasked opened 2 years ago

XcMasked commented 2 years ago

I will straight to the point.

As per today, 28 of July 2022, I just installed"Undetected-chromedriver" using "pip" on my Windows 10 Laptop and uses Google Chrome 103.0.5060.134 (Build Resmi) (64 bit) (cohort: Stable).

After that, I wrote down the example code " import undetected_chromedriver as uc driver = uc.Chrome() driver.get('https://nowsecure.nl') "

Waiting for 5 minutes, no respon shown on my comman promp, tried press enter and still no respon. Waiting a few minutes more, then it is showing Error like:

" _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

"

After that Error shown, nothing happen, the command promp freeze, tried to type something and nothing shown, tried to press enter and nothing happen.

I sincerlly hope, it is can be solved!

And please, make it, so I can use it to LogIn my Gmail account.

Your Sincerly,

epyklion commented 2 years ago

Same problem

Hunmuhe commented 2 years ago

please use undetected_chromedriver==3.0.0 Specific issues were not explored

epyklion commented 2 years ago

That solved the issue. Thanks!

sebdelsol commented 2 years ago

Using an old version isn't a good idea if you want to avoid detection. The solution to your issue is actually in the exception message. If you want a fix and understand what's happening on Windows, please check this answer.