azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Missing module when running locally
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 versionand 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
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
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.
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