Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix first example in README #41

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

Closed
trey0 opened this issue Sep 23, 2012 · 1 comment
Closed

Fix first example in README #41

trey0 opened this issue Sep 23, 2012 · 1 comment

Comments

@trey0
Copy link

trey0 commented Sep 23, 2012

In my environment this command from the first example in the README fails:

zerorpc --client --connect tcp://*:1234 strftime %Y/%m/%d

It works fine if the "*" is replaced with "localhost".

Environment:
Mac OS X 10.6.8
Python 2.7.3 (MacPorts)
zerorpc 0.3.0
pyzmq_static 2.2

Traceback:

connecting to "tcp://*:1234"
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/zerorpc", line 274, in
exit(main())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/zerorpc", line 265, in main
return run_client(args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/zerorpc", line 207, in run_client
setup_links(args, client)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/zerorpc", line 94, in setup_links
socket.connect(endpoint)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zerorpc/socket.py", line 40, in connect
return self._events.connect(endpoint, resolve)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zerorpc/events.py", line 212, in connect
r.append(self.socket.connect(endpoint))
File "socket.pyx", line 475, in zmq.core.socket.Socket.connect (zmq/core/socket.c:4508)
zmq.core.error.ZMQError: Invalid argument

@bombela
Copy link
Member

bombela commented Sep 23, 2012

Thanks for the report. Some operating system allow '0', others '*' as an alias to 'any interface of the localhost'. Let's safely set that to localhost.

@bombela bombela closed this as completed Sep 23, 2012
jgeewax added a commit to jgeewax/zerorpc-python that referenced this issue Nov 11, 2013
Issue 0rpc#41 was about an `zmq.core.error.ZMQError: Invalid argument` error when trying to connect to `tcp://*:4242`, however I ran into the same bug in Ubuntu 13.04 connecting to `tcp://:4242`.
jpetazzo pushed a commit that referenced this issue Nov 15, 2013
Additional fixes for Issue #41
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

2 participants