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

'dict' object has no attribute 'itervalues' #7

Open
ldwnt opened this issue Nov 11, 2021 · 0 comments
Open

'dict' object has no attribute 'itervalues' #7

ldwnt opened this issue Nov 11, 2021 · 0 comments

Comments

@ldwnt
Copy link

ldwnt commented Nov 11, 2021

An exception thrown when used with pyrasite-memory-viewer:

(py381torch160) [cxh@deepq ~]$ pyrasite-memory-viewer 3365181
loaded line 12838, 12839 objs,   1.5 /   1.5 MiB read in 0.1s
checked    12838 /    12839 collapsed      327
set parents    12511 /    12512
collapsed in 0.0s
set parents    12511 /    12512
Traceback (most recent call last):
  File "/home/cxh/.pyenv/versions/py381torch160/bin/pyrasite-memory-viewer", line 11, in <module>
    load_entry_point('pyrasite==2.0', 'console_scripts', 'pyrasite-memory-viewer')()
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/pyrasite/tools/memory_viewer.py", line 153, in main
    PyrasiteMemoryViewer(pid=pid, objects=objects).main()
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/pyrasite/tools/memory_viewer.py", line 130, in main
    self.view, self.exit_view = self.setup_view()
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/pyrasite/tools/memory_viewer.py", line 86, in setup_view
    self.object_buttons = self.get_object_buttons()
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/pyrasite/tools/memory_viewer.py", line 75, in get_object_buttons
    for i, line in enumerate(str(self.summary).split('\n')):
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/meliae/loader.py", line 177, in __repr__
    self.by_size()
  File "/home/cxh/.pyenv/versions/3.8.1/envs/py381torch160/lib/python3.8/site-packages/meliae/loader.py", line 198, in by_size
    summaries = sorted(self.type_summaries.itervalues(),
AttributeError: 'dict' object has no attribute 'itervalues' 

python: 3.8.1
meliae: 0.5.1
pyrasite: 2.0

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