Azure-devops-cli-extension: publishing and downloading artifacts from azure devops using the CLI on Redhat 7.4

Created on 27 Nov 2019  路  7Comments  路  Source: Azure/azure-devops-cli-extension

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az artifacts universal download Extension Name: azure-devops. Version: 0.15.0.

Errors:

The command failed with an unexpected error. Here is the traceback:


_sigint_handler() takes exactly 1 argument (3 given)
Traceback (most recent call last):
  File "/scratch/nljhfl/azure_cli/lib/lib/python2.7/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/scratch/nljhfl/azure_cli/lib/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 603, in execute
    raise ex
TypeError: _sigint_handler() takes exactly 1 argument (3 given)

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • _Put any pre-requisite steps here..._
  • az artifacts universal download --organization {} --feed {} --name {} --version {} --path {}

Expected Behavior

Environment Summary

Linux-3.10.0-693.17.1.el7.x86_64-x86_64-with-redhat-7.4-Maipo
Python 2.7.11
Shell: bash

azure-cli 2.0.77

Extensions:
azure-devops 0.15.0
interactive 0.4.3

Additional Context


bug Packages

Most helpful comment

Hi @atbagga
It looks like moving to python 3.7 fixed this issue for me.
Can you make sure that the installation instructions on the microsoft website get updated correctly?

Here it lists that it is possible to install and run this with Python 2.7.

Thanks.

All 7 comments

@jessie828

  • Are you able to run other commands? try a simple one like az devops project list or az repos list
  • Please share a debug log trace for the az artifacts universal download command. You can do so by running the command with --debug

Hi @atbagga

I am able to run the two commands you propose.
I get the correct output with the projects I own inside azure devops

Also I have attached a log file of the command:
az artifacts universal publish --organization https://sede-pt-ssw.visualstudio.com --feed test_feed --name test-feed-thing --version 1.0.0 --description "description" --path . --debug
azPublishLog.txt

Hi @atbagga
It looks like moving to python 3.7 fixed this issue for me.
Can you make sure that the installation instructions on the microsoft website get updated correctly?

Here it lists that it is possible to install and run this with Python 2.7.

Thanks.

I have the same issue running on Windows

Hi @simonbMS, as a workaround, could you update python to the newest version? Please let us know if this fixes your issue.

Yes, it fixed on my PC. I thing the installation of the Azure CLI should install the required version

@simonbMS glad to hear that you are unblocked. Could you create a new Feature Request issue in this repo with your suggestion? It makes it easier for us to track new features. I've put a work item on our backlog to fix the docs.

Was this page helpful?
0 / 5 - 0 ratings