Skip to content

Issue with installing easyocr on Cloud Builders Community Firebase image #659

@Karunanagaraju

Description

@Karunanagaraju

Affected builder image

gcr.io/cloud-builders-community/firebase

Expected Behavior

I expect to be able to install easyocr dependencies using the Cloud Builders Community Firebase builder image.

Actual Behavior

When attempting to install dependencies specified in requirements.txt using python -m pip install -r requirements.txt within a container built from the Cloud Builders Community Firebase builder image, I encounter the following error due to conflicting dependencies. However, the same requirements.txt installs successfully when using a standard Python Docker image.

ERROR: Cannot install -r requirements.txt (line 27) because these package versions have conflicting dependencies.

The conflict is caused by:
easyocr 1.7.1 depends on torch
easyocr 1.7.0 depends on torch
easyocr 1.6.2 depends on torch
easyocr 1.6.1 depends on torch
easyocr 1.6.0 depends on torch
easyocr 1.5.0 depends on torch
easyocr 1.4.2 depends on torch
easyocr 1.4.1 depends on torch
easyocr 1.4 depends on torch
easyocr 1.3.2 depends on torch
easyocr 1.3.1 depends on torch
easyocr 1.3.0.1 depends on torch
easyocr 1.3 depends on torch
easyocr 1.2.5.1 depends on torch
easyocr 1.2.5 depends on torch
easyocr 1.2.4 depends on torch
easyocr 1.2.3 depends on torch
easyocr 1.2.2 depends on torch
easyocr 1.2.1 depends on torch
easyocr 1.2 depends on torch
easyocr 1.1.10 depends on torch
easyocr 1.1.9 depends on torch
easyocr 1.1.8 depends on torch
easyocr 1.1.7 depends on torch
easyocr 1.1.6 depends on torch
easyocr 1.1.5 depends on torch
easyocr 1.1.4 depends on torch
easyocr 1.1.3 depends on torch
easyocr 1.1.2 depends on torch
easyocr 1.1.1 depends on torch
easyocr 1.1 depends on torch
easyocr 1.0 depends on torch

Steps to Reproduce the Problem

  1. Use the following configuration in your cloudbuild.yaml file:

steps:

  • name: 'gcr.io/project_id/firebase'
    entrypoint: 'bash'
    args:
    - '-c'
    - |
    cd functions
    rm -rf venv
    python -m venv venv
    source venv/bin/activate && python -m pip install -r requirements.txt
    firebase deploy
  1. Run the Cloud Build job with the above configuration.

Additional Info

The requirements.txt file contents is as below:

firebase_functions~=0.1.0
firebase-admin==6.5.0
hccpy==0.1.9
google-cloud-firestore==2.14.0
simplejson==3.19.2
openai==1.8.0
numpy==1.26.3
python-dateutil==2.9.0.post0
fuzzywuzzy (>= 0.15.0)
Levenshtein (>=0.25.0)
pandas==2.2.1
openpyxl==3.1.2
requests==2.31.0
flask (>= 3.0.1)
setuptools
cryptography
pyjwt
python-multipart
jsonschema
pdfplumber
pytesseract
pdf2image
pyarrow
vertexai
openai
hccpy
easyocr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions