mikedmor / OctoPrint_MultiCam

Extends the Control tab of OctoPrint, allowing the ability to switch between multiple webcam feeds.
45 stars 19 forks source link

0.4.0rc3 causing OctoPrint to failed to start #56

Closed Largoat closed 1 year ago

Largoat commented 1 year ago

I've been trying to get Multicam working on OctoPrint 1.9. I switched to RC stream for Multicam which installed 0.4.0rc3 and since them I got an error on start up. I removed the plugin and now I boot up fine.

Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 8, in <module>
    sys.exit(main())
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 1008, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 330, in serve_command
    disable_color=no_color,
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/cli/server.py", line 163, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/__init__.py", line 632, in run
    init_webcam_compat_overlay(self._settings, pluginManager)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 578, in init_webcam_compat_overlay
    set_overlay()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/__init__.py", line 553, in set_overlay
    settings=settings, plugin_manager=plugin_manager
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/webcams.py", line 67, in get_default_webcam
    return __get_webcam_by_setting("defaultWebcam", fallbackFilter)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/webcams.py", line 78, in __get_webcam_by_setting
    webcams = get_webcams(plugin_manager=plugin_manager)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/webcams.py", line 57, in get_webcams
    manager=plugin_manager,
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/__init__.py", line 267, in call_plugin
    plugins = manager.get_implementations(*types, sorting_context=sorting_context)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 2176, in get_implementations
    return [impl[1] for impl in sorted(result, key=sort_func)]
TypeError: '<' not supported between instances of 'str' and 'int'
mikedmor commented 1 year ago

This is due to a known bug in Octoprint 1.9.0, and unfortunately will not be fixed until the Octoprint 1.9.1 update. There is a bug reported on the Octoprint Repository with an updated Core.py file that fixes the issues, but you will need to manually update the Octoprint Core File to fix it, or just wait for the patch: https://github.com/OctoPrint/OctoPrint/issues/4818