question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az lab custom-image create __init__() takes 1 positional argument but 2 were given

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az lab custom-image create

Errors:

__init__() takes 1 positional argument but 2 were given
Traceback (most recent call last):
Temp\pip-install-363drsgw\knack\knack\cli.py, ln 215, in invoke
azure\cli\core\commands\__init__.py, ln 654, in execute
azure\cli\core\commands\__init__.py, ln 718, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 711, in _run_job
Local\Temp\pip-install-363drsgw\six\six.py, ln 703, in reraise
azure\cli\core\commands\__init__.py, ln 688, in _run_job
azure\cli\core\commands\__init__.py, ln 325, in __call__
site-packages\azure\cli\core\__init__.py, ln 545, in default_command_handler
azure\cli\command_modules\lab\custom.py, ln 20, in create_custom_image
TypeError: __init__() takes 1 positional argument but 2 were 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 lab custom-image create --lab-name {} --resource-group {} --name {} --author {} --description {} --os-type {} --os-state {} --source-vm-id {} --debug

Expected Behavior

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.8.0

Extensions:
azure-devops 0.18.0

Additional Context

The same command is working with older Azure CLI version 2.5.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tanmayeekamathcommented, Aug 18, 2020

@pedroneil Apologies for the delay on this one. We are actively working on this and should push the fix in within the next couple of days. It will be fixed once the CLI team incorporates our fix. Reverting to the previous version of the cli should temporarily solve this problem.

Thanks for your patience, Tanmayee

Read more comments on GitHub >

github_iconTop Results From Across the Web

init takes 1 argument but 2 were given? (Positional)
The problem is that your __init__ method for the Enemy class takes only 1 argument, which is the self argument.
Read more >
lookup_transform: TypeError: __init__() takes 1 positional ...
... Duration(0)) TypeError: __init__() takes 1 positional argument but 2 were given The line seems to cause this error. trans = self.
Read more >
Release notes & updates – Azure CLI - Microsoft Learn
Fix #24624: az sig image-version create : Fix the error that the ... Lab. Fix #14127: __init__() takes 1 positional argument but 2...
Read more >
TypeError: __init__() takes 1 positional argument but 2 were ...
i am trying to pass single image to the network but got error . loader = transforms.Compose([ transforms.
Read more >
Documentation: MultiQC
MultiQC modules can take plot more extensive data in the sections below the general statistics table. Interactive plots. Plots in MultiQC reports are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found