VRGhost / OctoPrint-PSUControl-Meross

Adds Meross Smart Plug support to OctoPrint-PSUControl
GNU Affero General Public License v3.0
4 stars 6 forks source link

Plugin fails to load after reboot #8

Closed dnasini closed 1 year ago

dnasini commented 2 years ago

After installation, Octoprint pops up a message saying "Install Unknown" and the green flag that says "everything is correct" and asks for reboot. After reboot, the PSU Control - Meross plugin is not listed into the installed plugins. Having a look to the logs, Octoprint reports those errors

2022-04-27 17:49:01,676 - octoprint.startup - INFO - ** 2022-04-27 17:49:01,678 - octoprint.startup - INFO - Starting OctoPrint 1.7.3 2022-04-27 17:49:01,678 - octoprint.startup - INFO - ** 2022-04-27 17:49:01,963 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity changed from offline to online 2022-04-27 17:49:02,000 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online 2022-04-27 17:49:02,000 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working 2022-04-27 17:49:02,000 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working 2022-04-27 17:49:02,006 - octoprint.startup - INFO - Blacklist processing done, adding 3 blacklisted plugin versions: roomtemp (any), GcodeEditor (>=0.1.1,<=0.2.8), gcodeleveling (>=0.1.0,<=0.1.1) 2022-04-27 17:49:02,043 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python3.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages... _2022-04-27 17:49:03,172 - octoprint.plugin.core - ERROR - Error loading plugin psucontrolmeross Traceback (most recent call last): File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 1291, in _import_plugin module = _load_module(module_name, spec) File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 68, in _load_module return imp.load_module(name, f, filename, details) File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 238, in load_module return load_package(name, filename) File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 212, in load_package return _load(spec) File "", line 696, in _load File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_psucontrol_meross/init.py", line 11, in from .plugin import PSUControlMeross File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_psucontrol_meross/plugin.py", line 6, in from . import meross_client File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_psucontrol_meross/meross_client.py", line 17, in from meross_iot.model.exception import ( _ImportError: cannot import name 'MqttError' from 'meross_iot.model.exception' (/home/pi/oprint/lib/python3.7/site-packages/merossiot/model/exception.py) .......

VRGhost commented 1 year ago

Hello, It appears that something went wrong with the package installation. This probably has nothing to do with me.

Are you still able to replicate the issue? (Considering that the ticket had been opened a while ago)

dnasini commented 1 year ago

Hi, well it could be. Anyway, at that time I tried more than once to reinstall the pluging with same result. After your reply, I noticed a new version is available. I just installed the last one and now sounds it works. No strange message at the end of the install phase and after reboot I see it listed in the plugins list. I'll test it later and, just in case, I'll let you know.

VRGhost commented 1 year ago

Please do tell if it doesn't work - I can give you pointers to how fix this error if you're comfortable with SSH'ing to the device.

dnasini commented 1 year ago

Hi, it tooks a while to config and test it but it sounds to work fine.

Thank you