-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.Resource GraphService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
- 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:
- Install azure-mgmt-resourcegraph==8.0.0. six is not installed as dependency.
- 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:
- Recent merge of azure-core: remove six dependency #39962 in azure-core==1.36.0
- Incorrectly defined/scoped dependencies in azure-mgmt-resourcegraph==8.0.0
Metadata
Metadata
Assignees
Labels
MgmtThis issue is related to a management-plane library.This issue is related to a management-plane library.Resource GraphService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that