failed to load 'plugin.py', Python Path...

Python and python framework

Moderator: leecollings

Post Reply
coen17st

failed to load 'plugin.py', Python Path...

Post by coen17st »

Hi,

After days I finally succeeded to have Domoticz running on Ubuntu 18.04 Desktop 64bit on Hyper-V in windows server 2016. Next step is to install Phyton plugins. I have installed the Chromecast / google home plugin but I get the following error in the log.

Code: Select all

2019-04-27 18:51:50.463 Error: (GoogleDevs) failed to load 'plugin.py', Python Path used was '/home/coen/domoticz/plugins/Domoticz-Google-Plugin/:/usr/lib/python36.zip:/usr/lib/python3.6:/usr/lib/python3.6:/usr/lib/python3.6/lib-dynload'.
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Module Import failed, exception: 'ModuleNotFoundError'
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Module Import failed: ' Name: pychromecast'
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Error Line details not available.
2019-04-27 18:53:00.794 Error: Google Chromecast and Home hardware (3) thread seems to have ended unexpectedly
when i navigate to "/home/coen/domoticz/plugins/Domoticz-Google-Plugin" i can see (the files and folders and) plugin.py is there.
when i navigate to "/usr/lib/" there is no python3.6 folder.

In the log you can see that Domoticz Started, Python version '3.6.7'

Does anybody knows how to fix this or know what the problem is?


The full log here:

Code: Select all

2019-04-27 18:51:46.214 Status: Domoticz V4.9701 (c)2012-2018 GizMoCuz
2019-04-27 18:51:46.216 Status: Build Hash: b47a877f, Date: 2018-06-23 16:27:56
2019-04-27 18:51:46.217 Status: Startup Path: /home/coen/domoticz/
2019-04-27 18:51:47.350 Active notification Subsystems: gcm, http (2/13)
2019-04-27 18:51:47.408 Starting shared server on: :::6144
2019-04-27 18:51:47.239 Status: PluginSystem: Started, Python version '3.6.7'.
2019-04-27 18:51:47.382 Status: WebServer(HTTP) started on address: :: with port 8082
2019-04-27 18:51:47.396 Status: WebServer(SSL) started on address: :: with port 445
2019-04-27 18:51:47.407 Status: Proxymanager started.
2019-04-27 18:51:47.411 Status: RxQueue: queue worker started...
2019-04-27 18:51:47.411 Status: TCPServer: shared server started...
2019-04-27 18:51:49.412 Status: Hardware Monitor: Started
2019-04-27 18:51:49.504 Status: (Google Chromecast and Home) Started.
2019-04-27 18:51:49.505 Status: EventSystem: reset all events...
2019-04-27 18:51:49.594 Status: EventSystem: reset all device statuses...
2019-04-27 18:51:49.748 Status: Python EventSystem: Initalizing event module.
2019-04-27 18:51:49.748 Status: EventSystem: Queue thread started...
2019-04-27 18:51:49.749 Status: EventSystem: Started
2019-04-27 18:51:49.924 Status: PluginSystem: Entering work loop.
2019-04-27 18:51:50.463 Error: (GoogleDevs) failed to load 'plugin.py', Python Path used was '/home/coen/domoticz/plugins/Domoticz-Google-Plugin/:/usr/lib/python36.zip:/usr/lib/python3.6:/usr/lib/python3.6:/usr/lib/python3.6/lib-dynload'.
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Module Import failed, exception: 'ModuleNotFoundError'
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Module Import failed: ' Name: pychromecast'
2019-04-27 18:51:50.463 Error: (Google Chromecast and Home) Error Line details not available.
2019-04-27 18:53:00.794 Error: Google Chromecast and Home hardware (3) thread seems to have ended unexpectedly
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: failed to load 'plugin.py', Python Path...

Post by Dnpwwo »

Did you follow the install instructions on the plugin’s github read me?

Looks like pychromecast hasn’t been installed or not installed using sudo
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
robhiddinga
Posts: 5
Joined: Monday 20 August 2018 22:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Nederland
Contact:

Re: failed to load 'plugin.py', Python Path...

Post by robhiddinga »

Have you been able to solve this?
I have same issue, domoticz crashes when the plugin is installed
Followed the instructions of the plugin and installed all with sudo

follow up:
Upgraded Raspbian and now the errors are gone
Domoticz, Controlicz, z-wave, rfxcom, zigbee, p1, tuya, evohome
watermeter, dzvents
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest