-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
I am unable to open my new chat app
Related command
python chat-app.py
Errors
File "/home/onyinyechi/mslearn-ai-foundry/labfiles/chat-app/python/chat-app.py", line 24
project_client = AIProjectClient(
SyntaxError: expected 'except' or 'finally' block
Issue script & Debug output
project_client = AIProjectClient(
SyntaxError: expected 'except' or 'finally' block
Expected behavior
Expected to run my newly created application
Environment Summary
azure-cli 2.76.0 *
core 2.76.0 *
telemetry 1.1.0
Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0
Python location '/home/onyinyechi/mslearn-ai-foundry/labfiles/chat-app/python/labenv/bin/python3.12'
Config directory '/home/onyinyechi/.azure'
Extensions directory '/home/onyinyechi/.azure/cliextensions'
Python (Linux) 3.12.9 (main, Jul 29 2025, 01:30:13) [GCC 13.2.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
This occurred after I signed into Azure portal and selected tenant and subscription