-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
File "./redis-monitor.py", line 206, in run #103
Comments
@MyselfWarmHome Have you solved it? |
@MyselfWarmHome, @nonomal The proper fix would be changing the code, but I don't want to touch this old version of Python... |
@greatvovan “Revert the latest version of redis lib to a 2.. (e.g. 2.10.6)” I used redis3.2.6, you said that the 2.10.6 version made me doubt, my python is 2.7.15 (I just thought that there is a problem with the default 2.7.5 version), so I hope to get the answer. |
@nonomal I did not say that the 2.10.6 version made you doubt. I am saying, if you are experiencing the same problem as in the one in the first post, it is due to Redis library version (it is called |
@greatvovan I hope I can contact the redislive author to coordinate the problem. Is there any plan for this? |
I have the same problem.Here is my solution.
in the directory of
, around line 30 is the code
. Try to remove the second paramter
, and leave the code like
. Then the problem has gone. |
Traceback (most recent call last):
File "./redis-monitor.py", line 206, in run
used_memory, peak_memory)
File "/home/omsadmin/redis-monitor/nkrode-RedisLive-e1d7763/src/dataprovider/redisprovider.py", line 30, in save_memory_info
self.conn.zadd(server + ":memory", str(timeutils.convert_to_epoch(timestamp)), data)
File "/usr/local/python/lib/python2.7/site-packages/redis/client.py", line 2263, in zadd
for pair in iteritems(mapping):
File "/usr/local/python/lib/python2.7/site-packages/redis/_compat.py", line 94, in iteritems
return x.iteritems()
AttributeError: 'str' object has no attribute 'iteritems'
The text was updated successfully, but these errors were encountered: