Skip to content

Conversation

@ale-rt
Copy link

@ale-rt ale-rt commented May 28, 2025

Might fix

cannot import name 'soft_unicode' from 'markupsafe'

for linux users.

YMMV

See:

A similar fix might be added to the other requirements files, but I am not fiddling with those.

Related command

Description

$ az alias list
...
Unable to load extension 'alias: cannot import name 'soft_unicode' from 'markupsafe' (/home/ale/.azure/cliextensions/alias/markupsafe/__init__.py)'. Use --debug for more information.
'alias' is misspelled or not recognized by the system.

Testing Guide

$ az extension add --name=alias
$ az alias list

This checklist is used to make sure that common guidelines for a pull request are followed.

Should fix 
```
cannot import name 'soft_unicode' from 'markupsafe'
```
YMMV

See:
- Azure/azure-cli-extensions#5533
- Azure#22797

A similar fix might be added to the other requirements files, but I am not fiddling with those.
@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

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

Successfully merging this pull request may close these issues.

1 participant