azure-search-openai-demo
azure-search-openai-demo copied to clipboard
pip cannot install the requirements inside the devcontainer
Please provide us with the following information:
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
Get the latest version of the repo
Use VSCODE Devcontainer comes with the repo
azd uo
Any log messages given by the failure
(✓) Done: App Service: app-backend-we75xncm2crue
Loading azd .env file from current environment...
Creating Python virtual environment "app/backend/.venv"...
Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...
ERROR: Exception:
Traceback (most recent call last):
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 452, in run
installed = install_given_reqs(
^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/req/__init__.py", line 72, in install_given_reqs
requirement.install(
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/req/req_install.py", line 856, in install
install_wheel(
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/operations/install/wheel.py", line 725, in install_wheel
_install_wheel(
File "/workspaces/azure-search-openai-demo/.venv/lib/python3.11/site-packages/pip/_internal/operations/install/wheel.py", line 614, in _install_wheel
assert os.path.exists(pyc_path)
^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Expected/desired behavior
The Python venv build should work within the devcontainer that is provided.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11, but doesn't matter since it is inside the devcontainer
azd version?
run
azd versionand copy paste here.
vscode ➜ /workspaces/azure-search-openai-demo $ azd version
azd version 1.9.6 (commit 0b1a8ad350177078312141f4465ad72205d7c077)
Versions
This one:
https://github.com/Azure-Samples/azure-search-openai-demo/releases/tag/2024-08-08
Mention any other details that might be useful
I think pip install breaks inside the devcontainer
Thanks! We'll be in touch soon.