MultiCam not working with 1.11.x anymore (str vs. object)

With the recent update in OctoPrint to correctly process the webcam identifier as string instead of webcam object, breaks MultiCam's snapshot function.
I filed a report in mikedmor's repo 'str' object has no attribute 'config' with latest OctoPrint 1.11.x · Issue #77 · mikedmor/OctoPrint_MultiCam · GitHub but I also found the author is for good reasons (life, the best reason :smile:) not much active anymore/at the moment.

I am not into python, but I think the issue is in line 129 OctoPrint_MultiCam/octoprint_multicam/__init__.py at 64d212000cf60db2b738a84fba60bd8d4367572b · mikedmor/OctoPrint_MultiCam · GitHub where the webcam object is created.

Any idea how to fix that?

1 Like

I had the same issue with go2rtc plugin, need to make sure that displayName=name is forced as string. Quick fix would be to wrap name in str function.

displayName=str(name)

1 Like

Actually, that is a different error. Looking back a pr was merged from me for this issue, but some reason may not have completely fixed it. Comparing to go2rtc plugin it may be this line.

1 Like

@NODeeJay did you have multicam plugin installed prior to Feb 4th 2025? If so, the changes were merged then that fixes the string issue, but the maintainer never published a release with the changes in version 0.4.3, and 0.4.2 is the only one showing. You can force the install by copying/pasting this URL in plugin manager > get more > ...from URL to force the upgrade.

https://github.com/mikedmor/OctoPrint_MultiCam/archive/refs/heads/master.zip