New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.1-beta] (Zigbee2MQTT) failed to load 'plugin.py' #702
Comments
see: #695 for the solution. |
Correct. |
Given the long gaps between stable domoticz releases, and many users' reluctance to install beta code on their production systems, I think it would be a good idea to keep a branch of the plugin available which doesn't require the DomoticzEx framework. |
@hughb8on you could continue using stable v.3.0 of the plugin, the new beta version is for individuals who want to overcome 255 devices limit which is possible only with the new |
Hi, yes, that's what I'll be doing. I see two problems though. Firstly, there will be users who have done a 'git pull' without checking the Prerequisites notes. They may not have a backup or they may not know how to 'git reset' to an earlier commit point. Arguably that's "their problem" but it would be kind if there was a stable branch available to simplify things. Secondly, and more importantly from my perspective, the next stable domoticz release may be a long way off - recently they've been a year apart but two-year gaps are not unusual. This means that any bug fixes, new devices and other improvements to the plugin will be missed by those who don't like the idea of running domoticz beta code. |
Hi, I am that person @hughb8on refers to. |
Same here. Never had a problem with the git pull till yesterday. If some could tell me how to get things working again that would be great. Thx |
Make a backup (at a minimum the whole of the plugin folder) just in case. Then stop domoticz, cd into the plugin folder and do this: - git log That should show you a list of commit points and their dates, in descending order. Page down through it until you see a commit on Aug 23 at 22:18. You should see a a commit point "3725a295e12531e5c5f68d03d3e6f0c1f646b1ca". That's where you need to go back to. To regress type this: - sudo git reset --hard 3725a29 Restart domoticz. That should be all you have to do. Bear in mind that although I'm pretty sure this will work, and I have tested it on my own system just now, I don't find myself having to do this often, so beware! |
Oh well, as i get a "fatal: your branch appears to be broken i seem to be in trouble until i can find a way to get the beta. |
@hughb8on Thx a lot! That did the trick. :-) |
:-) it's good to have confirmation that works, thank you. |
@hughb8on this indeed did the trick! I didn't update for quite a while and unfortunately missed this issue in the various Prerequisites notes... |
This version should have number 4.x.x because it is not compatible with old version 3. |
Yes, also think about that, but decided to go with 3.1 as there are no breaking changes comparing to the 3.0 version, I mean you could do the upgrade without the need to remove the previous version of the plugin as it was when you were updating 0.2.x to 3.0 Regarding the Domoticz version, plugin always expects that you are using the most recent version to the plugin release date. If it works with previous versions too that's awesome but that's not the goal as well as with zigbee2mqtt version |
Hey @hughb8on I have the same problem here with the updated zigbee2mqtt plugin. However git log does not go back any further then September 4: |
I am surprised you aren't seeing anything older than Sep 4 if you have followed the instruction to page down through the git log. |
My git log shows releases from back in 2018. |
may be stupid question but in which terminal/directory do you do the git log command |
.. as does mine. |
/home/pi/domoticz/plugins/zigbee2mqtt/ |
@anixi If "git log" works and you see a commit on Sep 4 at 19:59 then you are in the right place. What do you see lower down in the log? |
process seems still on going as I get the "terminal killing" warning when I want to close the window |
ok, and if you press the down cursor do you not see earlier commits? |
Or space to jump whole pages. |
oeps, ..... yes I do see that, felling stupid as I used the scroll bar and nothing showed up! Think you saved my day, will continue the process! |
No worries, most of the fun is in learning. |
true, response is now "HEAD is now at 3725a29 Remove |
Yes you can. |
great, it works again, only my "friendly names" are back to codes have to work on that but that is another good learning exercise. Thanks a million! |
Hi, |
That's right. You cannot update the plugin again until you have updated Domoticz to a version which the plugin supports. That means you must either switch to the Domoticz beta channel, or wait for a new Domoticz stable release. |
Installed z2m for the first time today, managed to follow this thread and get back to 23rd august. |
Works for me many thanks |
I also bumped into this, new user, wanting to try the plugin together with the domoticz stable release, its a bit inconvenient, I'm not sure if people will find this bug report that easily and 'understand' what to do / what they're doing in git. Maybe a wild idea, could you perhaps create github release tags following the domoticz releases? Or create a tag that is compatible with the domoticz stable release? I think v3.0 is a bit behind that 'breaking' commit id 3725a29? Then add some small line to the docs regarding the domoticz release compatibility and the usage of |
Noticed today that this is what's wrong in my Domoticz / Zigbee2MQTT setup. What is the easiest way to update Domoticz to the beta version? (if possible with keeping my now connected devices) Check for updates says there are no updates. Version: 2021.1 I have created a backup just to be sure. |
Issue description
Domoticz fails to load plugin
Additional information
Zigbee2MQTT version: version 1.21.1 (commit #4a51e0c0)
Python version: 2.7 and 3.7
Domoticz version: 2021.1 - newest stable release (april 2021)
Plugin version: 3.10 beta
Logs
Attach any additional logs here which might be useful: mqtt, domoticz, plugin logs
2021-09-07 21:31:42.415 Error: zigbee2: (Zigbee2MQTT) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/zigbee2mqtt/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-09-07 21:31:42.415 Error: zigbee2: (zigbee2) Module Import failed, exception: 'ModuleNotFoundError'
2021-09-07 21:31:42.415 Error: zigbee2: (zigbee2) Module Import failed: ' Name: DomoticzEx'
2021-09-07 21:31:42.415 Error: zigbee2: (zigbee2) Error Line details not available.
The text was updated successfully, but these errors were encountered: