Page 1 of 2
Python Plugin Domoticz-Enigma2
Posted: Saturday 23 December 2017 18:48
by ProjektC
Hi,
I want to send orders to my Vu Enigma2 receiver.
https://github.com/kofec/Domoticz-Enigma2
But I can't find anything under Hardware after successful installation.
I have tested the last beta and it doesn't work.
I have now installed the last stable version, and it is not possible.
Rights set to 755
What am I doing wrong?
Re: Python Plugin Domoticz-Enigma2
Posted: Sunday 24 December 2017 13:05
by zicht
Hi
You need to restart domoticz
then you can select in hardware : enigma2 with kodi remote
If i look in my log it does not start (errors on XML dependencies)
So just installing the .PY file is not working ( at least for my config)
Hope it helps you moving forward
Re: Python Plugin Domoticz-Enigma2
Posted: Tuesday 26 December 2017 8:44
by ProjektC
EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
i have install sudo apt-get install libpython3.4
Re: Python Plugin Domoticz-Enigma2
Posted: Tuesday 26 December 2017 10:53
by ProjektC
sudo apt-get install python3-dev
2017-12-26 11:03:39.919 Error: (Enigma2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Enigma2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2017-12-26 11:03:39.919 Error: (Vuplus) Module Import failed, exception: 'ImportError'
2017-12-26 11:03:39.919 Error: (Vuplus) Module Import failed: ' Name: xmltodict'
;(
Re: Python Plugin Domoticz-Enigma2
Posted: Wednesday 27 December 2017 13:11
by arnoldg
I have a total crash of domoticz after adding the hardware.
After reboting, domoticz won't start.
only after deleting the plugin domoticz starts again.
Running Domoticz on a RP2, beta v3.8796
what could be wrong
Re: Python Plugin Domoticz-Enigma2
Posted: Thursday 28 December 2017 9:34
by ProjektC
I have an RP 3 and the stable version 3.8153 and I can't do it.
I have now ordered a Logitech Harmony Hub.
I hope this will allow me to better control the devices with Domoticz.....
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 22 January 2018 13:16
by kofec
Install package "xmltodict" (pip for python3)
and check where it was installed
"if sys.platform.startswith('linux'):
# linux specific code here#
sys.path.append('/usr/local/lib/python3.5/dist-packages')
the best way is to first use script:
enigma2.py
Re: Python Plugin Domoticz-Enigma2
Posted: Friday 26 January 2018 19:11
by pacitzu
kofec wrote: ↑Monday 22 January 2018 13:16
Install package "xmltodict" (pip for python3)
and check where it was installed
"if sys.platform.startswith('linux'):
# linux specific code here#
sys.path.append('/usr/local/lib/python3.5/dist-packages')
the best way is to first use script:
enigma2.py
I installed xmltodict library with
pip3 install xmltodict
I found where the packages are installed with
$ python3 -m site
and then In plugin.py I changed
pathOfPackages = '/usr/local/lib/python3.5/dist-packages'
in
pathOfPackages = '/home/pi/.local/lib/python3.5/site-packages'
and now it works.
Thank you
Re: Python Plugin Domoticz-Enigma2
Posted: Thursday 08 February 2018 14:34
by odorf
Hi,
Code: Select all
sys.path = [
'/home/pi/domoticz/plugins/Domoticz-Enigma2',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-arm-linux-gnueabihf',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/home/pi/.local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
]
USER_BASE: '/home/pi/.local' (exists)
USER_SITE: '/home/pi/.local/lib/python2.7/site-packages' (exists)
ENABLE_USER_SITE: True
I've changed the variable to : pathOfPackages = '/usr/lib/python2.7/dist-packages' in enigma2.py file and this script runs perfectly
However after doing the same in plugin.py file Domoticz is stopping without any error in log. What can I do to fix it?
Re: Python Plugin Domoticz-Enigma2
Posted: Thursday 08 February 2018 14:55
by kofec
Domoticz only supports python 3.x
so please correct this variable once again.
using pip3 install needed modules/packages
Re: Python Plugin Domoticz-Enigma2
Posted: Friday 09 February 2018 11:25
by odorf
have some progress

I've installed the xmltodict package and now enigma2.py is running without any changes in the file.
unfortunatelly it didn't help the plugin to run.
any hint which modules/packages should install? Domoticz hangs and kills the process.
*the hint is: the same situation with any other plugin I want execute

(tried with 2 different rpi's with no luck).
Re: Python Plugin Domoticz-Enigma2
Posted: Friday 09 February 2018 20:08
by kofec
I just tried on latest docker and it fine. Maybe you can backup your domoticz folder and try latest Domoticz beta. Can you also share what python version you have. Just type python3. In my case it is:
python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 12 February 2018 14:39
by odorf
Hi
I have the same Python version as You have.
Which distribution You are using? Jessie or Stretch?
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 27 August 2018 22:13
by uronito
hi,
with last version of beta domoticz plugin dont work.
Code: Select all
2018-08-27 22:12:52.338 Error: Receptor-Enigma hardware (52) thread seems to have ended unexpectedly
Regards
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 03 September 2018 22:33
by kofec
Hi, I have added some fix please try latest version ?
Re: Python Plugin Domoticz-Enigma2
Posted: Tuesday 04 September 2018 10:04
by uronito
Hi Kofec,
I try the last version of plugin. Continue same Fail.
Code: Select all
2018-09-04 10:02:21.375 Error: Receptor-Enigma hardware (52) thread seems to have ended unexpectedly
Regards
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 26 November 2018 19:19
by NoProfesor
Which ? pathlib
pathOfPackages = '/usr/lib/python3/dist-packages'
Code: Select all
~ $ python3 -m site
sys.path = [
'/home/pi',
'/usr/lib/python35.zip',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-arm-linux-gnueabihf',
'/usr/lib/python3.5/lib-dynload',
'/home/pi/.local/lib/python3.5/site-packages',
'/usr/local/lib/python3.5/dist-packages',
'/usr/lib/python3/dist-packages',
]
USER_BASE: '/home/pi/.local' (exists)
USER_SITE: '/home/pi/.local/lib/python3.5/site-packages' (exists)
ENABLE_USER_SITE: True
2018-11-26 19:29:41.571 Error: (Enigma2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Enigma2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-11-26 19:29:41.572 Error: (VUplus) Module Import failed, exception: 'ImportError'
2018-11-26 19:29:41.572 Error: (VUplus) Module Import failed: ' Name: xmltodict'
2018-11-26 19:29:41.572 Error: (VUplus) Error Line details not available.
2018-11-26 19:31:00.403 Error: VUplus hardware (7) thread seems to have ended unexpectedly
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 26 November 2018 19:46
by kofec
Check where is this package: xmltodict
Re: Python Plugin Domoticz-Enigma2
Posted: Monday 26 November 2018 22:49
by NoProfesor
is in pathOfPackages = '/home/pi/.local/lib/python3.5/site-packages'
what is wrong?
LOG:
Code: Select all
2018-11-26 22:37:39.662 Error: (Enigma2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Enigma2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-11-26 22:37:39.662 Error: (VUplus) Module Import failed, exception: 'ImportError'
2018-11-26 22:37:39.662 Error: (VUplus) Module Import failed: ' Name: xmltodict'
2018-11-26 22:37:39.662 Error: (VUplus) Error Line details not available.
2018-11-26 22:38:40.667 Error: (Enigma2) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Enigma2/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2018-11-26 22:38:40.667 Error: (VUplus) Module Import failed, exception: 'ImportError'
2018-11-26 22:38:40.667 Error: (VUplus) Module Import failed: ' Name: xmltodict'
2018-11-26 22:38:40.667 Error: (VUplus) Error Line details not available.
2018-11-26 22:40:01.038 Error: VUplus hardware (8) thread seems to have ended unexpectedly
2018-11-26 22:40:30.043 Error: VUplus hardware (8) thread seems to have ended unexpectedly
Re: Python Plugin Domoticz-Enigma2
Posted: Tuesday 27 November 2018 21:55
by NoProfesor
I see on hardware, but not on devices
