Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

PleXBMC Helper fails if you use the Login Screen #4

Open
ChaosBlades opened this issue May 9, 2014 · 7 comments
Open

PleXBMC Helper fails if you use the Login Screen #4

ChaosBlades opened this issue May 9, 2014 · 7 comments

Comments

@ChaosBlades
Copy link

XBMC 13 Final (Windows 8.1 Update 1, but also does it on OpenELEC 4.0)

Amber 1.6.0

plugin.video.plexbmc-3.4.6beta2

script.plexbmc.helper-3.4.2

00:32:17 T:37328 NOTICE: ===== PLEXBMC HELPER START =====
00:32:17 T:37328 NOTICE: PleXBMC Helper -> running Python: sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
00:32:17 T:37328 NOTICE: PleXBMC Helper -> running Version: 3.4.2
00:32:17 T:37328 NOTICE: PleXBMC Helper -> Platform: Windows
00:32:17 T:37328 NOTICE: PleXBMC Helper -> UUID: 1363d712-fa77-4007-829a-605bd25cf25b
00:32:17 T:37328 NOTICE: PleXBMC Helper -> jsonrpc: Sending request to XBMC: {"params": {"properties": ["version"], "addonid": "plugin.video.plexbmc"}, "jsonrpc": "2.0", "id": 1, "method": "Addons.GetAddonDetails"}
00:32:17 T:37328 NOTICE: PleXBMC Helper -> jsonrpc: Response from XBMC: {"error":{"code":-32601,"message":"Method not found."},"id":1,"jsonrpc":"2.0"}
00:32:17 T:37328 NOTICE: XBMC returned an error: {u'message': u'Method not found.', u'code': -32601}
00:32:17 T:37328 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'bool' object has no attribute 'get'
Traceback (most recent call last):
File "C:\Users\Josh\AppData\Roaming\XBMC\addons\script.plexbmc.helper-3.4.2\default.py", line 60, in
settings['plexbmc_version'] = jsonrpc("Addons.GetAddonDetails", {"addonid" : "plugin.video.plexbmc", "properties" : ["version"]}).get('addon',{}).get('version', False)
AttributeError: 'bool' object has no attribute 'get'
-->End of Python script error report<--

@SamJongenelen
Copy link

I recall having some issues as well. [i]PleXBMCHelper[/i] didnt work (at all) and i was seeing a similar log mesage.
Im running a workaround by using PlexBMCHelper 3.4.1. (which works, can't say for sure the logs are clean though..)

@ChaosBlades
Copy link
Author

PleXBMC works just fine it is the Helper that does not work when the Login Screen is enabled.

@wickning1
Copy link
Collaborator

I just pushed up a potential fix but I'm not at a workstation that I can test on. Will test it by tomorrow and tag a release. Feel free to test yourself if you're feeling adventurous.

@ChaosBlades
Copy link
Author

Get off work in 3 hours will do. Thanks!

@ChaosBlades
Copy link
Author

It works but with a few drawbacks. The addon does not start until you select the profile so you can't use the Plex remote to do that. Also if you log off which sends you back to the logon screen the addon failes.

00:18:21 T:30324 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'socket.error'>
Error Contents: (10057, 'A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied')
Traceback (most recent call last):
File "C:\Users\Josh\AppData\Roaming\XBMC\addons\script.plexbmc.helper-master\default.py", line 123, in
httpd.socket.shutdown(socket.SHUT_RDWR)
File "C:\Program Files (x86)\XBMC\system\python\Lib\socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: (10057, 'A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied')
-->End of Python script error report<--

@wickning1
Copy link
Collaborator

Just pushed a potential fix where it turns on at startup again. Looks like a lot of the jsonrpc calls fail before login, but that one grabbing the plexbmc version was the only one that was fatal. Disturbing that they work through the network stack but not with the python call.

@wickning1
Copy link
Collaborator

In 3.4.7 I had it fall back to using the HTTP server when the executebuiltin fails. That should take care of this, but you may have to ensure that the Kodi HTTP server is enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants