echoing-truck-37560
02/20/2026, 12:33 PMSetting up task environment.
/usr/bin/bash: line 1: [: -le: unary operator expected
/usr/bin/bash: line 1: [: -gt: unary operator expected
tar (child): job.tar: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
My dockerfile is:
FROM pytorch/pytorch:2.10.0-cuda12.6-cudnn9-runtime
# Install required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-pip git tar bash libgl1 libglib2.0-0 && \
rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt ./
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt --break-system-packages
RUN mkdir /logs && chown 1000 /logs
RUN mkdir /metaflow && chown 1000 /metaflow
ENV HOME=/metaflow
WORKDIR /metaflow
USER 1000
ENV PYTHONPATH=/usr/local/lib/python3.12/site-packages
Any ideas or help ? Thanks in advance.glamorous-easter-37147
02/20/2026, 1:52 PMEntrypoint is non-empty and uses eval, that might be the issue.glamorous-easter-37147
02/20/2026, 1:53 PMhundreds-rainbow-67050
02/20/2026, 3:21 PMechoing-truck-37560
02/20/2026, 3:44 PMhundreds-rainbow-67050
02/20/2026, 3:47 PMhundreds-rainbow-67050
02/20/2026, 3:48 PMhundreds-rainbow-67050
02/20/2026, 3:50 PMechoing-truck-37560
02/23/2026, 8:19 AMhundreds-rainbow-67050
02/23/2026, 1:46 PMechoing-truck-37560
02/24/2026, 7:42 AMpytorch/pytorch:2.10.0-cuda12.6-cudnn9-runtime
that didnt workcreamy-stone-99746
04/15/2026, 6:23 PMpip install boto3 requests fails silently at runtime due to PEP 668 (externally-managed environment), which Ubuntu 24.04 enforces. Ubuntu 22.04 did not. I suspect your images fall into this difference. If you want you can build a custom docker image make sure to use the following.
Dockerfile
....
# This is the key difference that makes it work because it allows metaflow bash
# command to pip install awscli and requests
ENV PIP_BREAK_SYSTEM_PACKAGES=1
....
Here is a complete dockerfile that fixed it for me.
FROM nvidia/cuda:13.0.3-cudnn-devel-ubuntu24.04
RUN apt update && apt install python3.12 python3-pip fd-find curl locales -y && \
locale-gen en_US.UTF-8 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
ln -sf /usr/bin/python3.12 /usr/bin/python && \
ln -s /usr/bin/fdfind /usr/bin/fd
# Important to set this
ENV PIP_BREAK_SYSTEM_PACKAGES=1
CMD ["/usr/bin/python3"]
Happy flowing