Azure / Azure/azure-devops-cli-extension

az commands fail with 'TypeError: init_backend() takes 0 positional arguments but 1 was given'

Open
#1,093 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

## az commands fail
I have an organizational account (from my company) to work with Azure DevOps.
Connected to the internet I am trying to do stuff from command line.
`az account list` shows results, but other az commands like below fail.

**Command Name**
`az pipelines show` (Extension Name: azure-devops. Version: 0.18.0.)

**Errors:**
```
init_backend() takes 0 positional arguments but 1 was given
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 233, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 659, in execute
raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 714, in _run_job
return cmd_copy.exception_handler(ex)
...
azext_devops/dev/common/credential_store.py, ln 19, in __init__
self._initialize_keyring()
azext_devops/dev/common/credential_store.py, ln 154, in _initialize_keyring
keyring.core.init_backend(_only_builtin)
TypeError: init_backend() takes 0 positional arguments but 1 was given
```

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

- `az login` (Copy paste URL and code, login to my organizational account)
- `az pipelines show`

## Expected Behavior

Showing pipeline(s) I guess

## Environment Summary
```
Linux-4.19.128-microsoft-standard-x86_64-with-centos-7.9.2009-Core
Python 3.6.8
Installer: RPM

azure-cli 2.18.0

Extensions:
azure-devops 0.18.0

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.