Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index is not created, error in prepdocs.py #2112

Open
darkanita opened this issue Nov 4, 2024 · 1 comment
Open

Index is not created, error in prepdocs.py #2112

darkanita opened this issue Nov 4, 2024 · 1 comment

Comments

@darkanita
Copy link

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

azd deploy and azd up

Any log messages given by the failure

from azure.identity.aio import AzureDeveloperCliCredential, get_bearer_token_provider

Expected/desired behavior

Running "prepdocs.py"
./app/backend/prepdocs.py "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo/data/*" --verbose
Traceback (most recent call last):
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo\app\backend\prepdocs.py", line 9, in
from azure.identity.aio import AzureDeveloperCliCredential, get_bearer_token_provider
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_init_.py", line 10, in
from .credentials import (
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_credentials_init
.py", line 5, in
from .authorization_code import AuthorizationCodeCredential
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_credentials\authorization_code.py", line 9, in
from ..internal.aad_client import AadClient
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_internal_init
.py", line 5, in
from .aad_client import AadClient
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_internal\aad_client.py", line 11, in
from .aad_client_base import AadClientBase
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_internal\aad_client_base.py", line 20, in
from .aadclient_certificate import AadClientCertificate
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\azure\identity_internal\aadclient_certificate.py", line 7, in
from cryptography import x509
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\cryptography\x509_init_.py", line 7, in
from cryptography.x509 import certificate_transparency, verification
File "C:\Users\alopezmoreno\OneDrive - Microsoft\Desktop\acceleratorAI\azure-search-openai-demo.venv\lib\site-packages\cryptography\x509\certificate_transparency.py", line 11, in
from cryptography.hazmat.bindings._rust import x509 as rust_x509
ImportError: DLL load failed while importing _rust: The specified procedure could not be found.

OS and Version?

Windows 11 Enterprise

azd version?

run azd version and copy paste here.
azd version 1.10.3

Versions

Python 3.11.10

Mention any other details that might be useful


Thanks! We'll be in touch soon.

@pamelafox
Copy link
Collaborator

That error usually indicated that you created a venv outside the devcontainer and then tried to use it inside the devcontainer, or vice versa. (Mismatch in the OS used in the venv)

Can you remove the venv folder entirely and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants