ImportError: cannot import name 'cygrpc' from 'grpc._cython' (/agents/python/grpc/_cython/__init__.py)

Anshuman Srivastava 30 Reputation points
2024-10-30T10:35:23.9766667+00:00

User's image

i have deployed the python project (fastApi) on app service using container registry and azure devops for ci/cd pipeline it is working perfect but suddenly yesterday it stopped working showing this error my last commit on this project is of 10/10/24, i have not changes anything in my code or app service configuration
i have reployed it and restarted the instance but still facing this issue User's image

please help me out..!!!!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Seb Bartholomew 0 Reputation points
    2024-11-06T09:34:22.2933333+00:00

    We had the same issue from morning of Oct 27th until afternoon of Oct 30th - from our engagement with support we were informed of the following finding today (Nov 6th):

    The Microsoft Azure Team has investigated the issue you reported on Python App Service resources crashing when using grpc while using application insights. This issue was found to be caused by the version of "grpcio" installed by our application insights agent. Upon investigation, engineers discovered that an incompatible version of "grpcio" was installed by the system for some of the python versions. Our engineers mitigated this issue by removing that "grpcio" dependency from the application insights agent.

    Hope this helps clarify what happened for you.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.