How do I fix the Pollen platform after upgrading to .82?

I see in the release notes that the Pollen platform has a breaking change, tried updating numpy with sudo pip install numpy --upgrade and it appeared to work but still getting the following in my log

018-11-10 06:51:55 ERROR (MainThread) [homeassistant.components.sensor] pollen: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 16, in
from . import multiarray
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 347, in async_device_update
await self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 240, in async_update
ATTR_TREND: calculate_trend(indices),
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 144, in calculate_trend
import numpy as np
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

2018-11-10 06:51:57 ERROR (MainThread) [homeassistant.components.sensor] pollen: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 16, in
from . import multiarray
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 347, in async_device_update
await self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 271, in async_update
ATTR_TREND: calculate_trend(indices),
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 144, in calculate_trend
import numpy as np
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

2018-11-10 06:51:57 ERROR (MainThread) [homeassistant.components.sensor] pollen: Error on device update!
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 16, in
from . import multiarray
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 347, in async_device_update
await self.async_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 240, in async_update
ATTR_TREND: calculate_trend(indices),
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/pollen.py”, line 144, in calculate_trend
import numpy as np
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/init.py”, line 142, in
from . import add_newdocs
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/add_newdocs.py”, line 13, in
from numpy.lib import add_newdoc
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/init.py”, line 8, in
from .type_check import *
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/lib/type_check.py”, line 11, in
import numpy.core.numeric as _nx
File “/srv/homeassistant/lib/python3.5/site-packages/numpy/core/init.py”, line 26, in
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf (removes all
files not under version control). Otherwise reinstall numpy.

Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory

@bachya Can you please explain how I get all the sensors back. I’m currently only getting the index sensors. The average sensors are not being returned. Thanks

I’m not sure what’s happened. You shouldn’t have to update numpy manually – your excretions point to an issue there.

Thanks for getting back to me. I wasn’t clear in describing the problem. I have successfully been using the pollen platform on release 81.1.6 As soon as I updated to 82 I started getting the errors in my log that I posted.

After I read thru the release notes again I got the idea that I needed to do something in order to correct the problem, hence the numpy upgrade. But that didn’t work either.

The release notes state a breaking change, am I suppose to do something different in Home Assistant 82 that I didn’t have in 81.1.6?

Thanks

If you take a look at the PR that made the change, it says

Breaking Change: Because of the longer statistical view, trend attributes will no longer return a value of “Flat”. All automations relying on that value will need to be updated.

So on my reading, only automations need to change, not the component itself.

Thanks to post Problem after upgrading to 0.62 @andreas.w my Pollen problem has been solved

apt install libatlas3-base