Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Azure Function App fails on 2.0.1-beta.38 #719

Closed
asavaritayal opened this issue Sep 13, 2018 · 12 comments
Closed

Publish Azure Function App fails on 2.0.1-beta.38 #719

asavaritayal opened this issue Sep 13, 2018 · 12 comments

Comments

@asavaritayal
Copy link
Contributor

From @priyaananthasankar on September 13, 2018 20:1

Attached requirements.txt. Noticed the following error.

There was an error restoring dependencies.ERROR: ['pip', 'download', '-r', '/Users/prananth/Projects/FunctioningPython/Gutenberg/TrainBook/requirements.txt', '--dest', '/var/folders/8_/8m4c263132g8fwq0ql816zkw0000gn/T/azureworker9pk49gcc'] failed with exit code 1

requirements.txt

The app works fine locally.

Copied from original issue: Azure/azure-functions-python-worker#196

@asavaritayal
Copy link
Contributor Author

@elprans can you please investigate this issue?

@asavaritayal
Copy link
Contributor Author

From @elprans on September 13, 2018 20:14

Your requirements.txt contains a package which is not on PyPI:

  Could not find a version that satisfies the requirement en-core-web-sm==2.0.0 (from -r requirements.txt (line 21)) (from versions: )
No matching distribution found for en-core-web-sm==2.0.0 (from -r requirements.txt (line 21))

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 20:17

Great! Is there a way to find out which don't exist on PyPI? I think can send out requests to PyPI interface. I can write this part.

Removed en-core-web-sm and it still fails. Also it would be great if a better error message gets thrown out.

@asavaritayal
Copy link
Contributor Author

From @elprans on September 13, 2018 20:34

@ahmelsayed Is there a CLI mode which runs packapp with --verbose?

@priyaananthasankar There are multiple reasons why dependency resolution might fail. Making extra requests to pypi is not necessary, we just need to show better diagnostics.

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 20:39

@elprans Removed en-core-web-sm. Checked if all other packages are in PyPI. Still fails.

@asavaritayal
Copy link
Contributor Author

From @elprans on September 13, 2018 20:49

@priyaananthasankar

ERROR: cannot install wrapt-1.10.11 dependency: binary dependencies without wheels are not supported. Use the --build-native-deps to try building the binary dependencies using a Docker container.

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 20:57

So sending requests to PyPI doesn't ensure there are wheels. It gave me 200 ok for wrapt. Removed wrapt and still received the same error.

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 21:16

There was an error restoring dependencies.ERROR: ['pip', 'download', '-r', '/Users/prananth/Projects/FunctioningPython/Gutenberg/TrainBook/requirements.txt', '--dest', '/var/folders/8_/8m4c263132g8fwq0ql816zkw0000gn/T/azureworker9pk49gcc'] failed with exit code

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 22:50

Tried deploying with --build-native-deps: Fails. Works fine locally!

Command "/home/site/wwwroot/worker_venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-k96eir8q/spacy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-pnz5q8lu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/site/wwwroot/worker_venv/include/site/python3.6/spacy" failed with error code -9 in /tmp/pip-build-k96eir8q/spacy/

Minimized requirements.txt to these:

azure-functions==1.0.0a4
azure-functions-worker==1.0.0a4
grpcio==1.14.2
grpcio-tools==1.14.2
protobuf==3.6.1
six==1.11.0
spacy==2.0.12
nltk==3.3
gensim==3.5.0
azure-storage==0.36.0

@asavaritayal
Copy link
Contributor Author

From @priyaananthasankar on September 13, 2018 23:28

Using azure-storage is causing issues, check out this link talking about cryptography library - Azure/azure-storage-python#219 . Azure Storage library depends on cryptography and with both build-native-deps and without it, the publish fails.

@priyaananthasankar
Copy link

This smaller set of files can repro the issue:

azure-functions==1.0.0a4
azure-functions-worker==1.0.0a4
grpcio==1.14.2
grpcio-tools==1.14.2
protobuf==3.6.1
six==1.11.0
nltk==3.3
gensim==3.5.0
azure-storage-blob==1.3.1
pyLDAvis==2.1.2

@ahmelsayed
Copy link
Contributor

This should be fixed now.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants