pythonazure-functions-core-tools

Can't import name 'cygrpc' from 'grpc._cython


I'm trying to locally test a function i've written, but keep getting the error "cannot import name 'cygrpc' from 'grpc._cython" which causes attempts to run the function to fail

I've made sure i'm running python 3.9 for compatibility, and the most recent version of azure functions core tools, as specified on the microsoft troubleshooting web page. Does anyone know of another work around for this?


Solution

  • What worked for me was running func init in the project (I'd cloned the project to a new machine and not run this step). After this it worked fine.