Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError from AzuriteVisualizer.py #3

Open
chris-waters opened this issue Apr 27, 2017 · 6 comments
Open

TypeError from AzuriteVisualizer.py #3

chris-waters opened this issue Apr 27, 2017 · 6 comments

Comments

@chris-waters
Copy link

The PS portion seems to run fine and produces the JSON output as expected. The subscription JSON file seems to be properly formatted. When running the Visualizer against the subscription JSON file produces this.

Traceback (most recent call last):
File "AzuriteVisualizer.py", line 479, in
main()
File "AzuriteVisualizer.py", line 476, in main
parseJson()
File "AzuriteVisualizer.py", line 51, in parseJson
vnetNode['label'] = vnet['vnetName']
TypeError: string indices must be integers

@ekaithula1
Copy link

I received the same error as Chris. The PS scripts generates the JSON file fine.
[*] Parsing data...
Traceback (most recent call last):
File "AzuriteVisualizer.py", line 479, in
main()
File "AzuriteVisualizer.py", line 476, in main
parseJson()
File "AzuriteVisualizer.py", line 51, in parseJson
vnetNode['label'] = vnet['vnetName']
TypeError: string indices must be integers

@ppptrevoro
Copy link

Same error , I inspected where it is failing and there is not any data there, feels like its choking expecting something that doesn't exist

[*] Parsing data... Traceback (most recent call last): File "AzuriteVisualizer.py", line 479, in <module> main() File "AzuriteVisualizer.py", line 476, in main parseJson() File "AzuriteVisualizer.py", line 132, in parseJson for vmNetworkIpConfiguration in subnetItem['vmNetworkConfiguration']['vmNetworkConfigurationIpConfigurations']: KeyError: 'vmNetworkConfigurationIpConfigurations'

elgreco-dev pushed a commit that referenced this issue Nov 4, 2017
@Xergy
Copy link

Xergy commented May 23, 2018

Same issue:

[*] Parsing data...
Traceback (most recent call last):
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 479, in
main()
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 476, in main
parseJson()
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 51, in parseJson
vnetNode['label'] = vnet['vnetName']
TypeError: string indices must be integers, not str

Any ideas?

@elgreco-dev
Copy link
Contributor

Can you retry?

@Xergy
Copy link

Xergy commented May 24, 2018

New error, maybe it's related to my data, so I attached a sample.

[*] Parsing data...
Traceback (most recent call last):
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 483, in
main()
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 480, in main
parseJson()
File "C:/GitRepos/Azurite/AzuriteVisualizer.py", line 136, in parseJson
for vmNetworkIpConfiguration in subnetItem['vmNetworkConfiguration']['vmNetworkConfigurationIpConfi gurations']:
KeyError: 'vmNetworkConfigurationIpConfigurations'

I'm running the .py scripts with the following line in git bash. I've never run python before so it might be some obvious issues I'm missings.

raffe@raffe-zbook MINGW64 /c/Python27
$ ./python.exe C:/GitRepos/Azurite/AzuriteVisualizer.py C:/GitRepos/Azurite/azure-subscription_ed347077-d367-4401-af11-a87b73bbae0e_raffe@mcsinternaltrials.onmicrosoft.com.json

ProblemJsons.zip

Thanks for your help!

@ananth-she11z
Copy link

The issue is still there. Any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants