gamenet / redis-memory-analyzer

Redis memory profiler to find the RAM bottlenecks throw scaning key space in real time and aggregate RAM usage statistic by patterns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error excuting rma

FarzanRNobakht opened this issue · comments

after installing with
pip install rma
executing rma --help ends with
I am not familiar with python but it seems I have a missing dependency but I cannot figure out what it is ?!

Traceback (most recent call last):
  File "/usr/bin/rma", line 9, in <module>
    load_entry_point('rma==0.1.16', 'console_scripts', 'rma')()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-x86_64/egg/rma/__init__.py", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/rma-0.1.16-py2.7.egg/rma/application.py", line 145
    self.reporter.print(str_res)

Same issue. Some rma version. For some reason, self.reporter.print(str_res) in application.py is wrong syntax.

Never mind, I was running it with the wrong version of Python

What do you mean by "wrong version of python". I am also seeing this error using python 2.7.10 that comes with macOS Sierra.
What did you do to fix it?

I didn't see it at first at the time, but it is stated very clearly in the repo's Readme.md:

Pre-Requisites :
python >= 3.4 and pip.

Ha, you're right. I had read the readme, and re-read it when you mentioned "wrong version", and still hadn't noticed.

commented

I've got 3.5.x preinstalled in ubuntu, but rma still ends up under 2.7 when installing with pip. any way to fix this?

I got to use it easily through the repository's docker image :
https://hub.docker.com/r/tasubo/redis-memory-analyzer/

and I also could reproduce the proper environment on my system based on the Dockerfile