0

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.

2
  • do you have requirements.txt in the root of your project? it is probably asking you to remove the space before ~= Commented Feb 22, 2017 at 11:06
  • Yes requirements.txt is at the root. I thought that would be the issue but there is no space in requirements.txt: 'azure-common==1.1.4' Commented Feb 22, 2017 at 11:21

1 Answer 1

1

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?
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.