-
Notifications
You must be signed in to change notification settings - Fork 926
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
Error to deploy spaceflights tutorial in AWS Steps Function #1006
Comments
I have been experiencing this same issue. |
Hi @andrea-cadeddu, thanks for letting us know - we're looking into this for you. Unrelated to the issue, but I'm curious how you found the docs at that URL? They're some which I had uploaded to my personal page just to try something out so a bit surprised you ended up there rather than the official docs 😅 |
@andrea-cadeddu @makennedy626 Hi both, thanks for the report. This doc is a bit outdated and needs updating. Will fix it. In the mean time, I'd recommend using AWS Batch or just a plain docker container to run your pipeline on AWS: https://kedro.readthedocs.io/en/latest/10_deployment/07_aws_batch.html |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
same error here, even though |
also, the tutorial should be updated to use cdk v2. |
I think we need to reopen this one |
@jccalvojackson: please could you give the full traceback for this? Thank you! In more detail, this is why we should update to use CDK v2:
|
I have tried to follow the tutorial but I faced the same problem described early by @andrea-cadeddu {
"errorMessage": "[Errno 38] Function not implemented",
"errorType": "OSError",
"requestId": "aeb69066-812d-4e7c-9877-8c45c7809074",
"stackTrace": [
" File \"/home/app/lambda_handler.py\", line 7, in handler\n configure_project(\"spaceflights_steps_function\")\n",
" File \"/home/app/kedro/framework/project/__init__.py\", line 243, in configure_project\n settings.configure(settings_module)\n",
" File \"/home/app/dynaconf/base.py\", line 193, in configure\n self._wrapped = Settings(settings_module=settings_module, **kwargs)\n",
" File \"/home/app/dynaconf/base.py\", line 256, in __init__\n self.validators.validate(\n",
" File \"/home/app/dynaconf/validator.py\", line 461, in validate\n validator.validate(\n",
" File \"/home/app/kedro/framework/project/__init__.py\", line 46, in validate\n super().validate(settings, *args, **kwargs)\n",
" File \"/home/app/dynaconf/validator.py\", line 213, in validate\n self._validate_items(\n",
" File \"/home/app/dynaconf/validator.py\", line 242, in _validate_items\n self.default(settings, self)\n",
" File \"/home/app/kedro/framework/project/__init__.py\", line 37, in validator_func\n return getattr(importlib.import_module(module), class_name)\n",
" File \"/usr/local/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n",
" File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n",
" File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n",
" File \"<frozen importlib._bootstrap>\", line 961, in _find_and_load_unlocked\n",
" File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n",
" File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n",
" File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n",
" File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n",
" File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n",
" File \"<frozen importlib._bootstrap_external>\", line 843, in exec_module\n",
" File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n",
" File \"/home/app/kedro/framework/session/__init__.py\", line 4, in <module>\n from .session import KedroSession\n",
" File \"/home/app/kedro/framework/session/session.py\", line 26, in <module>\n from kedro.framework.session.store import BaseSessionStore\n",
" File \"/home/app/kedro/framework/session/store.py\", line 46, in <module>\n class ShelveStore(BaseSessionStore):\n",
" File \"/home/app/kedro/framework/session/store.py\", line 49, in ShelveStore\n _lock = Lock()\n",
" File \"/usr/local/lib/python3.8/multiprocessing/context.py\", line 68, in Lock\n return Lock(ctx=self.get_context())\n",
" File \"/usr/local/lib/python3.8/multiprocessing/synchronize.py\", line 162, in __init__\n SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)\n",
" File \"/usr/local/lib/python3.8/multiprocessing/synchronize.py\", line 57, in __init__\n sl = self._semlock = _multiprocessing.SemLock(\n"
]
}``` |
Hi @AlbertoGarau , thanks for flagging! Could you specify which version you are using of the following:
|
Hello @MerelTheisenQB
|
I have been facing the same issue recently, let us know the fix or way around this. Thank you in advance :) |
|
This issue comes from the import of |
Possible workaround in the meanwhile -
|
Description
I tried to follow the tutorial to deploy the spaceflights template project on AWS Step Functions (https://antonymilneqb.github.io/kedro-docs/10_deployment/10_aws_step_functions.html). I follow the steps written in the tutorial but I get an error when I try to run the service.
Context
Steps to Reproduce
configure_project("space")
s3_data_bucket_name = ("<bucket-name>")
with my bucket nameExpected Result
The service step function starts the execution correctly.
Actual Result
The step functions throws an error in the first step, it seems that the lambda can't find the functions implemented.
-- Error Received.
Your Environment
Include as many relevant details about the environment in which you experienced the bug:
The text was updated successfully, but these errors were encountered: