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

Could you help me with this? #31

Open
BingoWon opened this issue Dec 28, 2018 · 1 comment
Open

Could you help me with this? #31

BingoWon opened this issue Dec 28, 2018 · 1 comment

Comments

@BingoWon
Copy link

BingoWon commented Dec 28, 2018

Every time I run run.py, the followings show up after a few seconds and the program just stops.

Process Process-2:
Traceback (most recent call last):
File "D:\Program Files (x86)\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "D:\Program Files (x86)\Python\Python36\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "D:\LEARNING\ProxyPool-master\proxypool\scheduler.py", line 28, in schedule_getter
getter.run()
File "D:\LEARNING\ProxyPool-master\proxypool\getter.py", line 30, in run
self.redis.add(proxy)
File "D:\LEARNING\ProxyPool-master\proxypool\db.py", line 30, in add
return self.db.zadd(REDIS_KEY, score, proxy)
File "D:\Program Files (x86)\Python\Python36\lib\site-packages\redis\client.py", line 2263, in zadd
for pair in iteritems(mapping):
File "D:\Program Files (x86)\Python\Python36\lib\site-packages\redis_compat.py", line 123, in iteritems
return iter(x.items())
AttributeError: 'int' object has no attribute 'items'

@aefuimn
Copy link

aefuimn commented Jan 1, 2019

Your moudle of redis version should be lower than 3.0, if you use python3 , you can use 2.10.6

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

2 participants