Unable to upgrade to >0.49.1

After 0.49.1 i get this error after upgrade. Looks like some version failure

“Invalid version: ‘0.14build1’”

2017-09-05 08:05:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 61, in async_setup_component
    return (yield from task)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 168, in _async_setup_component
    hass, domain, component.REQUIREMENTS)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 91, in _async_process_requirements
    ret = yield from hass.async_add_job(pip_install, req)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 87, in pip_install
    os.path.dirname(__file__), CONSTRAINT_FILE))
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/util/package.py", line 29, in install_package
    if check_package_exists(package):
  File "/usr/local/lib/python3.5/dist-packages/homeassistant/util/package.py", line 70, in check_package_exists
    env = pkg_resources.Environment()
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1051, in __init__
    self.scan(search_path)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1081, in scan
    self.add(dist)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 1101, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2452, in hashcmp
    self.parsed_version,
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 2499, in parsed_version
    self._parsed_version = parse_version(self.version)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 201, in parse_version
    return SetuptoolsVersion(v)
  File "/usr/local/lib/python3.5/dist-packages/packaging/version.py", line 202, in __init__
    raise InvalidVersion("Invalid version: '{0}'".format(version))
packaging.version.InvalidVersion: Invalid version: '0.14build1'
2017-09-05 08:05:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved

What platform/installation method do/did you use? Hassbian, AIO, venv, hass.io?

Sorry. I have a Ubuntu 17.04 server. hommeassistant installed with pip3

Did you install it inside a venv? Or just with plain pip install home-assistant?

Just installed with pip3. “sudo -H pip3 install homeassistant==0.49.1” works, but versions after that fails

Please try sudo -H pip3 uninstall homeassistant and then sudo -H pip3 install homeassistant==0.52.1

Also verify your installed version by cat .HA_VERSION inside your HA homefolder and running hass --version.

Same errors :frowning:

cat /var/opt/homeassistant/.HA_VERSION
0.52.1

hass --version
0.52.1

I think it was for strange errors like this that Virtual Environments were invented. It is really worthwhile using them. This is my venv in lubuntu 17

(homeassistant) homeassistant@graham-lubuntu17:~
$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
aiohttp (2.2.5)
aiohttp-cors (0.5.3)
aiohttp-jinja2 (0.13.0)
appdaemon (2.1.7)
astral (1.4)
async (0.6.2)
async-timeout (1.2.1)
bcrypt (3.1.3)
cffi (1.10.0)
chardet (3.0.4)
configparser (3.5.0)
cookies (2.2.1)
daemonize (2.4.7)
distro (1.0.4)
enum-compat (0.0.2)
feedparser (5.2.1)
fuzzywuzzy (0.15.1)
gTTS-token (1.1.1)
holidays (0.8.1)
homeassistant (0.52.1)
influxdb (3.0.0)
iso8601 (0.1.12)
Jinja2 (2.9.6)
MarkupSafe (1.0)
multidict (3.1.3)
mutagen (1.38)
netdisco (1.1.0)
netifaces (0.10.4)
paho-mqtt (1.3.0)
pip (9.0.1)
psutil (5.2.2)
pycparser (2.18)
python-dateutil (2.6.1)
python-forecastio (1.3.5)
pytz (2017.2)
PyYAML (3.12)
requests (2.14.2)
responses (0.7.0)
setuptools (36.3.0)
six (1.10.0)
SQLAlchemy (1.1.13)
sseclient (0.0.18)
typing (3.6.2)
voluptuous (0.10.5)
websocket-client (0.44.0)
wheel (0.29.0)
xmltodict (0.11.0)
yarl (0.12.0)
zeroconf (0.19.0)
(homeassistant) homeassistant@graham-lubuntu17:~
$ 

which works very well.

1 Like

ok, thank you. Never tried venv before, but a good reason to learn :slight_smile:

Reinstalled in Virtual Environments. Works ok now :slight_smile: Thank you

2 Likes