Open MattoHopkins opened 2 years ago
alias
I also had the error Unable to load extension 'alias: cannot import name 'soft_unicode' from 'markupsafe' (/home/kai/.azure/cliextensions/alias/markupsafe/__init__.py)'. Use --debug for more information. 'alias' is misspelled or not recognized by the system.
with
azure-cli 2.51.0
core 2.51.0
telemetry 1.1.0
Extensions:
alias 0.5.2
as a quick fix I created and applied this script
#!/bin/bash
set -e
extpath=`az extension list --query "[?name=='alias'].path" -o tsv`
version=2.0.1
wget https://github.com/pallets/markupsafe/archive/refs/tags/$version.tar.gz -O ~/markupsafe-$version.tar.gz
tar xvf ~/markupsafe-$version.tar.gz -C ~
cp ~/markupsafe-$version/src/markupsafe/* $extpath/markupsafe
An year passed - will it be ever resolved?
An year passed - will it be ever resolved?
I had the same issue but thanks to @KaiWalter answer, the problem is now solved.
This is autogenerated. Please review and update as needed.
Describe the bug
AZ alias extension no longer works due to the removal of soft_unicode from latest markupsafe version. https://github.com/aws/aws-sam-cli/issues/3661 <- similar issue, different app
Command Name az alias list
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az alias list
Expected Behavior
Environment Summary
Additional Context