Giter Club home page Giter Club logo

rediscluster-py's Issues

pip install raises error

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.

MULTI/Pipeline Not Supported

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.

KEYS Error

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

New version

Hi, the last release was 3 years ago. Please push a new version onto pypi.

got error using pycharm with python3.7 venv

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/

How do i use lua with 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!

ImportError: Cannot import name b

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

cannot install using pip in python3.6

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.

Pypi naming conflict

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.

The issue

Both modules install to site-packages/rediscluster which while not likely, is still a conflict.

Grokzen/redis-py-cluster/issues/150

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.