Skip to content

azure-mgmt-resourcegraph==8.0.0 fails with azure-core 1.36.0 #43625

@jtrivett

Description

@jtrivett
  • Package Name: azure-mgmt-resourcegraph
  • Package Version: 8.0.0
  • Operating System: Ubuntu 24.04
  • Python Version: 3.12

Describe the bug
azure-core removed six as a dependency in version 1.36.0. azure-mgmt-resourcegraph==8.0.0 does not appear to declare a direct dependency on six, but contains code which requires it and assumes it is being provided by another azure python module.

To Reproduce
Steps to reproduce the behavior:

  1. Install azure-mgmt-resourcegraph==8.0.0. six is not installed as dependency.
  2. from azure.mgmt.resourcegraph import ResourceGraphClient -> this immediately raises ModuleNotFoundError: No module named 'six'

Expected behavior
pip install azure-mgmt-resourcegraph includes all dependencies required for usage of the ResourceGraphClient

Screenshots
Error message:

Traceback (most recent call last):
  File "/agent/_work/11/s/./scripts/update-http-allowlist-py/update-http-allowlist.py", line 5, in <module>
    from azure.mgmt.resourcegraph import ResourceGraphClient
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/__init__.py", line 9, in <module>
    from ._resource_graph_client import ResourceGraphClient
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/_resource_graph_client.py", line 21, in <module>
    from .operations import ResourceGraphClientOperationsMixin
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/operations/__init__.py", line 9, in <module>
    from ._resource_graph_client_operations import ResourceGraphClientOperationsMixin
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/operations/_resource_graph_client_operations.py", line 16, in <module>
    from .. import models as _models
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/models/__init__.py", line 44, in <module>
    from ._resource_graph_client_enums import (
  File "/tmp/venv-3.12/lib/python3.12/site-packages/azure/mgmt/resourcegraph/models/_resource_graph_client_enums.py", line 10, in <module>
    from six import with_metaclass
ModuleNotFoundError: No module named 'six'

requirements.txt:

requests
azure.identity
azure.mgmt.resourcegraph

Results of pip install:

Successfully installed PyJWT-2.10.1 azure-common-1.1.28 azure-core-1.36.0 azure-mgmt-core-1.6.0 azure.identity-1.25.1 azure.mgmt.resourcegraph-8.0.0 certifi-2025.10.5 cffi-2.0.0 charset_normalizer-3.4.4 cryptography-46.0.3 idna-3.11 isodate-0.7.2 msal-1.34.0 msal-extensions-1.3.1 msrest-0.7.1 oauthlib-3.3.1 pycparser-2.23 requests-2.32.5 requests-oauthlib-2.0.0 typing-extensions-4.15.0 urllib3-2.5.0
azure-common==1.1.28
azure-core==1.36.0
azure-identity==1.25.1
azure-mgmt-core==1.6.0
azure-mgmt-resourcegraph==8.0.0
certifi==2025.10.5
cffi==2.0.0
charset-normalizer==3.4.4
cryptography==46.0.3
idna==3.11
isodate==0.7.2
msal==1.34.0
msal-extensions==1.3.1
msrest==0.7.1
oauthlib==3.3.1
pycparser==2.23
PyJWT==2.10.1
requests==2.32.5
requests-oauthlib==2.0.0
typing_extensions==4.15.0
urllib3==2.5.0

Additional context
Root cause appears to be a combination of two items:

Metadata

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.Resource GraphService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions