I'm running octoprint on imac sequoia and the jpeg snapshot URL (crucial to the functioning of AI failure detection) won't work.
I'm using the mjpegsw.py to stream my camera. Testing in the browser I can stream from the camera at http://<mac local ip address>:8080/cam.mjpg and I can get a jpg snapshot at http://<mac local ip address>:8080/snap.jpg (also via curl). These are set up to work with both localhost and the local IP address.
So all should be well...
But when I set up the snapshot URL in the Classic Webcam plugin and click "Test", it fails "Could not retrieve snapshot URL, please double check the URL". The stream URL works fine.
At this point I am lost. I feel like it is so close to working.
What did you already try to solve it?
Lots of variations of the URL which all work from the browser but not from octoprint. I changed the image size to quite small in case there was an issue with size of the snapshot.
Notice tons of errors from Obico, try disabling that. There's a feature in Obico for "premium" streaming support or something like that and it has caused weirdness for others in the past.
Thanks for the suggestion of disabling the noisy plugin that was stopping from spotting the crucial error message.
The problem comes from the fact that I am using python 3.13. This version is ahead of octoprint. My bad. The issue is In Python 3.13, the cgi module has been removed from the standard library. I did a quick fix with