-
Notifications
You must be signed in to change notification settings - Fork 405
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
mplotqueries with --group-limit throws error in Python 3.x #688
Comments
@chrisbenseler To help reproduce this issue can you please provide:
I suspect the error is related to the Python version rather than the MongoDB server version, but since you have working and non-working environments it would be useful to confirm any obvious differences. Thanks, |
@chrisbenseler As suspected this looks like a straightforward compatibility issue with Python 3, but any extra info would still be helpful to confirm. Regards, |
Hi @stennie mplotqueries --version outputs:
The error in the console is this one, it does not show the log lines with the problem. If needed, I can attach the complete log file.
|
When trying to use mplotqueries and group-limit, the output is an error
The command:
mplotqueries /var/log/mongodb/mongod.log --output-file mongodb.png --group-limit 10
The output:
File "/home/azbvlab/mongodbanalyzer/venv/lib/python3.6/site-packages/mtools/util/grouping.py", line 120, in sort_by_size
group_keys = self.groups.keys()[group_limit - 1:]
TypeError: 'odict_keys' object is not subscriptable
I cannot reproduce this error in my local environment, only with the log file created by the mongodb in an Ubuntu instance I run on Azure. MongoDB is on 3,4,16, Python is 3.6
Other mtools commands work fine, the problem is when I try to limit the mplotqueries.
The text was updated successfully, but these errors were encountered: