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

Example from README fails with: type 'exceptions.TypeError'>:__init__() takes exactly 2 arguments (1 given) #3

Open
asashnov opened this issue Mar 6, 2018 · 0 comments

Comments

@asashnov
Copy link

asashnov commented Mar 6, 2018

Example from README fails on Ubuntu 16.04 x64 with:

$ python examples/simple.py 33333 echo
echo server running on port 33333
error: uncaptured python exception, closing channel <rediserver.net.RedisProtocolHandler connected 127.0.0.1:38936 at 0x7f29dd442bd8>
(<type 'exceptions.TypeError'>:__init__() takes exactly 2 arguments (1 given)
[/usr/lib/python2.7/asyncore.py|read|83]
[/usr/lib/python2.7/asyncore.py|handle_read_event|449]
[/usr/lib/python2.7/asynchat.py|handle_read|147]
[examples/../rediserver/net.py|_parse_line|78]
[examples/../rediserver/net.py|_process_data|83]
[examples/../rediserver/protocol.py|__init__|13])

I did everything exactly as README says with one exception: I didn't run server in the background:

sudo apt-get install python-setuptools python-redis redis-tools

git clone https://github.com/ninowalker/py-redis-server.git

cd py-redis-server
python setup.py build

python examples/simple.py 33333 echo

In another console:
redis-cli -p 33333 hello world
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

1 participant