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: 'int' object is not iterable #175

Open
ssbarnea opened this issue Apr 28, 2022 · 0 comments
Open

TypeError: 'int' object is not iterable #175

ssbarnea opened this issue Apr 28, 2022 · 0 comments

Comments

@ssbarnea
Copy link

I got this exception with the first profile I tried on Python 3.10 on MacOS (arm64).

$ snakeviz perf.prof 
snakeviz web server started on 127.0.0.1:8080; enter Ctrl-C to exit
http://127.0.0.1:8080/snakeviz/%2FUsers%2Fssbarnea%2Fc%2Fos%2Fzuul-jobs%2Fperf.prof
2022-04-28 18:27:37.537 osascript[98698:6850300] ApplePersistence=NO
ERROR:tornado.application:Uncaught exception GET /snakeviz/%2FUsers%2Fssbarnea%2Fc%2Fos%2Fzuul-jobs%2Fperf.prof (127.0.0.1)
HTTPServerRequest(protocol='http', host='127.0.0.1:8080', method='GET', uri='/snakeviz/%2FUsers%2Fssbarnea%2Fc%2Fos%2Fzuul-jobs%2Fperf.prof', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/Users/ssbarnea/.pyenv/versions/3.10.3/lib/python3.10/site-packages/tornado/web.py", line 1702, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/Users/ssbarnea/.pyenv/versions/3.10.3/lib/python3.10/site-packages/snakeviz/main.py", line 37, in get
    table_rows=table_rows(s), callees=json_stats(s))
  File "/Users/ssbarnea/.pyenv/versions/3.10.3/lib/python3.10/site-packages/snakeviz/stats.py", line 62, in json_stats
    nstats[nk]['children'] = dict(
  File "/Users/ssbarnea/.pyenv/versions/3.10.3/lib/python3.10/site-packages/snakeviz/stats.py", line 63, in <genexpr>
    (keyfmt(*ck), list(cv)) for ck, cv in v.items())
TypeError: 'int' object is not iterable
ERROR:tornado.access:500 GET /snakeviz/%2FUsers%2Fssbarnea%2Fc%2Fos%2Fzuul-jobs%2Fperf.prof (127.0.0.1) 49.62ms

The profile can be accessed at https://sbarnea.com/ss/perf.prof

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

1 participant