# Oh really? Ok, let's use flox

**URL:** <https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488>\
**Category:** Developing with flox\
**Created:** [November 11, 2022, 2:53pm UTC](https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488 "2022-11-11T14:53:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [November 11, 2022, 2:53pm UTC](https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488/1 "2022-11-11T14:53:26Z")

</div>

Here is a little session

```auto
± gcloud auth login gcloud
ERROR: gcloud failed to load: module 'collections' has no attribute 'Mapping'
    gcloud_main = _import_gcloud_main()
    import googlecloudsdk.gcloud_main
    from googlecloudsdk.calliope import cli
    from googlecloudsdk.calliope import actions
    from googlecloudsdk.calliope import markdown
    from googlecloudsdk.calliope import usage_text
    from googlecloudsdk.calliope import parser_arguments
    from googlecloudsdk.calliope import parser_completer
    from googlecloudsdk.core.console import progress_tracker
    class _BaseStagedProgressTracker(collections.Mapping):

This usually indicates corruption in your gcloud installation or problems with your Python interpreter.

Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
    /usr/local/bin/python3

If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.

If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
    https://cloud.google.com/sdk/

```

Ok, what about:

```auto
± flox install -e gcloud google-cloud-sdk

```

Success!

```auto
± . <(flox activate -e gcloud)

flox [gcloud default]
± gcloud auth login Your browser has been opened to visit:
...

```

I’m not sure yet if `gcloud` needs an environment on its own but not having to worry about python dependencies is a great win 🙂.

---

<div class="post-metadata">

**Author:** ![robinbrantley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/robinbrantley/32/39_2.png) [@robinbrantley](https://discourse.flox.dev/u/robinbrantley)\
**Post date:** [November 11, 2022, 8:02pm UTC](https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488/2 "2022-11-11T20:02:16Z")

</div>

Love the post, thank you! 🥰

---

<div class="post-metadata">

**Author:** ![mikhail.zholobov](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/mikhail.zholobov/32/482_2.png) [@mikhail.zholobov](https://discourse.flox.dev/u/mikhail.zholobov)\
**Post date:** [January 19, 2025, 10:43am UTC](https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488/3 "2025-01-19T10:43:29Z")

</div>

@etorreborre Thank you!  
Did you find out how to install extra components of gcloud, like `gke-gcloud-auth-plugin` ?

I found that in nixpkgs docs:

```auto
let
  gdk = pkgs.google-cloud-sdk.withExtraComponents( with pkgs.google-cloud-sdk.components; [
    gke-gcloud-auth-plugin
  ]);
in
{
  packages = [
    gdk
  ];
}

```

[https://nixos.wiki/wiki/Google\_Cloud\_SDK](https://nixos.wiki/wiki/Google_Cloud_SDK)

Does anyone know how can that be done with flox? How will it look in `manifest.toml`?  
Thanks!

---

<div class="post-metadata">

**Author:** ![dcarley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/dcarley/32/729_2.png) [@dcarley](https://discourse.flox.dev/u/dcarley)\
**Post date:** [January 21, 2025, 10:03am UTC](https://discourse.flox.dev/t/oh-really-ok-lets-use-flox/488/4 "2025-01-21T10:03:04Z")

</div>

It’s not currently possible to specify `withExtraComponents` through the `manifest.toml`. However another user recently posted a solution using our Flake support. I’ve filed a feature request, which includes details of that workaround, here:

- [Install google-cloud-sdk withExtraComponents (gke-gcloud-auth-plugin) · Issue #2627 · flox/flox · GitHub](https://github.com/flox/flox/issues/2627)

Please let us know if you have any problems getting it working.
