Ich habe ein Plugin auf die aktuelle smarthomeNG umgestellt und scheitere an einer Kleinigkeit, die mir aber Rätsel aufgibt.
mysql Installation ausgeführt, Phyton tests laufen, Datenbank manuell über phpmyadmin angelegt.
import pymysql
import mysql.connector
from mysql.connector import errorcode
Zugriff über mein Plugin zeigt folgende Meldung.
in /etc/plugin und im Source finde ich nur pymysql aber nie mysql
2022-08-02 11:19:39 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.2-master (cc57a0ad) --------------------
2022-08-02 11:19:39 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
2022-08-02 11:19:39 NOTICE lib.smarthome - on Linux-5.15.32-v7l+-armv7l-with-glibc2.31 (pid=10756)
2022-08-02 11:19:40 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
2022-08-02 11:19:44 ERROR lib.plugin Plugin 'wp' error importing Python package: No module named 'mysql'
2022-08-02 11:19:44 ERROR lib.plugin Plugin 'wp' initialization failed, plugin not loaded
database:
plugin_name: database
precision: '2'
driver: pymysql
connect:
- host:localhost
- user:smarthome
- passwd:smarthome
- db:smarthome
- port:3306
count_logentries: true
wp:
plugin_name: aaeigwp
precision: '4'
driver: pymysql
connect:
- host:localhost
- user:smarthome
- passwd:smarthome
- db: portfolio
- port:3306
count_logentries: true
xmin: '3'
xmax: '5'
setlimit: true
Was verbirgt sich hinter dem Modul 'mysql' ? Auf der letzten smarthomeNG läuft es ohne Meldung
Danke für jede Hilfe!
LG Wolfgang
mysql Installation ausgeführt, Phyton tests laufen, Datenbank manuell über phpmyadmin angelegt.
import pymysql
import mysql.connector
from mysql.connector import errorcode
Zugriff über mein Plugin zeigt folgende Meldung.
in /etc/plugin und im Source finde ich nur pymysql aber nie mysql
2022-08-02 11:19:39 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.2-master (cc57a0ad) --------------------
2022-08-02 11:19:39 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
2022-08-02 11:19:39 NOTICE lib.smarthome - on Linux-5.15.32-v7l+-armv7l-with-glibc2.31 (pid=10756)
2022-08-02 11:19:40 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
2022-08-02 11:19:44 ERROR lib.plugin Plugin 'wp' error importing Python package: No module named 'mysql'
2022-08-02 11:19:44 ERROR lib.plugin Plugin 'wp' initialization failed, plugin not loaded
database:
plugin_name: database
precision: '2'
driver: pymysql
connect:
- host:localhost
- user:smarthome
- passwd:smarthome
- db:smarthome
- port:3306
count_logentries: true
wp:
plugin_name: aaeigwp
precision: '4'
driver: pymysql
connect:
- host:localhost
- user:smarthome
- passwd:smarthome
- db: portfolio
- port:3306
count_logentries: true
xmin: '3'
xmax: '5'
setlimit: true
Was verbirgt sich hinter dem Modul 'mysql' ? Auf der letzten smarthomeNG läuft es ohne Meldung
Danke für jede Hilfe!
LG Wolfgang
Kommentar