Bchadwick
Bchadwick

Reputation: 367

Azure Flask-Restful Deploy Failure

I'm trying to deploy a Flak Restful API to azure. I have set up continuous deployment with a Github repo.

The deployment is failing on one of the requirements.txt

returning the following error:

ValueError: ('Expected version spec in', 'azure-common ~=1.1.4', 'at', ' ~=1.1.4')

The application is running fine locally. I'm new to the Azure platform and the config and deploy files are quite confusing I'm not sure if the problem is with these or the package in the virtual environment.

Upvotes: 0

Views: 265

Answers (1)

Laurent Mazuel
Laurent Mazuel

Reputation: 3546

You need to update pip, as I guess the version is old enough to do not support the "~=" syntax in the setup.py of the packages you install.

For examples:

  1. ValueError "Expected version spec" when installing local wheel via pip
  2. How to fix error “Expected version spec in …” using pip install on Windows?

Upvotes: 1

Related Questions