Tensorflow Error while deploying Flask Application

Hey,

I’m trying to deploy my flask application, but the deployment fails after build, stating the shown error:

This is contained in my requirements.txt:
requests
beautifulsoup4
regex
pandas
transformers
tensorflow
nltk
tf-keras
numpy
gunicorn==19.7.1
flask

, and these are my installed modules/libraries:

  • Jinja2-3.1.4
  • MarkupSafe-2.1.5
  • absl-py-2.1.0
  • astunparse-1.6.3
  • beautifulsoup4-4.12.3
  • blinker-1.8.2
  • certifi-2024.7.4
  • charset-normalizer-3.3.2
  • click-8.1.7
  • filelock-3.15.4
  • flask-3.0.3
  • flatbuffers-24.3.25
  • fsspec-2024.6.1
  • gast-0.6.0
  • google-pasta-0.2.0
  • grpcio-1.64.1
  • gunicorn-19.7.1
  • h5py-3.11.0
  • huggingface-hub-0.23.4
  • idna-3.7
  • itsdangerous-2.2.0
  • joblib-1.4.2
  • keras-3.4.1
  • libclang-18.1.1
  • markdown-3.6
  • markdown-it-py-3.0.0
  • mdurl-0.1.2
  • ml-dtypes-0.4.0
  • namex-0.0.8
  • nltk-3.8.1
  • numpy-1.26.4
  • opt-einsum-3.3.0
  • optree-0.12.1
  • packaging-24.1
  • pandas-2.2.2
  • protobuf-4.25.3
  • pygments-2.18.0
  • python-dateutil-2.9.0.post0
  • pytz-2024.1
  • pyyaml-6.0.1
  • regex-2024.5.15
  • requests-2.32.3
  • rich-13.7.1
  • safetensors-0.4.3
  • six-1.16.0
  • soupsieve-2.5
  • tensorboard-2.17.0
  • tensorboard-data-server-0.7.2
  • tensorflow-2.17.0
  • tensorflow-io-gcs-filesystem-0.37.1
  • termcolor-2.4.0
  • tf-keras-2.15.0
  • tokenizers-0.19.1
  • tqdm-4.66.4
  • transformers-4.42.4
  • typing-extensions-4.12.2
  • tzdata-2024.1
  • urllib3-2.2.2
  • werkzeug-3.0.3
  • wheel-0.43.0
  • wrapt-1.16.0

PYTHON_VERSION: 3.10.5

Hoping for possible solutions from community…

Do you have your requierements file install command at settings for your project? pip install -r requierements.txt’

Yes, in fact I’ve shared the libraries/modules that the system shows as installed in the original question, sharing the screenshot as well.


Hi there,

I believe for systems without GPU’s you need to use tensorflow-cpu: https://www.tensorflow.org/install/pip.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.