Skip to content

[BUG] Azure Functions worker using outdated cygrpc/grpcio, python 3.6 #797

Description

@asears

Investigative information

Please provide the following:
  • Timestamp: 12/17/2020
  • Function App name: n/a, local
  • Function name(s) (as appropriate): n/a
  • Core Tools version: 3.0.3160

Repro steps

Provide the steps required to reproduce the problem:
pip install azure-functions-worker

Expected behavior

Azure functions worker installs.

Provide a description of the expected behavior.

Actual behavior

Provide a description of the actual behavior observed.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cygrpc 1.0.4.post6 requires grpcio==1.23.0, but you have grpcio 1.33.2 which is incompatible.
cygrpc 1.0.4.post6 requires grpcio-tools==1.23.0, but you have grpcio-tools 1.33.2 which is incompatible.
Successfully installed azure-functions-worker-1.1.9 grpcio-1.33.2 grpcio-tools-1.33.2
func start --python
[2020-12-17T11:57:51.434Z]     import grpc
[2020-12-17T11:57:51.436Z]   File "C:\ProgramData\chocolatey\lib\azure-functions-core-tools-3\tools\workers\python\3.6\WINDOWS\X64\grpc\__init__.py", line 23, in <module>
[2020-12-17T11:57:51.438Z]     from grpc._cython import cygrpc as _cygrpc
[2020-12-17T11:57:51.439Z] ImportError: cannot import name 'cygrpc' from 'grpc._cython' (C:\ProgramData\chocolatey\lib\azure-functions-core-tools-3\tools\workers\python\3.6\WINDOWS\X64\grpc\_cython\__init__.py)

Known workarounds

Provide a description of any known workarounds.

Contents of the requirements.txt file:

Provide the requirements.txt file to help us find out module related issues.

Related information

Provide any related information
  • Links to source
  • Bindings used

Any ETA as to when local runtime of functions will support Python 3.7, 3.8, 3.9 64-bit running locally on Windows? Documentation shows support for 3.8, however worker is at 3.6?

https://github.com/Azure/azure-functions-python-worker/wiki/Contributor-Guide

Is there a reason for hard-coded dependency on 3.6? Is feature to target python version within the worker runtime available yet?

Relates

#450

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions