0.38.1 installation issue

Hi all,

Trying to install the new released 0.38.1, but in RPI3, when run “hass” after installation, it keeps looping and showing “INFO:homeassistant.components.mqtt:Successfully reconnected to the MQTT server”

And show below message after the 10 -15 MQTT reconnect messages.
Anyone can help?
ps: i am running mosquitto on my RPI3.

INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: old_state=, entity_id=sun.sun, new_state=>

WARNING:root:Unknown miio device found: ServiceInfo(type='_miio._udp.local.', name='yeelink-light-strip1_miio48452877._miio._udp.local.', address=b'\xc0\xa8\x01r', port=54321, weight=0, priority=0, server='yeelink-light-strip1_miio48452877.local.', properties={b'mac': b'286c071418f8', b'epoch': b'1'})

You could try to disable the discovery component if the issue is related to your Yeelink light strip.

I’m getting the following error after installing to 0.38.1

(homeassistant_venv) homeassistant@hass2:~/.homeassistant$ hass
Config directory: /home/homeassistant/.homeassistant
17-02-12 10:50:10 INFO (Thread-3) [homeassistant.config] Upgrading config directory from 0.37.1 to 0.38.1
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/bin/hass", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 381, in main
    exit_code = setup_and_run_hass(config_dir, args)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/__main__.py", line 293, in setup_and_run_hass
    log_rotate_days=args.log_rotate_days)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 469, in from_config_file
    hass.loop.run_until_complete(future)
  File "/usr/lib/python3.4/asyncio/base_events.py", line 276, in run_until_complete
    return future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 460, in _async_init_from_config_file
    config_path, hass, verbose, skip_pip, log_rotate_days)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 502, in async_from_config_file
    config_dict, hass, enable_log=False, skip_pip=skip_pip)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 386, in async_from_config_dict
    None, conf_util.process_ha_config_upgrade, hass)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/config.py", line 251, in process_ha_config_upgrade
    shutil.rmtree(lib_path)
  File "/usr/lib/python3.4/shutil.py", line 463, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.4/shutil.py", line 401, in _rmtree_safe_fd
    _rmtree_safe_fd(dirfd, fullname, onerror)
  File "/usr/lib/python3.4/shutil.py", line 421, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.4/shutil.py", line 419, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'compat.pyc'

Got it. There were some files owned by root in the deps directory that could not be deleted as part of the upgrade process. Changed ownership to homeassistant and it’s going through the upgrade process fine I think.

Another issue:
I had an earlier problem with the install because I manually installed several required modules including pysnmp. So this time I thought I would give yall a chance to figure out what’s happening before I force it in. It does not show up in the listings from pip or pip3 and is not in the deps directory.

17-02-12 13:40:00 INFO (Thread-8) [homeassistant.util.package] Attempting install of pysnmp==4.3.3
17-02-12 13:42:05 ERROR (Thread-8) [homeassistant.bootstrap] Not initializing sensor.snmp because could not install dependency pysnmp==4.3.3

Appdaemon and HomeAssistant Devs…

I think I have figured out the problem here.

I use pysnmp in one of my appdaemon apps. Appdaemon doesn’t look in the deps directory so it doesn’t find the copy of pysnmp that HA has installed. By like token, HA doesn’t seem to like pysnmp not being in the deps directory so it tries to re-install it and can’t because there is already another copy out there where AD is finding it.

So what’s the solution here, other than forcing it to install in two places which will cause problems in two weeks with the next upgrade?

Sorry but I’m getting a little frustrated here. I restarted HA again this morning to implement some very minor changes in my config. When HA started booting up, I knew there were problems because it took so long. Sure enough, after HA came up.

The above modules couldn’t be found. restarting HA does the same thing to me almost every time I restart it. What’s funny is I get everything re-installed and it restarts fine. Then in a day or so, I’ll restart for some reason and boom everything un-installs and I have to re-install all of these. The deps directory has been an issue all through the 0.38.* releases. Can someone explain what is going on with it? And will it be fixed in 0.39