-
Notifications
You must be signed in to change notification settings - Fork 16
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
mrcal-show-residuals and friends hang/don't show plots #13
Comments
Yes. Several people have reported this issue, which boils down to "gnuplotlib uses select(), which doesn't work on Windows". Nobody has offered to fix it, however so it remains unfixed. If you care to look at it, I can't imagine it would be all that much work to fix. There's an attempt here: dkogan/gnuplotlib#15 although I have no idea how "done" it is, or how sound the approach is. |
Hi! I'll give that PR a shot, but just wanted to confirm you would expect this to happen on Ubuntu? This is on my laptop running Ubuntu 22.04 (native, not in a VM or WSL or anything) |
Oh. Yeah, I was definitely thinking about Windows, as you surmised. It should all work on machines with the Linux kernel. We can see what's doing on. First, try a vanilla gnuplotlib program: import numpy as np
import gnuplotlib as gp
x = np.arange(101) - 50
gp.plot(x**2, wait=True) Presumably this will fail in the same way. Then let's ask to see why it failed: import numpy as np
import gnuplotlib as gp
x = np.arange(101) - 50
gp.plot(x**2, wait=True, log=True) This will make a communications log, and you'll be able to see why it failed. Post the log here, if the cause of the failure isn't clear. |
Yep can confirm the first snippet fails in the same way:
And output of the second snippet is attached as a file below. Nothing jumps out to me though? |
Thanks. I'm a bit mystified how your gnuplot test worked at all. If I combine all the single characters from your log (latest gnuplotlib release does this already) the punchline is:
So you have some snap that provides its own incompatible If you want to debug a bit more deeply, you can probably reproduce this failure by trying your simple gnuplot test inside Python. What if you run import os
os.system("gnuplot -p -e 'p sin(x)'") |
If I run that, I get this output:
And yeah I know ubuntu snaps bad. This is getting close to the last straw for Ubuntu for me; getting close to jumping ship to Debian. |
Oh I'm stupid! I"d uninstalled mrcal, which took gnuplot with it. With that fixed, I see a graph + this output:
|
Great. If this issue comes back, we can debug more deeply to pinpoint the problem more precisely. If you want to. In the meantime, I'm going to close this. Feel free to reopen. |
OS: Ubuntu 22.04
Compositor: X11
mrcal version: 2.3-1jammy1
Script output:
I've installed nothing beyond
mrcal
itself afaik. Naively running thegnuplot
command does work though (see below).I've attached a zip of my calibration data below as well. It's not great calibration data I just wanted to try some python stuff out, so the intrinsics don't really make sense.
photon_calibration_Microsoft_LifeCam_HD-3000_800x600.zip
The text was updated successfully, but these errors were encountered: