Comments (9)
Thank you for opening this issue, we will look into it.
from azure-cli.
Hi @tyler-suard-parker
Find similar issue #19468.
Issue title | pip installs azure-cli 2.0.73 because of the dependency on deprecated jsmin |
Create time | 2021-09-07 |
Comment number | 7 |
Possible solution:
The issue is caused by the dependency on deprecated jsmin
. Azure CLI requires jsmin
which requires use_2to3
, so it doesn't work with the latest setuptools
. The failure causes pip
to install an older version of Azure CLI which is the last version that doesn't depend on jsmin
.
There are two workarounds for this issue. The first one is to pin the version of setuptools
until the issue is fixed. The second one is to install the hotfix 2.28.1 specifically on PyPI.
For the first workaround, you can run the following command to install the correct version of setuptools
:
pip install setuptools==57.5.0
For the second workaround, you can run the following command to install the hotfix:
pip install azure-cli==2.28.1
After installing the hotfix, Azure CLI should install correctly.
Please confirm if this resolves your issue.
from azure-cli.
@azure-client-tools-bot-prd Here is the issue with that solution: if I downgrade my setuptools and my azure-cli version, then I will have to downgrade numerous other packages that the rest of my program depends on. Most of my other packages are new, within the last year, and so downgrading azure-cli to a version from 3 years ago does not make sense for me.
from azure-cli.
Based on the log Using cached azure_cli_core-2.28.0-py3-none-any.whl.metadata (1.7 kB)
, you are trying to install a 3-year-old version.
PS: The bot's second workaround also works.
from azure-cli.
@bebound I did not set the version, I just did pip install azure-cli. I tried both workarounds and neither one works. I am on Windows.
from azure-cli.
What's the content of requirements.txt
?
from azure-cli.
@bebound here is my requirements.txt:
promptflow[azure]>=1.7.0
promptflow-tools
bs4
azure-cli
promptflow-tracing
promptflow-core
from azure-cli.
@bebound solution 2 worked but now I am getting version conflicts for cryptography: azure cli requires cryptography 3-4, while Promptflow requires cryptography 40. How can I solve this?
from azure-cli.
Dependency conflict is a common issue in Python. This is out of CLI's scope.
from azure-cli.
Related Issues (20)
- Assertion message from JMESPathCheck is misleading when actual result evaluates to False. HOT 1
- Service Bus purge / batch delete HOT 1
- Loading the mysql command module adding 5+ seconds to almost all commands. HOT 6
- Not able to login using azure-cli HOT 4
- Testing local Azure Function (Python) + VS Code + Azurite error: Token Expired HOT 4
- Azure Database for PostgreSQL Flexible Server failed to deploy HOT 4
- WAM broker failing in latest 2.63 release for at least ROPC flow HOT 16
- Azure CLI "az containerapp logs show" - retruns malformed JSON HOT 2
- Failed to connect to MSI to create service principle HOT 3
- Create OpenAPI v2/v3 and OpenAPI v1 schemas in API Management HOT 1
- Failed to add Load Balancer addresses to backend pools when syncMode of the Backend pool is set to 'Automatic' HOT 2
- Export SQL database to a local file HOT 1
- Microsoft.Network Resource Provider does not Register HOT 4
- Azure Language copy via az cli HOT 3
- Use Location Header instead of Latest to get Flex deployment update HOT 2
- az vmss list command broken HOT 1
- Run kubectl command encountered failed get token issue by Azure CLI HOT 4
- Allow use of the interactive subscription selector for selecting amongst already logged in accounts HOT 1
- az storage account or-policy create --policy with json file exception HOT 2
- Script only works with destination storage account HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cli.