PromptWizard icon indicating copy to clipboard operation
PromptWizard copied to clipboard

warning/error: No module named 'azure'

Open bmerkle opened this issue 1 year ago • 4 comments

I followed the instructions https://github.com/microsoft/PromptWizard?tab=readme-ov-file#steps-to-be-followed-for-custom-datasets and then I run demos\scenarios\dataset_scenarios_demo.ipynb and get the warning "No module named 'azure'"

seems there is a missing dependency ?

output:

mutated_prompt_generation=Sorry, I am not able to understand your query. Please try again.
Iterations completed:   0%|          | 0/3 [00:00<?, ?it/s]
Time taken to find best prompt: 0.6178853511810303 sec
Time taken to find best prompt: 0.6178853511810303 sec
No module named 'azure'
No module named 'azure'
No module named 'azure'

Optimization Finished...

Possible prompt variations:
No module named 'azure'
No module named 'azure'

bmerkle avatar Dec 19 '24 13:12 bmerkle

error message:

[c:\work\microsoft\PromptWizard\venv\Lib\site-packages\tqdm\auto.py:21](file:///C:/work/microsoft/PromptWizard/venv/Lib/site-packages/tqdm/auto.py:21): TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

to fix warnings i added the following modules manually:

pip install ipywidgets

bmerkle avatar Dec 19 '24 14:12 bmerkle

error message:

Possible prompt variations:
No module named 'azure'
No module named 'azure'
No module named 'azure.identity'
No module named 'azure.identity'

to fix warnings i added the following modules manually:

pip install azure-search-documents pip install azure-identity

bmerkle avatar Dec 19 '24 14:12 bmerkle

yes, as I knew, MS's tools are always not easy to use. Ugly

cn-knight avatar Dec 20 '24 16:12 cn-knight

yes, as I knew, MS's tools are always not easy to use. Ugly

cn-knight avatar Dec 20 '24 16:12 cn-knight

Hi, thanks for your comments. We have updated the relevant files so that the errors don't occur. Please try using the updated code

raghav-2002-os avatar Dec 23 '24 13:12 raghav-2002-os