LG Netcast TV issue on 0.35.3

Hi All,

I’m experiencing the below issue with my LG TV since I’ve updated from 0.33 to 0.35 (not sure if the issue was there in 0.34):

Traceback (most recent call last):
      File "uvloop/future.pyx", line 374, in uvloop.loop.BaseTask._fast_step (uvloop/loop.c:105920)
      File "/usr/src/app/homeassistant/helpers/entity_component.py", line 386, in _update_entity_states
        yield from update_coro
      File "/usr/src/app/homeassistant/helpers/entity.py", line 216, in async_update_ha_state
        yield from self.hass.loop.run_in_executor(None, self.update)
      File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:103945)
      File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:107104)
      File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:102363)
      File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/usr/src/app/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/usr/src/app/homeassistant/util/__init__.py", line 296, in wrapper
        result = method(*args, **kwargs)
      File "/usr/src/app/homeassistant/components/media_player/lg_netcast.py", line 86, in update
        from pylgnetcast import LgNetCastError
      File "/usr/local/lib/python3.5/site-packages/pylgnetcast/__init__.py", line 3, in <module>
        __all__ += pylgnetcast.__all__
    NameError: name 'pylgnetcast' is not defined

Anyone else with this?

I’m in 0.35.3 & Docker.

Maybe a mismatch of pylgnetcast version in requirements file.
I see that pylgnetcast version 0.3.1 is available but version 0.2.0 is used.

Maybe log in the docker and see if package pylgnetcast is available.

hey, thanks for the reply @touliloup,

I went to the docker image and checked the version. Eventually I removed the dependency hoping HA will download it again updated, and looks like it worked but I now have this new error:

 2016-12-28T16:45:38.362693296Z Traceback (most recent call last):
 2016-12-28T16:45:38.362711571Z   File "/usr/src/app/homeassistant/helpers/entity_component.py", line 150, in _async_setup_platform
 2016-12-28T16:45:38.362728722Z     entity_platform.add_entities, discovery_info
 2016-12-28T16:45:38.362744797Z   File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:103945)
 2016-12-28T16:45:38.362761810Z   File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:107104)
 2016-12-28T16:45:38.362798086Z   File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:102363)
 2016-12-28T16:45:38.362825162Z   File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
 2016-12-28T16:45:38.362842788Z     result = self.fn(*self.args, **self.kwargs)
 2016-12-28T16:45:38.362859025Z   File "/usr/src/app/homeassistant/components/media_player/lg_netcast.py", line 48, in setup_platform
 2016-12-28T16:45:38.362875751Z     from pylgnetcast import LgNetCastClient
 2016-12-28T16:45:38.362891864Z ImportError: cannot import name 'LgNetCastClient'e[0m

Little bit lost on how make it work :frowning:

LgNetCastClient is part of pylgnetcast.
If pylgnetcast is available, I’m not sure how I can help… Which version is now in use in the container?

Well, I must confess I don’t know what I’ve done (if anything at all) but it’s no longer showing this error.

It’s weird because all he issues came from my dev environment, in prod looks like everything goes fine. Just to note here, he difference between CV and pro for me is very small, both envs are docker containers in he same box. The config is a simple copy and paste from prod to dev where I test stuff …

Anyway, working now.

Thanks!!!