Summary
Doc generation fails on Python 3.14 when running ExportCommands.py.
Environment
- Repo:
Azure/azure-cli
- OS: Windows
- Python (failing):
3.14.4
- Python (working):
3.13.13
Repro steps
- Activate
env314.
- Ensure
PYTHONPATH includes local knack checkout.
- Run:
python ExportCommands.py ./doc
Actual result
The run fails during command argument loading with:
AttributeError: module 'azure.batch.models' has no attribute 'bool | None'
Trace location includes:
azure-cli/src/azure-cli/azure/cli/command_modules/batch/_command_type.py:838
azure-cli/src/azure-cli/azure/cli/command_modules/batch/_command_type.py:41
Expected result
Doc generation completes successfully.
Comparison
- Python
3.13.13: succeeds (Export finished, help files generated)
- Python
3.14.4: fails with the error above
Additional output seen in failing run
- Error loading command module
acs: deadlock detected by _ModuleLock('requests.structures')
- Error loading command module
containerapp: deadlock detected by _ModuleLock('requests.structures')
Summary
Doc generation fails on Python 3.14 when running
ExportCommands.py.Environment
Azure/azure-cli3.14.43.13.13Repro steps
env314.PYTHONPATHincludes localknackcheckout.python ExportCommands.py ./docActual result
The run fails during command argument loading with:
AttributeError: module 'azure.batch.models' has no attribute 'bool | None'Trace location includes:
azure-cli/src/azure-cli/azure/cli/command_modules/batch/_command_type.py:838azure-cli/src/azure-cli/azure/cli/command_modules/batch/_command_type.py:41Expected result
Doc generation completes successfully.
Comparison
3.13.13: succeeds (Export finished, help files generated)3.14.4: fails with the error aboveAdditional output seen in failing run
acs: deadlock detected by_ModuleLock('requests.structures')containerapp: deadlock detected by_ModuleLock('requests.structures')