Closed hicqu closed 8 years ago
Any one could help me? Thanks!!!!
I have a suspicion as to the problem. Can you do:
pip freeze | grep url
Specifically, we only recently pinned the version of url
to <0.2.0
in setup.py
, and using url==0.2.0
manifests as you've described. If you find that you have url==0.2.0
:
pip install --upgrade url==0.1.7
Yes, I use url 0.2.0! And Now I downgrade it to version 0.1.7 and use lookupd_http_addresses=[http://192.168.56.200:4161] as an arguement of Reader. It works! Thank you a lot! BTW, now both my develop environment and production environment use url 0.2.0, so I think supporting that is a good idea. What about you think?
Yeah, that's fine by me. It's actually probably a pretty minimal change. The main API difference is that utf8
is now a @property
rather than a method, so the changes would have to happen here:
I'd welcome a PR if you're motivated :-)
pip install --upgrade url==0.1.7
This fixed it for me, although it'd be nice with a PR for the issue.
I've created a PR to fix this issue: https://github.com/dlecocq/nsq-py/pull/46
Hi, I tested a very simple reader with code below,
but it shows error,
ClientException: 'str' object is not callable
Could you help me? PS, I have already start my nsqlookupd server. On the other hand, I have also tryed to use nsqd_tcp_addresses instead of lookupd_http_addresses, and it' ok. So why can't I use only lookupd_http_addresses? Thanks a lot!