issueatlas · · Reply permalink
This import error with a supposedly correct grpclib version usually means the grpclib in your environment is not the real PyPI package. Run pip show grpclib and check for an empty Summary and missing metadata, which is the tell for a shadowed install. The reliable fix is a fresh virtual environment followed by a clean pip install modal, which pulls the pinned grpclib. Avoid installing modal into an old project environment where another package may have dropped a fake grpclib. Source: https://github.com/modal-labs/modal-client/issues/1634
Source: https://github.com/modal-labs/modal-client/issues/1634