undetected-chromedriver icon indicating copy to clipboard operation
undetected-chromedriver copied to clipboard

Set a specific data_path for Patcher if the environment is AWS Lambda

Open AktanKasymaliev opened this issue 2 years ago • 3 comments

This PR addresses this issue: https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/441

AktanKasymaliev avatar May 23 '22 17:05 AktanKasymaliev

@ultrafunkamsterdam @sebdelsol Please merge this; Will simplify life a lot for running on lambda functions out of the box.

prabhat-banknovo avatar Jul 22 '22 14:07 prabhat-banknovo

Any solve this?

DiMiTriFrog avatar Aug 05 '22 13:08 DiMiTriFrog

Has anyone resolved this issue?

juzer-patan avatar Sep 20 '22 06:09 juzer-patan

@ultrafunkamsterdam could you please merge this? I would love for this to be included in the library stable version :)

ottogutierrez avatar Dec 16 '22 20:12 ottogutierrez

@ultrafunkamsterdam could you please merge this? I would love for this to be included in the library stable version :) Yes I will merge it in the coming update which will be tomorrow or Monday

ultrafunkamsterdam avatar Dec 17 '22 19:12 ultrafunkamsterdam

I used this. But I am getting this error now. @AktanKasymaliev. Did you not encounter this error? FYI, I got this error after your code modification. Thanks for that tho :) previous error was resolved

[ERROR] PermissionError: [Errno 13] Permission denied: '/tmp/undetected_chromedriver'
Traceback (most recent call last):
  File "/var/task/handler.py", line 48, in crawler
    browser = uc.Chrome(options=options)
  File "/opt/python/lib/python3.9/site-packages/undetected_chromedriver/__init__.py", line 421, in __init__
    browser = subprocess.Popen(
  File "/var/lang/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/var/lang/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

maneendra-zen3 avatar Mar 24 '23 12:03 maneendra-zen3

I used this. But I am getting this error now. @AktanKasymaliev. Did you not encounter this error? FYI, I got this error after your code modification. Thanks for that tho :) previous error was resolved


[ERROR] PermissionError: [Errno 13] Permission denied: '/tmp/undetected_chromedriver'

Traceback (most recent call last):

  File "/var/task/handler.py", line 48, in crawler

    browser = uc.Chrome(options=options)

  File "/opt/python/lib/python3.9/site-packages/undetected_chromedriver/__init__.py", line 421, in __init__

    browser = subprocess.Popen(

  File "/var/lang/lib/python3.9/subprocess.py", line 951, in __init__

    self._execute_child(args, executable, preexec_fn, close_fds,

  File "/var/lang/lib/python3.9/subprocess.py", line 1821, in _execute_child

    raise child_exception_type(errno_num, err_msg, err_filename)

It's probably issues in your path of driver, I wish I helped you but idk

AktanKasymaliev avatar May 15 '23 08:05 AktanKasymaliev