-
Notifications
You must be signed in to change notification settings - Fork 89
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
AttributeError: 'int' object has no attribute 'decode' #10
Comments
@newhwa 拉的那个版本,用的python那个版本? |
Python 3.6.6+
最近用
|
SSDBAdmin/SSDBAdmin/model/SSDBClient.py Line 51 in e7c0257
看日志像是info出来的有int型; 我这边测试info出来的都是byte,如果可以的话告诉我一声。我改下 |
您好,目前解析出现几个问题: |
你拉的哪个分支代码? 用的什么python版本 |
抱歉,现在才回复。我摘取的是主分支,python版本 3.6 |
按照上述改完之后,出现另外一个问题, |
@testerSunshine 兄弟 这是ssdb工具 你不会连的是redis吧 |
我连接的是redis,请问这个工具可以兼容redis嘛 这个问题这样调整就不会报错了 |
我是在 jhao104/proxy_pool 这个项目里看到作者推荐的有您的项目,于是使用的,以为可以兼容redis,如果不能兼容,我还是装个SSDB再看看 |
redis的可视化工具有很多的,网上一大堆。这是只是为ssdb写的一个工具 |
感谢回复,我已经开始使用SSDB了。有些小问题如果您有空的话,希望解答一下。 SSDB的hash中 能否高效的根据 value找key |
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 2295, in wsgi_app
try:
ctx.push()
response = self.full_dispatch_request()
except Exception as e:
error = e
response = self.handle_exception(e)
except:
error = sys.exc_info()[1]
raise
return response(environ, start_response)
finally:
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\ProgramData\Anaconda3\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\ProgramData\Anaconda3\lib\site-packages\flask_compat.py", line 35, in reraise
raise value
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users<user>\Python\jhao104\SSDBAdmin\SSDBAdmin\apps\index.py", line 34, in index
server_info = SSDBClient(request).serverInfo()
File "C:\Users<user>\Python\jhao104\SSDBAdmin\SSDBAdmin\model\SSDBClient.py", line 51, in serverInfo
info_list = [.decode() for _ in self.__conn.execute_command('info')]
File "C:\Users<user>\Python\jhao104\SSDBAdmin\SSDBAdmin\model\SSDBClient.py", line 51, in
info_list = [.decode() for _ in self.__conn.execute_command('info')]
AttributeError: 'int' object has no attribute 'decode'
The text was updated successfully, but these errors were encountered: