Azure-Samples / Azure-Samples/cognitive-services-quickstart-code

URGENT: the dreaded "ModuleNotFound: Azure" error is being thrown when executing the from-import lines of code !!!

Ouverte
#184 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
389
Forks
556
Merge moyen
3 j 12 h
PR mergées (30 j)
1

Description

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>
START VSCode;
INSTALL Python extensions (which will INCLUDE everything to run Jupyter Notebooks in a project) in VSCode;
DEFINE a python virtual environment for your project;
INSTALL Azure CognitiveServices "custom vision" package into that virtual environment;
(pip install azure-cognitiveservices-vision-customvision)
COPY the following line into a notebook cell:
from azure.cognitiveservices.vision.customvision.training import CustomVisionTrainingClient
EXECUTE the cell

=> RESULT: VSCode will throw the following exception:
ModuleNotFoundError: No module named 'azure'

### Any log messages given by the failure
>ModuleNotFoundError: No module named 'azure'

### Expected/desired behavior
> the desired class is SUCCESSFULLY imported into the notebook

### OS and Version?
> Win10pro (all auto-patching CURRENT)

### Mention any other details that might be useful
> COPIED & PASTED code VERBATUM directly from the following "QuickStart" web page at docs.microsoft.com:
https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/image-classification?tabs=visual-studio&pivots=programming-language-python

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez l’import dans un notebook VSCode en utilisant l’environnement virtuel Python indiqué et le package azure-cognitiveservices-vision-customvision. Vérifiez que l’environnement sélectionné dans le notebook correspond à l’environnement dans lequel le package a été installé ; c’est terminé lorsque l’import de CustomVisionTrainingClient réussit sans ModuleNotFoundError. Aucun fichier du dépôt ni aucun test n’est nommé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
azure, jupyter-notebook, python, vscode
Domaine
cloud
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.