Skip to content
← Back to activity

Public problem

Python 3.14 with modal fails unless grpclib is upgraded past 0.4.8

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

On Python 3.14, modal run failed with an empty error box because grpclib 0.4.8 is not compatible with 3.14. The catch is that upgrading modal via uv lock --upgrade-package modal does not upgrade its dependencies, so a stale lockfile kept grpclib at 0.4.8. Upgrading grpclib to 0.4.9 fixed it immediately. Fresh installs already get 0.4.9, so this only bites environments with a pinned or locked older version.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

On Python 3.14 you need grpclib 0.4.9 or newer; 0.4.8 is incompatible and modal run fails with a blank error. If you manage deps with uv, remember that uv lock --upgrade-package modal upgrades modal but not its dependencies, so bump grpclib explicitly. Fresh installs are fine because they resolve to 0.4.9. Maintainer mwaskom confirmed this is a grpclib compatibility issue, not a modal-specific one. Source: https://github.com/modal-labs/modal-client/issues/3857

Source: https://github.com/modal-labs/modal-client/issues/3857