-
Notifications
You must be signed in to change notification settings - Fork 79
Runtime.ExitError #10
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
Comments
I'm seeing this error too -- in my case it's a consequence of trying to run in Python 2 rather than Python 3. The code in runtime_client.cpp is written for Python 3 (see here), which means it can't be imported in my Python 2 image, which means this line silently sets |
@devdjdjdj thanks for reporting this issue - could you please share your Dockerfile so that we can have a look into what might be going wrong with your function? @azza-bazoo |
This is happening to me with the ARG build_info="head@now"
ARG build_env="development"
FROM python:3.8-alpine AS base
ARG build_info
ARG build_env
ENV PYTHONPATH=/function
ENV BUILD_INFO=${build_info}
WORKDIR /function
COPY . /function
RUN apk add --no-cache --virtual .build-deps \
autoconf \
automake \
build-base \
cmake \
libcurl \
libexecinfo-dev \
libstdc++ \
libtool \
make \
postgresql-dev \
python3-dev \
&& pip install --no-cache-dir -e . \
&& apk del --no-cache .build-deps
FROM base AS build-production
RUN echo " -> Building production image"
FROM base AS build-development
RUN echo " -> Building development image" \
&& apk add --no-cache \
bash \
vim \
iputils \
&& pip3 install --no-cache-dir -e .[debug,testing]
ENV PS1="someapp> "
ENV PYTHONBREAKPOINT=ipdb.set_trace
FROM build-${build_env} AS final
ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/bin/aws-lambda-rie
COPY entry.sh /
RUN chmod 755 /usr/bin/aws-lambda-rie /entry.sh
ENTRYPOINT [ "/entry.sh" ]
CMD [ "fieldeye.handler" ] Here's the #!/bin/sh
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
exec /usr/bin/aws-lambda-rie /usr/local/bin/python -m awslambdaric $1
else
exec /usr/local/bin/python -m awslambdaric $1
fi and here's the error:
Just to make sure, I ran |
I made my own ticket here: #22 |
I am getting the following error when trying to run even the most basic function
The text was updated successfully, but these errors were encountered: