8000 `register_clients` dead in some versions of Lambda sandboxes · Issue #313 · sosw/sosw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

register_clients dead in some versions of Lambda sandboxes #313

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

Open
ngr opened this issue Apr 16, 2024 · 1 comment
Open

register_clients dead in some versions of Lambda sandboxes #313

ngr opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working urgent Pretty important in the next releases

Comments

@ngr
Copy link
Member
ngr commented Apr 16, 2024
[ERROR] RuntimeError: Failed to import for service s3. Component naming problem.
Traceback (most recent call last):
  File "/opt/python/sosw/app.py", line 449, in lambda_handler
    global_vars.processor = processor_class(custom_config=custom_config, test=test)
  File "/var/task/app.py", line 182, in __init__
    super().__init__(*args, **kwargs)
  File "/opt/python/sosw/app.py", line 81, in __init__
    self.register_clients(self.config.get('init_clients', []))
  File "/opt/python/sosw/components/benchmark.py", line 48, in _timing_and_call_counter
    r = fn(self, *a, **kw)
  File "/opt/python/sosw/app.py", line 151, in register_clients
    raise RuntimeError(f"Failed to import for service {module_name}. Component naming problem.")
@ngr ngr added bug Something isn't working urgent Pretty important in the next releases labels Apr 16, 2024
@ngr
Copy link
Member Author
ngr commented Apr 16, 2024
[ERROR] ImportError: cannot import name 'is_s3express_bucket' from 'botocore.utils' (/opt/python/botocore/utils.py)
Traceback (most recent call last):
  File "/opt/python/sosw/app.py", line 449, in lambda_handler
    global_vars.processor = processor_class(custom_config=custom_config, test=test)
  File "/var/task/app.py", line 182, in __init__
    setattr(self, 's3_client', boto3.client('s3'))
  File "/var/lang/lib/python3.11/site-packages/boto3/__init__.py", line 92, in client
    return _get_default_session().client(*args, **kwargs)
  File "/var/lang/lib/python3.11/site-packages/boto3/session.py", line 299, in client
    return self._session.create_client(
  File "/opt/python/botocore/session.py", line 997, in create_client
    client = client_creator.create_client(
  File "/opt/python/botocore/client.py", line 144, in create_client
    cls = self._create_client_class(service_name, service_model)
  File "/opt/python/botocore/client.py", line 197, in _create_client_class
    self._event_emitter.emit(
  File "/opt/python/botocore/hooks.py", line 412, in emit
    return self._emitter.emit(aliased_event_name, **kwargs)
  File "/opt/python/botocore/hooks.py", line 256, in emit
    return self._emit(event_name, kwargs)
  File "/opt/python/botocore/hooks.py", line 239, in _emit
    response = handler(**kwargs)
  File "/var/lang/lib/python3.11/site-packages/boto3/utils.py", line 65, in _handler
    module = import_module(module)
  File "/var/lang/lib/python3.11/site-packages/boto3/utils.py", line 56, in import_module
    __import__(name)
  File "/var/lang/lib/python3.11/site-packages/boto3/s3/inject.py", line 18, in <module>
    from boto3.s3.transfer import (
  File "/var/lang/lib/python3.11/site-packages/boto3/s3/transfer.py", line 134, in <module>
    from s3transfer.futures import NonThreadedExecutor
  File "/var/lang/lib/python3.11/site-packages/s3transfer/futures.py", line 22, in <module>
    from s3transfer.utils import FunctionContainer, TaskSemaphore
  File "/var/lang/lib/python3.11/site-packages/s3transfer/utils.py", line 26, in <module>
    from botocore.utils import is_s3express_bucket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working urgent Pretty important in the next releases
Projects
None yet
Development

No branches or pull requests

1 participant
0