Closed athewsey closed 4 months ago
Is there a quick reproducible example you can share with me? I will try to use the data you've given me so far, and try to reproduce it.
Okay I tried to build a container with the same project requirements as you with the following app.py
import ray
import streamlit as st
if not ray.is_initialized():
ray.init()
x = st.slider("Select a value")
st.write(x, "squared is", x * x)
I was able to build that container, and run it. I didn't run into the error you are running into.
Admittedly, I am running the container on my mac which is linux/arm64/v8
machine and on an x86 cloud machine. I notice you are using a linux/amd64
. This could be one of the reasons. Would you be able to retry a different platform?
Hey @keerthanvasist thanks for following up!
I spent some time poking around that same Ray issue and tried installing grpcio>=1.60.0,<2
but it didn't help.
Previously I was running --platform linux/amd64
as emulation (on my M2 Mac) to match our target environment (Amazon ECS linux/amd64) - but I saw from https://github.com/ray-project/ray/issues/25300 there might be issues with this and the good news is:
rayproject/ray:2.7.1-py310-cpu-aarch64
also works (but it's quite a different image so needs a few dockerfile changes for e.g. file permissions/locations). I did notice there's no matching tag on https://gallery.ecr.aws/anyscale/ray for users that need to use that instead of Docker Hub though: Closest was 2.7.1-py38-cpu-aarch64
which is older Python than fmeval supportspython:3.10
image on Mac? But I'm not sure if it's just that the issue is intermittent like some other commenters on rayproject found... It only worked for me after I cleared all the Docker storage on my machine, removed the specifier and then re-built from scratch against public.ecr.aws/docker/library/python:3.10
For now my takeaway is that it's the platform emulation that's not possible, so we'll just have to test around that. Thanks for your help on it!
Hi team,
We're trying to build a containerized Streamlit app using fmeval, but evaluation is dying with:
The Dockerfile is nothing fancy - based on
python:3.10
base:Our installs are also minimal:
The app works fine locally (outside of Docker). Can anybody suggest what extra configs or dependencies are needed to run properly in Docker? I'm exploring whether switching to a
rayproject/ray
-based image helps, but it introduces some other initial errors and would be much better to know what the actual requirements are than being tied to one base image.