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

'int' object has no attribute 'iteritems' #64

Closed
jooneyp opened this issue Mar 22, 2019 · 3 comments
Closed

'int' object has no attribute 'iteritems' #64

jooneyp opened this issue Mar 22, 2019 · 3 comments

Comments

@jooneyp
Copy link

jooneyp commented Mar 22, 2019

I downloaded database and configured right, LiteRadar works like a charm but LibRadar is not working for me.

Python version : 2.7.5

Here is my Traceback :

Traceback (most recent call last):
  File "LibRadar/libradar.py", line 232, in <module>
    res = lrd.compare()
  File "LibRadar/libradar.py", line 220, in compare
    self.tree.get_repackage_main(res, self.hex_sha256)
  File "/opt/LibRadar/LibRadar/dex_tree.py", line 411, in get_repackage_main
    self.db_rep.zadd("apk_weight", ret_length, hex_sha256 )
  File "/usr/lib/python2.7/site-packages/redis/client.py", line 2320, in zadd
    for pair in iteritems(mapping):
  File "/usr/lib/python2.7/site-packages/redis/_compat.py", line 81, in iteritems
    return x.iteritems()
AttributeError: 'int' object has no attribute 'iteritems'
@avahidi
Copy link

avahidi commented Apr 29, 2019

This problem seems to go away if you use the correct version of the redis python client:

pip install redis==2.10.5

(I am using redis server 5.0.x, not sure what happens if you use the one suggested by the author)

@jooneyp
Copy link
Author

jooneyp commented Apr 30, 2019

@avahidi Thanks, that solved the problem!

@ThrawnCA
Copy link

ThrawnCA commented Sep 4, 2020

Just to note, we ran into this because we installed the harvest extension, which defines redis>=3.3.0 in its requirements. Fixed in the latest Harvest version 1.3.1, but that's only 3 days old and I haven't tested how well it works with CKAN 2.8.

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

3 participants