Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6k stars 4.11k forks source link

ModuleNotFoundError: No module named 'azure' on ./scripts/prepdocs.ps1 #886

Open prakhargurawa opened 11 months ago

prakhargurawa commented 11 months ago

This issue is for a: (mark with an x)

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

I just did azd up and also tried with .\scripts\prepdocs.ps1 and i am not able to upload my documents and created indexes. It gives me error: ModuleNotFoundError: No module named 'azure' (Screenshot added: I just called prepdocs.ps1

Expected/desired behavior

It should have uploaded documents on cloud

OS and Version?

CaptureErr

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 10

azd version?

run azd version and copy paste here. 1.1.0

Thanks! We'll be in touch soon.

waelkdouh commented 11 months ago

I am facing the same issue when running python prepdocs.py inside the scripts folder.

adamcodes716 commented 11 months ago

I just had the same issue. It turns out that I was using an older version of Python. I had downloaded and installed 3.11, but the OS was still finding 3.8. As soon as I deleted 3.8 from "Apps", the command prompt immediately identified 3.11 after I ran "python --version". When I went through the install again, I did not get the error.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.