salimane / rediscluster-py Goto Github PK
View Code? Open in Web Editor NEWa Python interface to a Cluster of Redis key-value store
License: MIT License
a Python interface to a Cluster of Redis key-value store
License: MIT License
python version : 3.7
ERROR: Command errored out with exit status 1:
command: /home/zhaodachuan/anaconda3/envs/hx_ranking_engine/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h284g8yq/rediscluster/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h284g8yq/rediscluster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-oc5tmmnm
cwd: /tmp/pip-install-h284g8yq/rediscluster/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-h284g8yq/rediscluster/setup.py", line 2, in <module>
from rediscluster import __version__
File "/tmp/pip-install-h284g8yq/rediscluster/rediscluster/__init__.py", line 12, in <module>
from rediscluster.cluster_client import StrictRedisCluster
File "/tmp/pip-install-h284g8yq/rediscluster/rediscluster/cluster_client.py", line 5, in <module>
from redis._compat import (
ImportError: cannot import name 'b'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
When I try to do Pipeline operations, cluster_client throws an error, see Traceback below:
Traceback (most recent call last):
File "...", line 370, in <module>
c.multi()
File "/usr/local/lib/python2.7/dist-packages/rediscluster/cluster_client.py", line 168, in function
if isinstance(args[0], (basestring, bytes)):
IndexError: tuple index out of range
Where c
is an instance of rediscluster.StrictRedisCluster
.
When I try to run keys() method, I get the following error:
Traceback (most recent call last):
File "...", line 371, in <module>
print c.keys()
File "/usr/local/lib/python2.7/dist-packages/rediscluster/cluster_client.py", line 234, in function
result.append(res)
AttributeError: 'dict' object has no attribute 'append'
Where c
is an instance of rediscluster.StrictRedisCluster
Hi, the last release was 3 years ago. Please push a new version onto pypi.
Collecting rediscluster
Using cached https://files.pythonhosted.org/packages/0a/2c/0f2ab19a4f20ea7bd2dbb4032fc332894feabdb0346353fbd9cbdb0c152d/rediscluster-0.5.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/mh/j51d3djx15zb1n2xdpgt7y7m0000gn/T/pycharm-packaging/rediscluster/setup.py", line 2, in
from rediscluster import version
File "/private/var/folders/mh/j51d3djx15zb1n2xdpgt7y7m0000gn/T/pycharm-packaging/rediscluster/rediscluster/init.py", line 12, in
from rediscluster.cluster_client import StrictRedisCluster
File "/private/var/folders/mh/j51d3djx15zb1n2xdpgt7y7m0000gn/T/pycharm-packaging/rediscluster/rediscluster/cluster_client.py", line 5, in
from redis._compat import (
ImportError: cannot import name 'b' from 'redis._compat' (/Users/apple/PycharmProjects/op_tool/venv/lib/python3.7/site-packages/redis/_compat.py)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/mh/j51d3djx15zb1n2xdpgt7y7m0000gn/T/pycharm-packaging/rediscluster/
Hi,I want to know how do i use lua script with rediscluster. I find eval api,but i don't understand how to use it, could you please give some example? Thank you!
Redis server 3.0 supports clustering.
This code does not comply with the redis cluster spec - http://redis.io/topics/cluster-spec
In particular, it does not handle MOVED and ASK - https://github.com/salimane/rediscluster-py/search?utf8=%E2%9C%93&q=moved&type=Code
cc @antirez
from redis._compat import b, unicode, bytes, long, basestring
redis-py as of version 3.0.0 no longer exposes b(). I've submitted MR #12 for this
temporary workaround is to pin redis==2.10.6
install will not complete because cluster_client.py can't import dictkeys/dictvalues from redis because they are now dictionary iterator objects - called 'iterkeys' and 'itervalues' now - in the current version of redis. I had to install an old commit from redis to get the rediscluster install to complete.
https://github.com/andymccurdy/redis-py/blob/master/redis/_compat.py#L16-L17
I cannot install it success in python3.6.5. Is it not support python3.6 ?
(smartsys_env) ➜ smartsys git:(dev) ✗ pip install rediscluster -i https://pypi.python.org/simple
Looking in indexes: https://pypi.python.org/simple
Collecting rediscluster
Downloading rediscluster-0.5.3.tar.gz (9.9 kB)
ERROR: Command errored out with exit status 1:
command: /home/marco/.pyenv/versions/3.6.5/envs/smartsys_env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fdfrpoe5/rediscluster/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fdfrpoe5/rediscluster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-z72djrhh
cwd: /tmp/pip-install-fdfrpoe5/rediscluster/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-fdfrpoe5/rediscluster/setup.py", line 2, in <module>
from rediscluster import __version__
File "/tmp/pip-install-fdfrpoe5/rediscluster/rediscluster/__init__.py", line 12, in <module>
from rediscluster.cluster_client import StrictRedisCluster
File "/tmp/pip-install-fdfrpoe5/rediscluster/rediscluster/cluster_client.py", line 5, in <module>
from redis._compat import (
ImportError: cannot import name 'dictkeys'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(smartsys_env) ➜ smartsys git:(dev) ✗ pip install rediscluster
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting rediscluster
Using cached https://mirrors.aliyun.com/pypi/packages/0a/2c/0f2ab19a4f20ea7bd2dbb4032fc332894feabdb0346353fbd9cbdb0c152d/rediscluster-0.5.3.tar.gz (9.9 kB)
ERROR: Command errored out with exit status 1:
command: /home/marco/.pyenv/versions/3.6.5/envs/smartsys_env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-iyqnhgz7/rediscluster/setup.py'"'"'; __file__='"'"'/tmp/pip-install-iyqnhgz7/rediscluster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-etk4c5bu
cwd: /tmp/pip-install-iyqnhgz7/rediscluster/
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-iyqnhgz7/rediscluster/setup.py", line 2, in <module>
from rediscluster import __version__
File "/tmp/pip-install-iyqnhgz7/rediscluster/rediscluster/__init__.py", line 12, in <module>
from rediscluster.cluster_client import StrictRedisCluster
File "/tmp/pip-install-iyqnhgz7/rediscluster/rediscluster/cluster_client.py", line 5, in <module>
from redis._compat import (
ImportError: cannot import name 'dictkeys'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Looks like two different projects have identical names in the python module name space.
I'm crossing linking the issues so that the two developers could come to an agreement on module naming. Not that it would happen often, but the two modules can't co-exist in the same python environment.
Both modules install to site-packages/rediscluster
which while not likely, is still a conflict.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.