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

dish.join problem #1780

Closed
ShacharZi opened this issue Sep 22, 2022 · 5 comments
Closed

dish.join problem #1780

ShacharZi opened this issue Sep 22, 2022 · 5 comments
Labels

Comments

@ShacharZi
Copy link

Hi,
I installed the last version of pyzmq 24.0.1
and its seems that it contain the draft options, therefore radio and dish are included.
I try to run your radio-dish example:
image

but the following message showed:

Traceback (most recent call last):
File "C:/Users/ShacharZ/Desktop/pythonProject2/main.py", line 12, in
dish.join('1')
File "zmq\backend\cython\socket.pyx", line 722, in zmq.backend.cython.socket.Socket.join
File "zmq\backend\cython\checkrc.pxd", line 22, in zmq.backend.cython.checkrc._check_rc
zmq.error.Again: Resource temporarily unavailable

I will be happy for any help.

@minrk minrk added the question label Sep 22, 2022
@minrk
Copy link
Member

minrk commented Sep 22, 2022

I don't know much about draft sockets. Questions about libzmq behavior are better posted to libzmq, since they aren't specific to pyzmq.

@weston-nrl
Copy link

Were you able to come up with a way to work around this issue, or did you otherwise figure out what was wrong? I'm running into the same problem on dish.join(group). When I separate out the RADIO bits, I also get the cython/checkrc.pxd error "zmq.error.ZMQError: Success" on radio.send(message, group) when the Frame tries to set the group.

I am wondering if it is possible for my pyzmq to be partially installed incorrectly in some way? I followed DRAFT API install instructions and everything seems correct from what I can see (e.g., zmq.zmq_version(), zmq.DRAFT_API).

@minrk
Copy link
Member

minrk commented May 25, 2023

@weston-nrl ZMQError: Success does sound like it would be a pyzmq bug misinterpreting return codes, but I'd need more information to identify why it's happening. Ideally a reproduction case I can run.

Here's a complete working example of installing pyzmq with drafts in docker, showing that everything's working as intended.

@weston-nrl
Copy link

weston-nrl commented May 25, 2023

@minrk thanks for the sanity check -- that docker builds and runs just fine for me also. Comparing the 'pip -v' install logs between that and my Ubuntu 22.04 system's pip install shows that my system is failing to add -DZMQ_BUILD_DRAFT_API=1 to the gcc commands for building everything inside 'zmq.backend.cython'. I'm guessing that's ultimately causing the cython-related errors on DRAFT API calls, but I don't understand what is causing that option to be missing, since I'm using the same build commands. I'm using system-included pip 22.0.2 vs 23.0.1 in the docker image, but it's not clear to me if that could cause such an issue? If you have any other ideas as to what could cause that, I would appreciate the insight.

@weston-nrl
Copy link

sudo was my system's problem -- I was running pip as sudo, and it was removing the ZMQ_DRAFT_API environment variable before running pip, so I'm not sure why zmq.DRAFT_API was reporting True at all, or why RADIO/DISH partially worked. In any case, ZMQError: Success is gone after fixing that, and the OP's error that I was getting before is gone as well.

@minrk minrk closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants