redis-memory-analyzer icon indicating copy to clipboard operation
redis-memory-analyzer copied to clipboard

Got error excuting rma

Open FarzanRNobakht opened this issue 8 years ago • 7 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)

FarzanRNobakht avatar Feb 26 '17 15:02 FarzanRNobakht

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

tscholak avatar Mar 16 '17 21:03 tscholak

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

tscholak avatar Mar 16 '17 21:03 tscholak

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?

joshuaflanagan avatar May 10 '17 01:05 joshuaflanagan

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.

tscholak avatar May 10 '17 01:05 tscholak

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

joshuaflanagan avatar May 10 '17 02:05 joshuaflanagan

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?

Dadibom avatar Oct 11 '17 08:10 Dadibom

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

FarzanRNobakht avatar Apr 13 '18 09:04 FarzanRNobakht