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
6.02k stars 4.12k forks source link

Missing module when running locally #789

Open Pancat007 opened 1 year ago

Pancat007 commented 1 year ago

Please provide us with the following information:

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

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

Minimal steps to reproduce

run ./start.ps1 in VS code

Any log messages given by the failure

tarting backend

F:\OpenAI\Code\azure-search-openai\app\backend\backend_env\scripts\python.exe: No module named quart

OS and Version?

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

azd version?

run azd version and copy paste here.

Versions

azd version 1.3.1 (commit b5030da0f29ffe98664c40450187fd8a4cb0d157)

Mention any other details that might be useful


Thanks! We'll be in touch soon.

And i have tried to get into the venv in folder /app/backend/venv and manually run the pip install , it seems might work

Pancat007 commented 1 year ago

E.g. Manaully Run:

Set-Location ./backend/backend_env .\Scripts\Activate.ps1

pip install azure-identity quart quart-cors openai[datalib] tiktoken azure-search-documents==11.4.0b6 azure-storage-blob uvicorn[standard] aiohttp azure-monitor-opentelemetry opentelemetry-instrumentation-asgi opentelemetry-instrumentation-requests opentelemetry-instrumentation-aiohttp-client msal msal-extensions

Not sure if there is a right way to solve this issue

github-actions[bot] commented 10 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.

NicoPlattner commented 8 months ago

I also had an issue with quart and had the following error when trying to run the project locally: C:\Users\ ... \app\backend\backend_env\scripts\python.exe: No module named quart

Turned out that I had a build error due to missing build tools (on Windows 10 btw)

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multidict Failed to build frozenlist multidict ERROR: Could not build wheels for frozenlist, multidict, which is required to install pyproject.toml-based projects

This is because quart depends on aiohttps and because aiohttps depends on multidict

After installing the Build tools everything worked fine