-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
[Bug]: zmq.error.ZMQError: Can't assign requested address error trying NetGear+WebGear example #291
Comments
Thanks for opening this issue, a maintainer will get back to you shortly! In the meantime:
|
@iandol what's the local IP addresses on both mac and Rpi? Follow following instructions and paste the results here:
|
My RPi is assigned RPi:
macbook:
On the RPi and macbook I also checked that nothing was holding onto port 5454, here is the result for the RPi:
|
@iandol This pretty obvious that you're doing it wrong. It mentioned everywhere in NetGear docs(see any example) as well in example links I provided you for reference, that you need to "Replace the IP addresses in the code with Client's IP address, i.e. |
Yikes, you are completely correct of course. I'm very sorry. My brain made a strong assumption in a client + server system it was the server address that must be used... As a slight emphasis for others who may make such an misguided assumption, perhaps the first comment on the example page could be slightly modified:
There were 3 problems I encountered with the client code. There is a missing import for Netgear, a wrong |
@iandol I think all the instructions are already self-explanatory, no need to emphasis on (client) keyword in this particular example(except |
Brief Description
I have a Raspberry Pi400 (using latest 64bit Bullseye release) with a UVC USB3 camera attached. On the same local network I have a Macbook Pro that I want to use to connect to the RPi and display the camera output. Speaking to @abhiTronix on chat, he recommended the following code: https://abhitronix.github.io/vidgear/latest/help/netgear_ex/#using-netgear-with-webgear
However, the client code crashes when trying to set up ZMQ connection:
I've tested the ZMQ hello world test code and it works fine on the same machines. I also tested
uvicorn
to run a simple server and it works. I have reinstalled zmq (brew reinstall zmq
) on the client machine, and usingvenv
have reinstalled all pip packages from scratch. Python is V3.10.2 on the client and V3.9.2 on the server.The code (slightly modified to fix a couple of errors I got from Python (no self, cannot return a value in async) and error logs are found at this gist:
https://gist.github.com/iandol/ebf722f75251bb9f5bc57ba967fd12ba
Acknowledgment
Environment
Expected Behavior
See the video from RPi in the Macbook browser.
Actual Behavior
client.py crashes
Steps to reproduce
(Write your steps here:)
The text was updated successfully, but these errors were encountered: