Azure / Azure/MachineLearningNotebooks

ImportError: cannot import name 'ParamSpec' from 'typing_extensions'

Offen
#1,897 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
4.4k
Forks
2.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,
I have this message appeared while running Azure ML pipeline run in Jupyter notebook.
The full error messages is following:

Traceback (most recent call last):
File "prep_data.py", line 21, in
from azureml.data.datapath import DataPath
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azureml/data/__init__.py", line 37, in
from .datacache import DatacacheStore
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azureml/data/datacache.py", line 13, in
from azureml.core.datastore import Datastore
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azureml/core/__init__.py", line 16, in
from .workspace import Workspace
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azureml/core/workspace.py", line 22, in
from azureml._project import _commands
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azureml/_project/_commands.py", line 29, in
from azure.mgmt.resource import ResourceManagementClient
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/__init__.py", line 11, in
from .features import FeatureClient
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/__init__.py", line 9, in
from ._feature_client import FeatureClient
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/_feature_client.py", line 19, in
from ._operations_mixin import FeatureClientOperationsMixin
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/_operations_mixin.py", line 16, in
from . import models as _models
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/models.py", line 7, in
from .v2021_07_01.models import *
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/v2021_07_01/__init__.py", line 9, in
from ._feature_client import FeatureClient
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/v2021_07_01/_feature_client.py", line 18, in
from .operations import FeatureClientOperationsMixin, FeaturesOperations, SubscriptionFeatureRegistrationsOperations
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/v2021_07_01/operations/__init__.py", line 9, in
from ._operations import FeatureClientOperationsMixin
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/mgmt/resource/features/v2021_07_01/operations/_operations.py", line 24, in
from azure.core.tracing.decorator import distributed_trace
File "/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/azure/core/tracing/decorator.py", line 31, in
from typing_extensions import ParamSpec
ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (/azureml-envs/azureml_0d2906f1c950902b3e84ff740c17d7f4/lib/python3.8/site-packages/typing_extensions.py)

I am wondering if that could be related to memory issues, as some people on the web suggested?
I am running only one pipeline for testing, and I load my data off my local folder and upload to default_datastore.
Any other ideas?

Few details about packages I use:
azureml-core 1.48.0
azureml-pipeline-core 1.48.0
typing_extensions 4.5.0

Any other packages you would like to know about?
Thank you

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by reproducing the import from prep_data.py line 21 in the Azure ML Jupyter environment and compare the installed azureml-core 1.48.0, azureml-pipeline-core 1.48.0, and typing_extensions 4.5.0 versions. Trace the failure through azure/core/tracing/decorator.py; done means the Azure ML pipeline imports successfully without the ParamSpec error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, jupyter-notebook, python
Bereich
machine-learning
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.