PluginSystem does not start Topic is solved
Moderator: leecollings
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
PluginSystem does not start
I'm on 3.8153 (latest stable) and my PluginSystem does not start. There is no mention of it in the log file.
Ubunntu 14.04, libpython3.5 is installed
Any idea how can I enable plugins?
Ubunntu 14.04, libpython3.5 is installed
Any idea how can I enable plugins?
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: PluginSystem does not start
Did you enable the plugin system ? Setup-> Settings -> Other -> EventSystem ?
you can also look directly in the database :
sqlite3 domoticz.db
>select Key,nValue from Preferences where Key="EnableEventScriptSystem";
you can also look directly in the database :
sqlite3 domoticz.db
>select Key,nValue from Preferences where Key="EnableEventScriptSystem";
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
Re: PluginSystem does not start
Event System is not disabled (checkbox is unchecked).
The sql query prints nothing.
Is there anything else I can do to debug this issue?
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: PluginSystem does not start
can you post the first lines of your log, created at the start of domoticz ?
output of: sudo dpkg --list | grep 3.5 | grep ython
Also the output of.
cd into to domoticz database dir
sudo sqlite3 domoticz.db
.headers on
.tables
select Key,nValue from Preferences;
did you install python3.5-dev
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
Re: PluginSystem does not start
can you post the first lines of your log, created at the start of domoticz ?
Code: Select all
2018-02-03 13:03:33.296 RxQueue: queue worker started...
2018-02-03 13:03:35.297 Nest: Worker started...
2018-02-03 13:03:35.298 Hardware Monitor: Started
2018-02-03 13:03:35.309 AppLamp: Worker Started...
2018-02-03 13:03:35.309 EventSystem: reset all events...
2018-02-03 13:03:35.309 EventSystem: reset all device statuses...
2018-02-03 13:03:35.323 EventSystem: Started
2018-02-03 13:03:35.797 OpenZWave: using config in: /home/shturm/git/domoticz/Config/
2018-02-03 13:03:35.799 OpenZWave: Starting...
2018-02-03 13:03:35.799 OpenZWave: Version: 1.4-78-g5c7ac33-dirty
2018-02-03 13:03:35.983 OpenZWave: Driver Ready
output of: sudo dpkg --list | grep 3.5 | grep ython
Code: Select all
ii libpython3.5:amd64 3.5.4-1+trusty1 amd64 Shared Python runtime library (version 3.5)
ii libpython3.5-dev:amd64 3.5.4-1+trusty1 amd64 Header files and a static library for Python (v3.5)
ii libpython3.5-minimal:amd64 3.5.4-1+trusty1 amd64 Minimal subset of the Python language (version 3.5)
ii libpython3.5-stdlib:amd64 3.5.4-1+trusty1 amd64 Interactive high-level object-oriented language (standard library, version 3.5)
ii python-apt 0.9.3.5ubuntu2 amd64 Python interface to libapt-pkg
ii python-apt-common 0.9.3.5ubuntu2 all Python interface to libapt-pkg (locales)
ii python3-apt 0.9.3.5ubuntu2 amd64 Python 3 interface to libapt-pkg
ii python3.5 3.5.4-1+trusty1 amd64 Interactive high-level object-oriented language (version 3.5)
ii python3.5-dev 3.5.4-1+trusty1 amd64 Header files and a static library for Python (v3.5)
ii python3.5-minimal 3.5.4-1+trusty1 amd64 Minimal subset of the Python language (version 3.5)
Also the output of.
cd into to domoticz database dir
sudo sqlite3 domoticz.db
.headers on
.tables
select Key,nValue from Preferences;
Code: Select all
sqlite> .headers on
sqlite> .tables
BackupLog Meter Scenes
Cameras Meter_Calendar SetpointTimers
CamerasActiveDevices MobileDevices SharedDevices
CustomImages MultiMeter Temperature
DeviceStatus MultiMeter_Calendar Temperature_Calendar
DeviceToPlansMap MySensors TimerPlans
EnoceanSensors MySensorsChilds Timers
EventActions MySensorsVars ToonDevices
EventMaster Notifications UV
EventRules Percentage UV_Calendar
Fan Percentage_Calendar UserSessions
Fan_Calendar Plans UserVariables
FibaroLink Preferences Users
Floorplans PushLink WOLNodes
GooglePubSubLink Rain Wind
Hardware Rain_Calendar Wind_Calendar
HttpLink SceneDevices ZWaveNodes
LightSubDevices SceneLog
LightingLog SceneTimers
sqlite> select Key,nValue from Preferences;
Key|nValue
DB_Version|116
LightHistoryDays|30
MeterDividerEnergy|1000
MeterDividerGas|100
MeterDividerWater|100
RandomTimerFrame|15
ElectricVoltage|230
CM113DisplayType|0
5MinuteHistoryDays|1
SensorTimeout|60
SensorTimeoutNotification|0
UseAutoUpdate|1
UseAutoBackup|1
CostEnergy|2149
CostEnergyT2|2149
CostGas|6218
CostWater|16473
UseEmailInNotifications|1
EmailPort|25
EmailAsAttachment|0
DoorbellCommand|0
SmartMeterType|0
EnableTabLights|1
EnableTabTemp|1
EnableTabWeather|1
EnableTabUtility|1
EnableTabCustom|1
EnableTabScenes|1
EnableTabFloorplans|0
NotificationSensorInterval|43200
NotificationSwitchInterval|0
RemoteSharedPort|6144
Language|0
DashboardType|0
MobileType|0
WindUnit|2
TempUnit|0
SecStatus|0
SecOnDelay|30
AuthenticationMethod|0
ReleaseChannel|0
RaspCamParams|0
UVCParams|0
AcceptNewHardware|1
ZWavePollInterval|60
ZWaveEnableDebug|1
ZWaveNetworkKey|0
ZWaveEnableNightlyNetworkHeal|0
BatteryLowNotification|20
AllowWidgetOrdering|1
ActiveTimerPlan|0
HideDisabledHardwareSensors|1
DisableEventScriptSystem|0
WebTheme|0
FloorplanPopupDelay|750
FloorplanFullscreenMode|0
FloorplanAnimateZoom|1
FloorplanShowSensorValues|1
FloorplanShowSwitchValues|0
FloorplanShowSceneNames|1
FloorplanRoomColour|0
FloorplanActiveOpacity|25
FloorplanInactiveOpacity|5
TempHome|0
TempAway|0
TempComfort|0
HTTPURL|0
ShowUpdateEffect|0
ShortLogInterval|5
DisplayPowerUsageInkWhGraph|1
Location|0
ClickatellEnabled|0
ClickatellAPI|0
ClickatellFrom|0
ClickatellPassword|0
ClickatellTo|0
ClickatellUser|0
EmailFrom|0
EmailServer|0
EmailTo|0
EmailPassword|0
EmailUsername|0
HTTPEnabled|0
HTTPField1|0
HTTPField2|0
HTTPField3|0
HTTPField4|0
HTTPTo|0
KodiIPAddress|0
KodiEnabled|0
KodiPort|9777
KodiTimeToLive|5
LmsPlayerMac|0
LmsDuration|5
LmsEnabled|0
NMAAPI|0
NMAEnabled|0
ProwlAPI|0
ProwlEnabled|0
PushALotAPI|0
PushALotEnabled|0
PushbulletAPI|0
PushbulletEnabled|0
PushoverAPI|0
PushoverUser|0
PushoverEnabled|1
WebUserName|0
WebPassword|0
WebLocalNetworks|0
SecPassword|0
ProtectionPassword|0
DegreeDaysBaseTemperature|0
SendErrorNotifications|0
HTTPPostContentType|0
SendErrorsAsNotification|0
Title|0
CostEnergyR1|800
CostEnergyR2|800
WeightUnit|0
DisableDzVentsSystem|0
DzVentsLogLevel|3
LogEventScriptTrigger|1
GCMEnabled|0
HTTPPostData|0
HTTPPostHeaders|0
PushsaferAPI|0
PushsaferImage|0
PushsaferEnabled|0
OneWireSensorPollPeriod|0
OneWireSwitchPollPeriod|0
MyDomoticzUserId|0
MyDomoticzSubsystems|0
yesdid you install python3.5-dev
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: PluginSystem does not start
Please make sure you have a working backup of your database !!
sudo sqlite3 domoticz.db
.headers on
.tables
select Key,nValue from Preferences;
If you don't want to move to Beta; can you try the following ?
cd into to domoticz database dir
sudo sqlite3 domoticz.db
update Preferences set nValue=1 where Key="DisableEventScriptSystem";
.quit
stop and start domoticz.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
Re: PluginSystem does not start
I did this, and after restart Domoticz shows Setup > Settings > Other > EventSystem Disabled - checked.
Nothing changed, I still don't see PluginSystem log entry.
I'm kind of confused, previous instructions were about querying EnableEventScriptSystem, but the last one was about setting DisableEventScriptSystem - why?
Is there anything else I can do?
Nothing changed, I still don't see PluginSystem log entry.
I'm kind of confused, previous instructions were about querying EnableEventScriptSystem, but the last one was about setting DisableEventScriptSystem - why?
Is there anything else I can do?
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: PluginSystem does not start
EnableEventScriptSystemshturm wrote: ↑Sunday 04 February 2018 4:07 I did this, and after restart Domoticz shows Setup > Settings > Other > EventSystem Disabled - checked.
Nothing changed, I still don't see PluginSystem log entry.
I'm kind of confused, previous instructions were about querying EnableEventScriptSystem, but the last one was about setting DisableEventScriptSystem - why?
Is there anything else I can do?
I am sorry for you that this was not succesfull either.
in my (beta) version 8872 the setting is in the record with Key EnableEventScriptSystem but in the (stable) version 8153 the Key field of that record is DisableEventScriptSystem. This was changed in one of the earlier beta versions to prevent confusion.
Did you install domoticz via the standard way using " sudo curl -L install.domoticz.com | sudo bash " ?
what is the output of
readelf -s domoticz | grep ython
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
Re: PluginSystem does not start
I built it myself from git repo.
Code: Select all
$ readelf -s domoticz | grep ython
2610: 0000000000000000 0 FILE LOCAL DEFAULT ABS EventsPythonModule.cpp
2626: 0000000000000000 0 FILE LOCAL DEFAULT ABS EventsPythonDevice.cpp
4527: 0000000000000000 0 FILE LOCAL DEFAULT ABS PythonObjects.cpp
4530: 00000000005b15a0 195 FUNC LOCAL DEFAULT 13 _GLOBAL__sub_I_PythonObje
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: PluginSystem does not start
I am by no means an expert on this but I compiled also locally and this is the output from the same command on my system; so I would say you miss something:shturm wrote: ↑Sunday 04 February 2018 18:58 I built it myself from git repo.
Code: Select all
$ readelf -s domoticz | grep ython 2610: 0000000000000000 0 FILE LOCAL DEFAULT ABS EventsPythonModule.cpp 2626: 0000000000000000 0 FILE LOCAL DEFAULT ABS EventsPythonDevice.cpp 4527: 0000000000000000 0 FILE LOCAL DEFAULT ABS PythonObjects.cpp 4530: 00000000005b15a0 195 FUNC LOCAL DEFAULT 13 _GLOBAL__sub_I_PythonObje
Code: Select all
7472: 00b67864 1596 FUNC GLOBAL DEFAULT 13 _ZN7Plugins18LogPythonExc
8866: 006c4d80 676 FUNC GLOBAL DEFAULT 13 _ZN7Plugins22PythonEvents
12963: 0068b7e8 112 FUNC GLOBAL DEFAULT 13 _ZN12CEventSystem19Python
14678: 0131c580 4 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins9pythonLibE
18924: 006c51f0 3060 FUNC GLOBAL DEFAULT 13 _ZN7Plugins25PythonEvents
25857: 0131c59c 24 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins11PythonMutexE
29835: 006c51c0 48 FUNC GLOBAL DEFAULT 13 _ZN7Plugins15mapToPythonD
37756: 006c5120 160 FUNC GLOBAL DEFAULT 13 _ZN7Plugins21PythonEvents
38225: 006c5024 252 FUNC GLOBAL DEFAULT 13 _ZN7Plugins16PythonEvents
38987: 01317a60 4 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins22PythonEvents
17472: 00000000 0 FILE LOCAL DEFAULT ABS EventsPythonModule.cpp
17605: 00000000 0 FILE LOCAL DEFAULT ABS EventsPythonDevice.cpp
88411: 00000000 0 FILE LOCAL DEFAULT ABS PythonObjects.cpp
117063: 0131c59c 24 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins11PythonMutexE
119231: 0068b7e8 112 FUNC GLOBAL DEFAULT 13 _ZN12CEventSystem19Python
121560: 006c51f0 3060 FUNC GLOBAL DEFAULT 13 _ZN7Plugins25PythonEvents
124854: 01317a60 4 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins22PythonEvents
137156: 0131c580 4 OBJECT GLOBAL DEFAULT 28 _ZN7Plugins9pythonLibE
150932: 006c5120 160 FUNC GLOBAL DEFAULT 13 _ZN7Plugins21PythonEvents
153489: 00b67864 1596 FUNC GLOBAL DEFAULT 13 _ZN7Plugins18LogPythonExc
154369: 006c5024 252 FUNC GLOBAL DEFAULT 13 _ZN7Plugins16PythonEvents
160827: 006c51c0 48 FUNC GLOBAL DEFAULT 13 _ZN7Plugins15mapToPythonD
164147: 006c4d80 676 FUNC GLOBAL DEFAULT 13 _ZN7Plugins22PythonEvents
Code: Select all
cmake CMakeLists.txt | grep ython
-- Python3 includes found at: /usr/include/python3.5m
CMake Warning (dev) at CMakeLists.txt:234 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do not treat DEFINITIONS as a built-in directory
property. Run "cmake --help-policy CMP0059" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:692 (ADD_PRECOMPILED_HEADER)
This warning is for project developers. Use -Wno-dev to suppress it.
/usr/bin/c++ ;;-I/usr/include/python3.5m;-I/usr/local/src/domoticz/main;-I/usr/local/src/domoticz/tinyxpath;-I/usr/include;-I/usr/local/include;-I/usr/include;-I/usr/include/arm-linux-gnueabihf;-I/usr/local/src/domoticz/hardware/openzwave;;-DBUILTIN_MQTT;-DENABLE_PYTHON;-DHAVE_EXECINFO_H;-DHAVE_LINUX_I2C;-DHAVE_LINUX_SPI;-DWWW_ENABLE_SSL;-DWITH_LIBUSB;-DWITH_OPENZWAVE;-DWITH_GPIO -x c++-header -o /usr/local/src/domoticz/stdafx.h.gch/.c++ /usr/local/src/domoticz/main/stdafx.h
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 8
- Joined: Wednesday 14 October 2015 2:46
- Target OS: Linux
- Domoticz version:
- Location: San Jose, CA
- Contact:
Re: PluginSystem does not start
Alright, after a week of installing and reinstalling python, and trying myriad of other things, I finally succeeded in building Domoticz with python support. Turns out, the problem was in CMakeCache.txt file:
This setting remained there as OFF since I first built Domoticz when I had no python installed on my system.
Once I removed this file, and didcmake found my python and 'make' built Domoticz correctly!
Code: Select all
CMakeCache.txt:USE_PYTHON:BOOL=OFF
Once I removed this file, and did
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Release .
Who is online
Users browsing this forum: No registered users and 1 guest