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

オープン
#184 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
389
フォーク
556
平均マージ
3日 12時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

指定された Python 仮想環境と azure-cognitiveservices-vision-customvision パッケージを使用して、VSCode ノートブックでインポートを再現します。ノートブックで選択されている環境が、パッケージをインストールした環境と一致することを確認します。CustomVisionTrainingClient のインポートが ModuleNotFoundError なしで成功すれば完了です。リポジトリのファイル名やテスト名は指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, jupyter-notebook, python, vscode
領域
cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。