Skip to content

azure-ml-core 1.60.0 still fails with numpy>= 2.0 #43471

@jkafrouni

Description

@jkafrouni
  • Package Name: azureml-core
  • Package Version: 1.60.0
  • Operating System: any
  • Python Version: any

Describe the bug
#38052 claims to be addressed "in the next release". The issue was for 1.58.0, so I expected it to be fixed in 1.59.0 but I just reproduced the issue in 1.60.0.
I also noticed numpy is not even a dependency of the package although it's used in several places.

To Reproduce
Steps to reproduce the behavior:

Install azureml-core==1.60.0. I don't even see numpy installed as a dependency (I installed in a new virtual environment).
Open the codebase: core/metrics.py still references np.unicode which is not allowed in numpy >=2.0.

Expected behavior

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I don't see numpy as a dependency:

pip install azureml-core==1.60.0
Collecting azureml-core==1.60.0
  Downloading azureml_core-1.60.0-py3-none-any.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 60.4 MB/s eta 0:00:00
Collecting requests[socks]<3.0.0,>=2.19.1
  Using cached requests-2.32.5-py3-none-any.whl (64 kB)
Collecting msal<2.0.0,>=1.15.0
  Using cached msal-1.34.0-py3-none-any.whl (116 kB)
Collecting contextlib2<22.0.0
  Using cached contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting msrestazure<=0.7,>=0.4.33
  Using cached msrestazure-0.6.4.post1-py2.py3-none-any.whl (40 kB)
Collecting argcomplete<4
  Using cached argcomplete-3.6.2-py3-none-any.whl (43 kB)
Collecting azure-mgmt-network<=29.0.0
  Using cached azure_mgmt_network-29.0.0-py3-none-any.whl (608 kB)
Collecting azure-common<2.0.0,>=1.1.12
  Using cached azure_common-1.1.28-py2.py3-none-any.whl (14 kB)
Collecting pytz
  Using cached pytz-2025.2-py2.py3-none-any.whl (509 kB)
Collecting packaging<=25.0,>=20.0
  Using cached packaging-25.0-py3-none-any.whl (66 kB)
Collecting azure-mgmt-authorization<5,>=0.40.0
  Using cached azure_mgmt_authorization-4.0.0-py3-none-any.whl (1.1 MB)
Collecting jmespath<2.0.0
  Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting paramiko<4.0.0,>=2.0.8
  Using cached paramiko-3.5.1-py3-none-any.whl (227 kB)
Collecting pathspec<1.0.0
  Using cached pathspec-0.12.1-py3-none-any.whl (31 kB)
Collecting backports.tempfile
  Using cached backports.tempfile-1.0-py2.py3-none-any.whl (4.4 kB)
Collecting azure-mgmt-resource<=24.0.0,>=15.0.0
  Using cached azure_mgmt_resource-24.0.0-py3-none-any.whl (3.6 MB)
Collecting PyJWT<3.0.0
  Using cached PyJWT-2.10.1-py3-none-any.whl (22 kB)
Collecting azure-mgmt-containerregistry<11,>=8.2.0
  Using cached azure_mgmt_containerregistry-10.3.0-py3-none-any.whl (2.3 MB)
Collecting azure-mgmt-keyvault<11.0.0,>=0.40.0
  Using cached azure_mgmt_keyvault-10.3.1-py3-none-any.whl (901 kB)
Collecting docker<8.0.0
  Using cached docker-7.1.0-py3-none-any.whl (147 kB)
Collecting ndg-httpsclient<=0.5.1
  Using cached ndg_httpsclient-0.5.1-py3-none-any.whl (34 kB)
Collecting urllib3<3.0.0,>1.26.17
  Using cached urllib3-2.5.0-py3-none-any.whl (129 kB)
Collecting knack<0.13.0
  Using cached knack-0.12.0-py3-none-any.whl (60 kB)
Collecting python-dateutil<3.0.0,>=2.7.3
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting jsonpickle<5.0.0
  Using cached jsonpickle-4.1.1-py3-none-any.whl (47 kB)
Collecting azure-core<2.0.0
  Using cached azure_core-1.36.0-py3-none-any.whl (213 kB)
Collecting msrest<=0.7.1,>=0.5.1
  Using cached msrest-0.7.1-py3-none-any.whl (85 kB)
Collecting azure-graphrbac<1.0.0,>=0.40.0
  Using cached azure_graphrbac-0.61.2-py2.py3-none-any.whl (142 kB)
Collecting adal<=1.2.7,>=1.2.0
  Using cached adal-1.2.7-py2.py3-none-any.whl (55 kB)
Collecting azure-mgmt-storage<=23.0.0,>=16.0.0
  Using cached azure_mgmt_storage-23.0.0-py3-none-any.whl (286 kB)
Collecting msal-extensions<=2.0.0,>=0.3.0
  Using cached msal_extensions-1.3.1-py3-none-any.whl (20 kB)
Collecting SecretStorage<4.0.0
  Using cached secretstorage-3.4.0-py3-none-any.whl (15 kB)
