For what it's worth, for historical reasons, I currently have to run version 12.0.0 of the kubernetes client, so in addition to pinning a version, if this specific import isn't absolutely needed, it could help folks like myself who need a bit more backwards compatibility.