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 find -q function
'function' object has no attribute 'replace'
Traceback (most recent call last):
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/application.py", line 201, in execute
    result = expanded_arg.func(params)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 403, in _execute_command
    raise ex
AttributeError: 'function' object has no attribute 'replace'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
spboyercommented, Apr 21, 2017
az --version
azure-cli (2.0.3+1.dev20170420)

acr (2.0.1+1.dev20170420)
acs (2.0.3+1.dev20170420)
appservice (0.1.3+1.dev20170420)
batch (2.0.1+1.dev20170420)
cloud (2.0.1+1.dev20170420)
component (2.0.1+1.dev20170420)
configure (2.0.3+1.dev20170420)
container (0.1.3+1.dev20170420)
core (2.0.3+1.dev20170420)
documentdb (0.1.3+1.dev20170420)
feedback (2.0.1+1.dev20170420)
find (0.1.2rc1+1.dev20170312)
iot (0.1.3+1.dev20170420)
keyvault (2.0.1+1.dev20170420)
lab (0.0.2+1.dev20170420)
monitor (0.0.2+1.dev20170420)
network (2.0.3+1.dev20170420)
nspkg (2.0.0+1.dev20170420)
profile (2.0.3+1.dev20170420)
redis (0.2.0+1.dev20170420)
resource (2.0.3+1.dev20170420)
role (2.0.2+1.dev20170420)
sql (2.0.1+1.dev20170420)
storage (2.0.3+1.dev20170420)
vm (2.0.3+1.dev20170420)

Python (Darwin) 2.7.12 (default, Jun 29 2016, 14:05:02)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]
(az-cli-bash) shayneboyer @ ~/az-cli-bash/bin$
Error loading command module 'redis'
No module named mgmt.keyvault
Traceback (most recent call last):
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/application.py", line 201, in execute
    result = expanded_arg.func(params)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 404, in _execute_command
    reraise(*sys.exc_info())
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 399, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/find/custom.py", line 97, in find
    _create_index()
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/find/custom.py", line 59, in _create_index
    _index_help()
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/find/custom.py", line 40, in _index_help
    for cmd, document in list(_cli_index_corpus().items()):
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/find/custom.py", line 34, in _cli_index_corpus
    return build_command_table()
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/find/_gather_commands.py", line 16, in build_command_table
    cmd_table[cmd].load_arguments()
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 207, in load_arguments
    self.arguments.update(self.arguments_loader())
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 443, in arguments_loader
    return extract_args_from_signature(get_op_handler(operation), no_wait_param=no_wait_param)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 341, in get_op_handler
    op = import_module(mod_to_import)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/vm/custom.py", line 19, in <module>
    from azure.cli.command_modules.vm._validators import _get_resource_group_from_vault_name
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/command_modules/vm/_validators.py", line 11, in <module>
    from azure.mgmt.keyvault import KeyVaultManagementClient
ImportError: No module named mgmt.keyvault
1reaction
spboyercommented, Apr 20, 2017

@devigned

$ az find -q function --reindex
'function' object has no attribute 'replace'
Traceback (most recent call last):
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/application.py", line 201, in execute
    result = expanded_arg.func(params)
  File "/Users/shayneboyer/az-cli-bash/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 403, in _execute_command
    raise ex
AttributeError: 'function' object has no attribute 'replace'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Find error codes - Azure Resource Manager | Microsoft Learn
Describes how to find error codes to troubleshoot Azure resources deployed with Azure Resource Manager templates (ARM templates) or Bicep ...
Read more >
"Could not find the module Az.Accounts with given version ...
It will cause problem if AzureRM an Az Modules are both installed. You can have a try to use azure powershell v4 or...
Read more >
Find the Margin of Error for a Z interval - YouTube
The margin of error is the value used to find the endpoints of a confidence interval. After finding the point estimate, the margin...
Read more >
Using Azure CLI with PowerShell: error handling explained
You can see that PowerShell doesn't notice the error and just continues: ... $location = "westeurope" $output = az storage account create -n ......
Read more >
Analyzing and Scoring a Running Record - Reading A-Z
The calculated rates, along with qualitative information and the child's comprehension of the text, are used to determine a child's reading level. Error...
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