FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
639 stars 99 forks source link

Error in runing test for Octolapse for Cannon EOS R camera in the test of script. #785

Closed forndog closed 3 years ago

forndog commented 3 years ago

Versions OctoPrint 1.7.2, Python 2.7.16, OctoPi 0.17.0

When you ran into the problem, did you have diagnostic logging enabled? 2021-11-14 17:03:18,619 - octolapse.settings - ERROR - An unexpected exception occurred while updating webcam settings. Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 1460, in update if "controls" in value: TypeError: argument of type 'MjpgStreamer' is not iterable 2021-11-14 17:03:18,620 - octolapse.settings - ERROR - Settings._update - Failed to update settings. Key:webcam_settings, Value:<octoprint_octolapse.settings.WebcamSettings object at 0x6bfe38d0> Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 130, in _update class_item.update(value) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 1484, in update raise e TypeError: argument of type 'MjpgStreamer' is not iterable 2021-11-14 17:03:18,633 - octolapse.settings - ERROR - An unexpected exception occurred while updating webcam settings. Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 1460, in update if "controls" in value: TypeError: argument of type 'MjpgStreamer' is not iterable 2021-11-14 17:03:18,633 - octolapse.settings - ERROR - Settings._update - Failed to update settings. Key:webcam_settings, Value:<octoprint_octolapse.settings.WebcamSettings object at 0x75fba6f0> Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 130, in _update class_item.update(value) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octolapse/settings.py", line 1484, in update raise e TypeError: argument of type 'MjpgStreamer' is not iterable 2021-11-14 17:03:18,635 - octolapse.settings - INFO - Saving settings to: /home/pi/.octoprint/data/octolapse/settings.json. 2021-11-14 17:03:18,777 - octolapse.settings - INFO - Settings saved. 2021-11-14 17:03:30,441 - octolapse.script - DEBUG - Executing Canon EOS R - Snapshot Camera Script: "/home/pi/scripts/take-snapshot.sh" "0" "125" "/tmp/tmppDF2KY" "/tmp/tmppDF2KY/d8163e97-861b-4e85-960f-08c5016de7a0/31335ffd-d5c6-4832-9919-b6b4a380200e" "test_snapshot000000.jpg" "/tmp/tmppDF2KY/d8163e97-861b-4e85-960f-08c5016de7a0/31335ffd-d5c6-4832-9919-b6b4a380200e/test_snapshot000000.jpg" "Canon EOS R" 2021-11-14 17:03:36,585 - octolapse.script - DEBUG - Console output (stdout) for 'Canon EOS R - Snapshot Camera Script':Creating directory: /tmp/tmppDF2KY/d8163e97-861b-4e85-960f-08c5016de7a0/31335ffd-d5c6-4832-9919-b6b4a380200e Model Port

USB PTP Class Camera           usb:001,008     
New file is in location /capt0000.jpg on the camera
Saving file as /tmp/tmppDF2KY/d8163e97-861b-4e85-960f-08c5016de7a0/31335ffd-d5c6-4832-9919-b6b4a380200e/test_snapshot000000.jpg
Deleting file /capt0000.jpg on the camera
New file is in location /capt0000.jpg on the camera
File /tmp/tmppDF2KY/d8163e97-861b-4e85-960f-08c5016de7a0/31335ffd-d5c6-4832-9919-b6b4a380200e/test_snapshot000000.jpg exists. Overwrite? [y|n] 

2021-11-14 17:03:36,586 - octolapse.script - ERROR - Error output (stderr) for 'Canon EOS R - Snapshot Camera Script': ERROR: Could not get image.

Diagnostic Logging was Enabled: YES

What were you doing when the problem occurred Running test script to set up camera on octoprint image image image image image

What should have happened? Test should've succeeded but error occurred

What happened instead? Outlined Above

Operating System running OctoPrint and Octolapse Printer model & used firmware incl. version Printer Model:MK3S

forndog commented 3 years ago

So I was actually able to solve this issue myself through another thread. Make sure your camera is set to only take JPEGs and not JPEG + RAW