Collecting pkginfo
  Using cached pkginfo-1.12.1.2-py3-none-any.whl (32 kB)
Collecting humanfriendly<11.0,>=4.7
  Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Collecting pyopenssl<26.0.0
  Downloading pyopenssl-25.3.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.3/57.3 kB 4.8 MB/s eta 0:00:00
Collecting cryptography>=1.1.0
  Downloading cryptography-46.0.3-cp38-abi3-manylinux_2_28_x86_64.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 70.3 MB/s eta 0:00:00
Collecting typing-extensions>=4.6.0
  Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Collecting azure-mgmt-core<2.0.0,>=1.3.2
  Using cached azure_mgmt_core-1.6.0-py3-none-any.whl (29 kB)
Collecting isodate<1.0.0,>=0.6.1
  Using cached isodate-0.7.2-py3-none-any.whl (22 kB)
Collecting tabulate
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting pyyaml
  Using cached pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (770 kB)
Collecting pygments
  Using cached pygments-2.19.2-py3-none-any.whl (1.2 MB)
Collecting certifi>=2017.4.17
  Using cached certifi-2025.10.5-py3-none-any.whl (163 kB)
Collecting requests-oauthlib>=0.5.0
  Using cached requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Collecting six
  Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Collecting pyasn1>=0.1.1
  Using cached pyasn1-0.6.1-py3-none-any.whl (83 kB)
Collecting pynacl>=1.5
  Using cached pynacl-1.6.0-cp38-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (1.4 MB)
Collecting bcrypt>=3.2
  Downloading bcrypt-5.0.0-cp39-abi3-manylinux_2_28_x86_64.whl (278 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 278.7/278.7 kB 12.8 MB/s eta 0:00:00
Collecting charset_normalizer<4,>=2
  Using cached charset_normalizer-3.4.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (153 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.11-py3-none-any.whl (71 kB)
Collecting PySocks!=1.5.7,>=1.5.6
  Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting jeepney>=0.6
  Using cached jeepney-0.9.0-py3-none-any.whl (49 kB)
Collecting backports.weakref
  Using cached backports.weakref-1.0.post1-py2.py3-none-any.whl (5.2 kB)
Collecting cffi>=2.0.0
  Using cached cffi-2.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (216 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.3.1-py3-none-any.whl (160 kB)
Collecting pycparser
  Using cached pycparser-2.23-py3-none-any.whl (118 kB)
Installing collected packages: pytz, backports.weakref, azure-common, urllib3, typing-extensions, tabulate, six, pyyaml, PySocks, PyJWT, pygments, pycparser, pyasn1, pkginfo, pathspec, packaging, oauthlib, jsonpickle, jmespath, jeepney, isodate, idna, humanfriendly, contextlib2, charset_normalizer, certifi, bcrypt, backports.tempfile, argcomplete, requests, python-dateutil, knack, cffi, requests-oauthlib, pynacl, docker, cryptography, azure-core, SecretStorage, pyopenssl, paramiko, msrest, azure-mgmt-core, adal, ndg-httpsclient, msrestazure, msal, azure-mgmt-storage, azure-mgmt-resource, azure-mgmt-network, azure-mgmt-keyvault, azure-mgmt-containerregistry, azure-mgmt-authorization, msal-extensions, azure-graphrbac, azureml-core
Successfully installed PyJWT-2.10.1 PySocks-1.7.1 SecretStorage-3.4.0 adal-1.2.7 argcomplete-3.6.2 azure-common-1.1.28 azure-core-1.36.0 azure-graphrbac-0.61.2 azure-mgmt-authorization-4.0.0 azure-mgmt-containerregistry-10.3.0 azure-mgmt-core-1.6.0 azure-mgmt-keyvault-10.3.1 azure-mgmt-network-29.0.0 azure-mgmt-resource-24.0.0 azure-mgmt-storage-23.0.0 azureml-core-1.60.0 backports.tempfile-1.0 backports.weakref-1.0.post1 bcrypt-5.0.0 certifi-2025.10.5 cffi-2.0.0 charset_normalizer-3.4.4 contextlib2-21.6.0 cryptography-46.0.3 docker-7.1.0 humanfriendly-10.0 idna-3.11 isodate-0.7.2 jeepney-0.9.0 jmespath-1.0.1 jsonpickle-4.1.1 knack-0.12.0 msal-1.34.0 msal-extensions-1.3.1 msrest-0.7.1 msrestazure-0.6.4.post1 ndg-httpsclient-0.5.1 oauthlib-3.3.1 packaging-25.0 paramiko-3.5.1 pathspec-0.12.1 pkginfo-1.12.1.2 pyasn1-0.6.1 pycparser-2.23 pygments-2.19.2 pynacl-1.6.0 pyopenssl-25.3.0 python-dateutil-2.9.0.post0 pytz-2025.2 pyyaml-6.0.3 requests-2.32.5 requests-oauthlib-2.0.0 six-1.17.0 tabulate-0.9.0 typing-extensions-4.15.0 urllib3-2.5.0

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Machine LearningService 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