I am new to RASA. In my bot, I have used custom actions in the actions.py file. It works fine in my local and I’m able to get results as expected.
But when I deploy to GCP(Google Cloud Platform), the custom actions don’t get executed.
Can you show your Dockerfile?
Additionally, If you execute pip list within a container that you use along with your custom Docker image, can you see the typing_extensions on a list?
I believe there was a problem with my docker image. When I was created the new image it was not overriding the old image. So, I created a new image with a different tag, and deployed it. It works fine now.
# Extend the official Rasa SDK image
FROM rasa/rasa-sdk:2.1.2
# Use subdirectory as working directory
WORKDIR /app
# Copy any additional custom requirements, if necessary (uncomment next line)
COPY actions/requirements-action.txt ./
# Change back to root user to install dependencies
USER root
# Install extra requirements for actions code, if necessary (uncomment next line)
RUN pip install -r requirements-action.txt
# Copy actions folder to working directory
COPY ./actions /app/actions
# By best practices, don't run the code with root user
USER 1001
hello @anarockin,
error: ModuleNotFoundError: No module named ‘typing_extensions’
this error coming beacuse of typing_extensions not installed or missing in RASA-SDK image.
use below docker file code for rasa actions server, hopefully this work (its work for me).
FROM rasa/rasa-sdk:2.1.2
WORKDIR /app
COPY ./actions /app/actions
VOLUME /app/actions
USER root
**RUN pip install --no-cache-dir typing-extensions**
USER 1001