pangyuteng / make-og-pixel-great-again

5 stars 2 forks source link

no prompt received on phone when running crawlall.py #7

Open jindalshreyansh opened 7 months ago

jindalshreyansh commented 7 months ago

Get your phone ready to confirm login (via google 2 step verification, gotta have this enabled)! Careful to not mess this up or your account may get locked for a while!!! t-minus 3 seconds.. Get your phone ready to confirm login (via google 2 step verification, gotta have this enabled)! Careful to not mess this up or your account may get locked for a while!!! t-minus 2 seconds.. Get your phone ready to confirm login (via google 2 step verification, gotta have this enabled)! Careful to not mess this up or your account may get locked for a while!!! t-minus 1 seconds.. Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 120, in spawn_main exitcode = _main(fd, parent_sentinel) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 129, in _main prepare(preparation_data) File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 240, in prepare _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 291, in _fixup_main_from_path main_content = runpy.run_path(main_path, ^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen runpy>", line 291, in run_path File "<frozen runpy>", line 98, in _run_module_code File "<frozen runpy>", line 88, in _run_code File "E:\gphotos\space\crawlall.py", line 24, in <module> driver = uc.Chrome() ^^^^^^^^^^^ File "E:\gphotos\space\GPhotosDup\Lib\site-packages\undetected_chromedriver\__init__.py", line 388, in __init__ self.browser_pid = start_detached( ^^^^^^^^^^^^^^^ File "E:\gphotos\space\GPhotosDup\Lib\site-packages\undetected_chromedriver\dprocess.py", line 35, in start_detached ).start() ^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 121, in start self._popen = self._Popen(self) ^^^^^^^^^^^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\context.py", line 336, in _Popen return Popen(process_obj) ^^^^^^^^^^^^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\popen_spawn_win32.py", line 45, in __init__ prep_data = spawn.get_preparation_data(process_obj._name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 158, in get_preparation_data _check_not_importing_main() File "C:\Users\Shreyansh\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 138, in _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.

`

Please help