It now can find 2 version on my linux server and Pi, hopefully it will find at least one on yours

Moderator: leecollings
After reading your message, I upgraded immediately to the latest beta, but ....Dnpwwo wrote:@jake, can you try the newest beta. I've changed the logic around locating python.
It now can find 2 version on my linux server and Pi, hopefully it will find at least one on yours
Code: Select all
Filter: X
2016-12-20 09:44:31.959 Domoticz V3.6214 (c)2012-2016 GizMoCuz
2016-12-20 09:44:31.960 Build Hash: 8b2980e, Date: 2016-12-20 09:03:48
2016-12-20 09:44:31.961 System: Raspberry Pi
2016-12-20 09:44:31.961 Startup Path: /home/pi/domoticz/
2016-12-20 09:44:32.210 EventSystem: reset all events...
2016-12-20 09:44:32.251 PluginSystem: Failed dynamic library load, Python not found on your system.
Code: Select all
sudo apt-get install libpython3.2
sudo updatedb
locate libpython3.2.so
Code: Select all
/usr/lib/python3.2/config-3.2mu/libpython3.2.so
Code: Select all
set PATH
Code: Select all
C:\Program Files (x86)\Python35-32\
Code: Select all
python35.dll
Code: Select all
2016-12-20 16:00:39.619 PluginSystem: Failed dynamic library load, Python not found on your system.
Code: Select all
PluginSystem: Invalid Python version '3.2.3' found, '3.4.0' or above required.
Code: Select all
PluginSystem: 'lolo' Registration ignored, Plugins are not enabled.
Yes, this finally worked alright (I am on Wheezy), but after a restart with the very latest beta (of tonight, my 2nd update today), I still have the same error as described one post up:Dnpwwo wrote:@jake, didn't really you would be so quick !
The pull request was merged an hour ago so, unless you build from source, you may have pulled the beta too soon. I'm not sure how long after the merge it takes before ther new beta is produced.
Can you try again a bit later?
EDIT: I take it back, it still won't work. You must be running a RaspberryPi with the old Wheezy operating system rather than the newer Jessie. I've reproduced the problem and will look into it.
EDIT2: Okay, I've got this.which should now give you:Code: Select all
sudo apt-get install libpython3.2 sudo updatedb locate libpython3.2.so
I have no idea why the library is not on the machine when python3 is but this fixed it for me.Code: Select all
/usr/lib/python3.2/config-3.2mu/libpython3.2.so
Code: Select all
2016-12-20 19:45:08.308 PluginSystem: Invalid Python version '3.2.3' found, '3.4.0' or above required.
Code: Select all
sudo ln -s <locate-filename-here> /usr/lib/libpython3.5.so
Anyone?tjabas wrote:Is there a way to get the stop notification in the log? As for now, all i can se in the log is play and pause
I updated to the latest beta again, but Domoticz didn't want to start anymore afterwards. Only when I do aDnpwwo wrote:@jake, The hard part is overYou don't need to go back to my original instructions once python is located, just these ones http://www.domoticz.com/forum/posting.p ... 8#pr109294 about the plugin itself.
This is a sinple mistake on my part, although I made the startup look for versions back to 3.2 I left a constant in the code set to 3.4. I will push a fix.
Code: Select all
./updaterelease
Code: Select all
./update beta
Code: Select all
2016-12-21 15:21:20.967 PluginSystem: Started, Python version '3.2.3'.
Code: Select all
sudo apt-get install libpython3.2
Code: Select all
./domoticz > domoticz.log
Yes, it doesDnpwwo wrote:@jake (and @IDANIT)
Just need to clarify a few things:
- So I assume doing:
resolved the previous issue?Code: Select all
sudo apt-get install libpython3.2
Yes, it does[*]When you run the latest beta without doing anything with the new plugin it runs okay.
Dropping the Kodi.py file in the domoticz/plugins folder (had to create it myself) doesn't hurt anything, the file is there all the time. I / we mean by 'adding Kodi Player' that we add the hardware in the hardware page of Domoticz. As soon as I hit the 'add' button there, Domoticz crashes[*]When you say you 'add the Kodi Player', do you mean you drop the Kodi.py file into the plugins folder or that you go to the hardware page and add the hardware to Domoticz?[/list]
There seems to be no need to be laughed at, since the Kodi.py file can sit in it's folder fine without any problems, as long as you don't add the hardware in the hardware page
If the crash is when you add the Kodi.py file to the directory the problem will probably be the manifest build which will make @gizmocuz laugh his head off. He's been hassling me to get rid of that all week and I haven't gotten around to it yet![]()
This is the log after I start Domoticz with the log function and in which session I add 'Kodi Players' hardware:Can (one of) you please supply a full log of the start up until it crashes? From the command line you can use:in the domoticz directoryCode: Select all
./domoticz > domoticz.log
Code: Select all
2016-12-22 22:49:43.435 (Kodi openelec) Calling message handler 'onMessage'.
2016-12-22 22:49:43.435 (Kodi openelec) Player.OnPlay recieved, Player ID: -1
2016-12-22 22:49:43.435 (Status) Updating device from 1:'' to have values 4:''.
2016-12-22 22:49:43.443 (Kodi openelec) Update 4:'' (Status)
2016-12-22 22:49:43.443 (Playing) Updating device from 0:'0' to have values 2:'0'.
2016-12-22 22:49:43.445 (Kodi openelec) Update 2:'0' (Playing)
2016-12-22 22:49:43.445 (Kodi openelec) Sending data: '{"jsonrpc":"2.0","method":"Player.GetItem","id":1003,"params":{"playerid":1,"properties":["artist","album","year","channel","showtitle","season","episode","title"]}}'.
2016-12-22 22:49:43.597 (Kodi openelec) Calling message handler 'onMessage'.
2016-12-22 22:49:43.598 (Kodi openelec) 1003 response received: {"id":1003,"jsonrpc":"2.0","result":{"item":{"album":"","artist":[],"episode":-1,"id":24,"label":"Braqueurs amateurs","season":-1,"showtitle":"","title":"Braqueurs amateurs","type":"movie","year":2005}}}
2016-12-22 22:49:43.599 (Status) Updating device from 4:'' to have values 4:' Braqueurs amateurs (2005)'.
2016-12-22 22:49:43.601 (Kodi openelec) Update 4:' Braqueurs amateurs (2005)' (Status)
2016-12-22 22:49:43.601 (Kodi openelec) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'.
2016-12-22 22:49:43.652 (Kodi openelec) Calling message handler 'onMessage'.
2016-12-22 22:49:43.653 (Kodi openelec) 1002 response received: {"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":0.005016164388507604599,"speed":1}}
2016-12-22 22:49:44.765 (Kodi openelec) Calling message handler 'onHeartbeat'.
2016-12-22 22:49:44.766 (Kodi openelec) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'.
2016-12-22 22:49:44.817 (Kodi openelec) Calling message handler 'onMessage'.
2016-12-22 22:49:44.818 (Kodi openelec) 1002 response received: {"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":0.027727143839001655579,"speed":1}}
2016-12-22 22:49:54.758 (Kodi openelec) Calling message handler 'onHeartbeat'.
2016-12-22 22:49:54.758 (Kodi openelec) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'.
2016-12-22 22:49:54.809 (Kodi openelec) Calling message handler 'onMessage'.
2016-12-22 22:49:54.810 (Kodi openelec) 1002 response received: {"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":0.22598412632942199707,"speed":1}}
Users browsing this forum: No registered users and 1 guest