-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
more info neededAn issue that needs more information from the reporter before it can be addressedAn issue that needs more information from the reporter before it can be addressed
Description
Hello,
I am able to deploy the app in Azure App service and run locally. Now, I wanted to share this with my colleague, I followed the steps mentioned here: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/sharing_environments.md
On my colleague's machine, I just ran start.ps1 without running azd up and I keep getting below error about a python module:
PS C:\Users\VarSh\Downloads\poc\poc\app\backend> python -m quart --app main:app run --port 50505 --host localhost --reload
Usage: python -m quart run [OPTIONS]
Try 'python -m quart run --help' for help.
Error: While importing 'main', an ImportError was raised:
Traceback (most recent call last):
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\quart\cli.py", line 175, in locate_app
module = import_module(module_name)
File "C:\Program Files\Python313\Lib\importlib\__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "C:\Users\VarSh\Downloads\poc\poc\app\backend\main.py", line 3, in <module>
from app import create_app
File "C:\Users\VarSh\Downloads\poc\poc\app\backend\app.py", line 19, in <module>
from azure.identity.aio import (
...<3 lines>...
)
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\__init__.py", line 10, in <module>
from ._credentials import (
...<19 lines>...
)
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_credentials\__init__.py", line 5, in <module>
from .authorization_code import AuthorizationCodeCredential
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_credentials\authorization_code.py", line 9, in <module>
from .._internal.aad_client import AadClient
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_internal\__init__.py", line 5, in <module>
from .aad_client import AadClient
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_internal\aad_client.py", line 11, in <module>
from .aad_client_base import AadClientBase
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_internal\aad_client_base.py", line 20, in <module>
from .aadclient_certificate import AadClientCertificate
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\azure\identity\_internal\aadclient_certificate.py", line 7, in <module>
from cryptography import x509
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\cryptography\x509\__init__.py", line 7, in <module>
from cryptography.x509 import certificate_transparency, verification
File "C:\Users\VarSh\Downloads\poc\poc\app\.venv\Lib\site-packages\cryptography\x509\certificate_transparency.py", line 11, in <module>
from cryptography.hazmat.bindings._rust import x509 as rust_x509
ModuleNotFoundError: No module named '_cffi_backend'
After trying various ways to get this module installed, this error does not disappear. My question is:
- Does my colleague need to run
azd up
to be able to runstart.ps1
successfully in order to resolve the python module import error? It seems weird.
Please advise.
Thanks
Metadata
Metadata
Assignees
Labels
more info neededAn issue that needs more information from the reporter before it can be addressedAn issue that needs more information from the reporter before it can be addressed