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 !!!

Abierto
#184 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
389
Forks
556
Merge medio
3 d 12 h
PR fusionados (30 d)
1

Descripción

- [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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce la importación en un cuaderno de VSCode utilizando el entorno virtual de Python indicado y el paquete azure-cognitiveservices-vision-customvision. Comprueba que el entorno seleccionado en el cuaderno coincida con el entorno en el que se instaló el paquete; se considera hecho cuando la importación de CustomVisionTrainingClient se realiza correctamente sin ModuleNotFoundError. No se ha nombrado ningún archivo del repositorio ni ninguna prueba.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, jupyter-notebook, python, vscode
Área
cloud
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.