Skip to content

[ERROR] Runtime.ImportModuleError: Unable to import module 'solution.inference.lambda_app': No module named 'inference' #29

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
tiru1930 opened this issue Apr 28, 2021 · 0 comments

Comments

@tiru1930
Copy link

tiru1930 commented Apr 28, 2021

running below command

docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 \
    --entrypoint /aws-lambda/aws-lambda-rie \
    xxxx.dkr.ecr.region.amazonaws.com/test-td-inference/5f0b5bec-9547-44e8-afb6-589a9c6f7e2e:question_answering-transformers_bert-lambda-6408082c-5c2e-412b-b4c6-1d3e5295bbe6 \
        /usr/local/bin/python -m awslambdaric solution.inference.lambda_app.handle

in side container

i am able to do this

python -c "import solution.inference.lambda_app"

but when i use

http://localhost:9000/2015-03-31/functions/function/invocations

it says

{"errorMessage": "Unable to import module 'solution.inference.lambda_app': No module named 'inference'", "errorType": "Runtime.ImportModuleError"
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

No branches or pull requests

1 participant