Closed jcardenaslie closed 4 years ago
This looks like a socket permission error. It may also be related to connect vs. bind in the PUB/SUB protocol. I will need a few days to check into it. If you set the option REQ/REP=True (and make appropriate tcp address changes), does the code work OK?
This looks like a socket permission error. It may also be related to connect vs. bind in the PUB/SUB protocol. I will need a few days to check into it. If you set the option REQ/REP=True (and make appropriate tcp address changes), does the code work OK?
The same line of code works fine whit REQ_REP=True
Thanks for your help :)
Tested this and it works OK for me. I did have an issue on my SUB image receiver; I needed to put the full tcp address in the receiver program (which isn't necessary in the REQ/REP pattern). See this line in tests/test_1_sub.py and verify you are using the full tcp address in the ImageHub() instiation:
Also, I have found that using numeric tcp addresses rather than text string tcp addresses helps while debugging a new connection. For example, (tcp://127.0.0.1:5555 rather than tcp://jeff-macbook:5555)
.
Also, make sure that you have specified REQ_REP=False
on both image receiver program AND in image sender program.
Hi Jeff. Thanks! I'll try it out and get back to you. Thanks again for taking the time to help me.
You're welcome. Let me know if you have further questions.
Running on Windows with python 3.7.0
Code:
Error: