-
Notifications
You must be signed in to change notification settings - Fork 633
Fix timestamp handling in udp_multicast on macOS #1278
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1278 +/- ##
===========================================
- Coverage 66.02% 65.99% -0.03%
===========================================
Files 86 86
Lines 8915 8943 +28
===========================================
+ Hits 5886 5902 +16
- Misses 3029 3041 +12 |
@Gudoghe Can you check the fix? 🤔 You should be able to install it with |
You should now also be able to run the tests, e.g. with: pip install tox
tox -e py Could you post the results for the test suite parts |
@felixdivo The command to install the fix seems to return an error 404, maybe there's some problem with the url? |
Ah, jup, there's a missing |
The patch and tox were installed successfully but the Sorry I'm quite new to this tool and environment. |
Strange ... there should be one. Are you sure that you are running it from the repository root? Alternatively, you can also try |
Alright I managed to clone the patched repo and do a clean install of python-can from there. I then ran the tests on the cloned repository and all the tests regarding Moreover I tried to run again the example from the Multicast page and the error i get back changed to the following:
|
Uhm, that's strange. Can you find out what is using that address, or use another one (suitable for multicast, like the default one)? I can't really debug it from here 🙃. But at least the exception from last time is avoided. I suppose the tests fail due to similar problems? |
I've tried looking at all processes running with the command
I'm really at a blank for a solution. If you had any suggestions on what to try next that'd be greatly appreciated. |
You're welcome. 😃 I am currently retreating from this repo but since it wrote that interface I figured that I should have a look at this. Hm ... Are you sure that multicast works elsewhere? I cold not find a simple test command, but I did find this article. It's from 2009, but looks relevant. |
I've followed the instructions and I do find a couple of addresses in the multicasting range (239.255.255.250, 224.0.0.251) and if I ping them I get a response, so I assume the multicasting is working. |
I'm a bit confused: In the exception above you use IPv6 (and it fails) and now you checked IPv4 multicast (and it works). Maybe, you can try IPv4 multicast by using something like |
Okay, so this became kinda stale. I suggest merging at lest these changes, since they at least resolve some problems. If more occur, we can still keep discussing them and add more patches. Side note: @zariiii9003 I wrote about reducing my contributions and why I do that on the mailing list 🙂 |
Black has a problem. We should just update (psf/black#2964). I added a commit for that to this PR. |
@felixdivo Do you know why the UdpMulticast tests are failing randomly? |
Nope ... the type of error also confuses me. |
Fix #1275.