facebookresearch / facebookresearch/ImageBind

ImageBind installation issue in AWS ECR base image

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.1k
Forks
842
PR merge metrics
No merged PRs in 30d

Description

## VTK Installation:

```
15.81 Downloading types_regex-2024.11.6.20250318-py3-none-any.whl.metadata (2.0 kB)
16.26 Collecting mayavi (from imagebind==0.1.0)
16.32 Downloading mayavi-4.8.2.tar.gz (7.1 MB)
16.83 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 16.1 MB/s eta 0:00:00
17.06 Installing build dependencies: started
18.36 Installing build dependencies: finished with status 'error'
18.36 error: subprocess-exited-with-error
18.36
18.36 × pip subprocess to install build dependencies did not run successfully.
18.36 │ exit code: 1
18.36 ╰─> [6 lines of output]
18.36 Collecting oldest-supported-numpy
18.36 Downloading oldest_supported_numpy-2023.12.21-py3-none-any.whl.metadata (9.8 kB)
18.36 Collecting setuptools
18.36 Using cached setuptools-77.0.3-py3-none-any.whl.metadata (6.6 kB)
18.36 ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
18.36 ERROR: No matching distribution found for vtk
18.36 [end of output]
18.36
18.36 note: This error originates from a subprocess, and is likely not a problem with pip.
18.36 error: subprocess-exited-with-error
18.36
18.36 × pip subprocess to install build dependencies did not run successfully.
18.36 │ exit code: 1
18.36 ╰─> See above for output.
18.36
18.36 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:28
--------------------
```

## EVA-DECORE:

```
: started
13.72 Installing build dependencies: finished with status 'done'
13.73 Getting requirements to build wheel: started
13.81 Getting requirements to build wheel: finished with status 'done'
13.81 Preparing metadata (pyproject.toml): started
13.89 Preparing metadata (pyproject.toml): finished with status 'done'
13.96 INFO: pip is looking at multiple versions of imagebind to determine which version is compatible with other requirements. This could take a while.
13.96 ERROR: Could not find a version that satisfies the requirement eva-decord==0.6.1 (from imagebind) (from versions: none)
13.96 ERROR: No matching distribution found for eva-decord==0.6.1
```

Here is the Dockerfile:

```
# Use AWS Lambda Python 3.9 base image
FROM public.ecr.aws/lambda/python:3.9

# Install system dependencies required for cartopy and other libraries
RUN yum install -y \
gcc \
python3-devel \
python3-pip \
git \
python3-setuptools \
libpng-devel \
freetype-devel \
libcurl-devel \
openssl-devel \
geos-devel \
proj-devel \
&& yum clean all

# Upgrade pip
RUN pip install --upgrade pip

# Copy and install Python dependencies
COPY ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

# Clone and install ImageBind
RUN git clone https://github.com/facebookresearch/ImageBind.git /opt/ImageBind \
&& cd /opt/ImageBind \
&& pip install . \
&& cp -r imagebind /var/task/ && ls

# Copy application code
COPY ./face_detection.py /var/task/

# Set the Lambda handler
CMD ["face_detection.lambda_handler"]
```

how do i solve this please help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.