Giter Site home page Giter Site logo

Linking to this issue because it still exists, 3 years later: https://github.com/Azure/azure-cli/issues/19468 about azure-cli HOT 9 CLOSED

tyler-suard-parker avatar tyler-suard-parker commented on August 19, 2024
Linking to this issue because it still exists, 3 years later: https://github.com/Azure/azure-cli/issues/19468

from azure-cli.

Comments (9)

yonzhan avatar yonzhan commented on August 19, 2024

Thank you for opening this issue, we will look into it.

from azure-cli.

azure-client-tools-bot-prd avatar azure-client-tools-bot-prd commented on August 19, 2024

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.

tyler-suard-parker avatar tyler-suard-parker commented on August 19, 2024

@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.

bebound avatar bebound commented on August 19, 2024

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.

tyler-suard-parker avatar tyler-suard-parker commented on August 19, 2024

@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.

bebound avatar bebound commented on August 19, 2024

What's the content of requirements.txt?

from azure-cli.

tyler-suard-parker avatar tyler-suard-parker commented on August 19, 2024

@bebound here is my requirements.txt:

promptflow[azure]>=1.7.0
promptflow-tools
bs4
azure-cli
promptflow-tracing
promptflow-core

from azure-cli.

tyler-suard-parker avatar tyler-suard-parker commented on August 19, 2024

@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.

bebound avatar bebound commented on August 19, 2024

Dependency conflict is a common issue in Python. This is out of CLI's scope.

from azure-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.