Skip to content

Cannot deploy Tensorflow 2.0.0 to Google cloud functions #34707

@m4recek

Description

@m4recek

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Google cloud functions
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version: 2.0.0
  • Python version: 3.7
  • Installed using virtualenv? pip? conda?: pip
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A

We are getting following error while trying to deploy Tensorflow 2.0.0.

gcloud functions deploy matchProbability --runtime python37 --trigger-http --memory 2048MB --timeout=540 --set-env-vars TEMP=/tmp/
Deploying function (may take a while - up to 2 minutes)...failed.                                                                                                                         
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "'pip_download_wheels' had stderr output:\n 
 Could not find a version that satisfies the requirement tensorflow==2.0.0 (from -r requirements.txt (line 53)) (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1,
 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)\nNo matching distribution found for tensorflow==2.0.0 (from -r requirements.txt (line 53))\n\nerror: 'pip_download_wheels' returned code: 1", "errorTyp
e": "InternalError", "errorId": "72357014"}}

Not sure what are next steps should be, only article describing deploying Tensorflow to google cloud functions is using version 2.0.0b1. Should we downgrade?

Metadata

Metadata

Labels

TF 2.0Issues relating to TensorFlow 2.0stat:awaiting responseStatus - Awaiting response from authortype:build/installBuild and install issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions