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

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

Merged

Conversation

AktanKasymaliev
Copy link
Contributor

@AktanKasymaliev AktanKasymaliev commented May 23, 2022

This PR addresses this issue: #441

@AktanKasymaliev AktanKasymaliev changed the title Path for aws Set a specific data_path for Patcher if the environment is AWS Lambda May 23, 2022
@prabhat-banknovo
Copy link

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

@DiMiTriFrog
Copy link

Any solve this?

@juzer-patan
Copy link

Has anyone resolved this issue?

@ottogutierrez
Copy link

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

@ultrafunkamsterdam ultrafunkamsterdam changed the base branch from master to 3.2.0 December 17, 2022 18:59
@ultrafunkamsterdam
Copy link
Owner

@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 ultrafunkamsterdam merged commit 5df8e00 into ultrafunkamsterdam:3.2.0 Dec 17, 2022
@maneendra-zen3
Copy link

maneendra-zen3 commented Mar 24, 2023

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)

@AktanKasymaliev
Copy link
Contributor Author

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 AktanKasymaliev deleted the path-for-aws branch May 15, 2023 08:28
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

Successfully merging this pull request may close these issues.

7 participants