Skip to content

{AKS}: pin supabase==2.8.0 to avoid ModuleNotFoundError#9401

Merged
yanzhudd merged 1 commit intoAzure:mainfrom
mainred:pin-supabase
Nov 7, 2025
Merged

{AKS}: pin supabase==2.8.0 to avoid ModuleNotFoundError#9401
yanzhudd merged 1 commit intoAzure:mainfrom
mainred:pin-supabase

Conversation

@mainred
Copy link
Copy Markdown
Member

@mainred mainred commented Nov 7, 2025


supabase in holmesgpt is defined to use 2.8.0, which when installing holmesgpt through pip, it picks the supabase-2.22.2 and supabase_auth-2.23.3 which are incompatible.

drwxrwxr-x  6 azureuser azureuser   4096 Nov  7 02:56 supabase
drwxrwxr-x  3 azureuser azureuser   4096 Nov  7 02:56 supabase-2.22.2.dist-info
drwxrwxr-x  5 azureuser azureuser   4096 Nov  7 02:56 supabase_auth
drwxrwxr-x  2 azureuser azureuser   4096 Nov  7 02:56 supabase_auth-2.23.3.dist-info
drwxrwxr-x  5 azureuser azureuser   4096 Nov  7 02:56 supabase_functions
drwxrwxr-x  2 azureuser azureuser   4096 Nov  7 02:56 supabase_functions-2.23.3.dist-info
No module named 'supabase_auth.http_clients'
Traceback (most recent call last):
  File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
    raise ex
  File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
  File "/home/azureuser/.azure/cliextensions/aks-agent/azext_aks_agent/custom.py", line 83, in aks_agent
    aks_agent_internal(
  File "/home/azureuser/.azure/cliextensions/aks-agent/azext_aks_agent/agent/agent.py", line 212, in aks_agent
    config = _setup_traditional_mode_sync(config_file, model, api_key, max_steps, show_tool_output)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/azureuser/.azure/cliextensions/aks-agent/azext_aks_agent/agent/agent.py", line 703, in _setup_traditional_mode_sync
    from holmes.config import Config
  File "/home/azureuser/.azure/cliextensions/aks-agent/holmes/config.py", line 13, in <module>
    from holmes.core.llm import DefaultLLM, LLMModelRegistry
  File "/home/azureuser/.azure/cliextensions/aks-agent/holmes/core/llm.py", line 30, in <module>
    from holmes.core.supabase_dal import SupabaseDal
  File "/home/azureuser/.azure/cliextensions/aks-agent/holmes/core/supabase_dal.py", line 18, in <module>
    from supabase import create_client
  File "/home/azureuser/.azure/cliextensions/aks-agent/supabase/__init__.py", line 22, in <module>
    from ._async.auth_client import AsyncSupabaseAuthClient as ASupabaseAuthClient
  File "/home/azureuser/.azure/cliextensions/aks-agent/supabase/_async/auth_client.py", line 9, in <module>
    from supabase_auth.http_clients import AsyncClient
ModuleNotFoundError: No module named 'supabase_auth.http_clients'

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@mainred mainred requested a review from feiskyer as a code owner November 7, 2025 03:18
Copilot AI review requested due to automatic review settings November 7, 2025 03:18
@mainred mainred requested a review from nilo19 as a code owner November 7, 2025 03:18
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Nov 7, 2025

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Nov 7, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@mainred mainred changed the title pin supabase==2.8.0 to avoid ModuleNotFoundError {AKS}: pin supabase==2.8.0 to avoid ModuleNotFoundError Nov 7, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 7, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a runtime dependency issue by pinning the supabase package to version 2.8.0 to prevent a ModuleNotFoundError.

  • Bumps package version from 1.0.0b9 to 1.0.0b10
  • Pins supabase dependency to version 2.8.0 to fix import errors
  • Updates release history with the change

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/aks-agent/setup.py Increments version to 1.0.0b10 and adds pinned supabase==2.8.0 dependency
src/aks-agent/HISTORY.rst Documents the version release and explains the supabase version pinning rationale

@yanzhudd yanzhudd merged commit f292782 into Azure:main Nov 7, 2025
32 of 33 checks passed
@azclibot
Copy link
Copy Markdown
Collaborator

azclibot commented Nov 7, 2025

[Release] Update index.json for extension [ aks-agent-1.0.0b10 ] : https://dev.azure.com/msazure/One/_build/results?buildId=142976074&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants