Skip to content

[os-google-cloud-sdk-1.0_1] gcloud sdk 537.0.0 broken in opnsense 25.7.3_7 #4946

@paragm

Description

@paragm

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

just enabling gcloud sdk in the root shell creates error

`# /usr/local/bin/gcloud --quiet config set project
/usr/local/bin/gcloud: Command not found.
root@OPNsense:~ # /usr/local/bin/gcloud --quiet config set project
ERROR: gcloud failed to load. 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 3.9-3.13 executable:
/usr/local/bin/python3

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

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

Traceback (most recent call last):
File "/usr/local/bin/../google-cloud-sdk/lib/gcloud.py", line 110, in gcloud_exception_handler
yield
File "/usr/local/bin/../google-cloud-sdk/lib/gcloud.py", line 187, in main
gcloud_main = _import_gcloud_main()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/../google-cloud-sdk/lib/gcloud.py", line 90, in _import_gcloud_main
import googlecloudsdk.gcloud_main
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 34, in
from googlecloudsdk.calliope import base
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/calliope/base.py", line 30, in
from googlecloudsdk.calliope import arg_parsers
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/calliope/arg_parsers.py", line 64, in
from googlecloudsdk.core import log
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/log.py", line 32, in
from googlecloudsdk.core import properties
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 35, in
from googlecloudsdk.core.util import encoding
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/universe_descriptor/universe_descriptor.py", line 44, in
from googlecloudsdk.core.console import console_io
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/console/console_io.py", line 88, in
_CONSOLE_WIDTH = console_attr.GetConsoleAttr().GetTermSize()[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/console/console_attr.py", line 691, in GetConsoleAttr
attr = ConsoleAttr(encoding=encoding, term=term)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/../google-cloud-sdk/lib/googlecloudsdk/core/console/console_attr.py", line 290, in init
is_screen_reader = properties.VALUES.accessibility.screen_reader.GetBool()
^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'googlecloudsdk.core.properties' has no attribute 'VALUES' (most likely due to a circular import)`

I have already tried to remove and re-install the sdk plugin twice and still get the same error

this instance was upgraded from 24.7 to 25.7 going thru all stages of updates and reboots in a back to back upgrade scenario

Environment
Opnsense Details:

Type opnsense  
Version 25.7.3_7  
Architecture amd64  
Commit 13101bd9a  
Mirror https://mirror.sfo12.us.leaseweb.net/opnsense/FreeBSD:14:amd64/25.7  
Repositories OPNsense (Priority: 11), mimugmail (Priority: 5)  
Updated on Sat Sep 20 21:43:21 UTC 2025

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions