File "/srv/homeassistant/lib/python3.7/site-packages/envoy_reader/envoy_reader.py", line 8, in <module>
import requests_async as requests
ModuleNotFoundError: No module named 'requests_async'
I’m trying to use an updated version of a component (envoy_reader) which uses requests-async (this fails: import requests_async as requests) I did have 0.93.1, and I upgraded to 0.94.1 homeassistant. still same issue.
I ran pip3 install requests-async and I think it installed? but I can’t find a requests-async file, and I still get the import error.
$ pip3 install re
quests-async
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: requests-async in /home/homeassistant/.local/lib/python3.7/site-packa
ges (0.6.0)
Requirement already satisfied: requests==2.* in /usr/lib/python3/dist-packages (from requests-async)
(2.21.0)
Requirement already satisfied: http3==0.1.* in /home/homeassistant/.local/lib/python3.7/site-package
s (from requests-async) (0.1.1)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from http3==0.1.->request
s-async) (2018.8.24)
Requirement already satisfied: idna==2. in /usr/lib/python3/dist-packages (from http3==0.1.->reque
sts-async) (2.6)
Requirement already satisfied: chardet==3. in /usr/lib/python3/dist-packages (from http3==0.1.->re
quests-async) (3.0.4)
Requirement already satisfied: rfc3986==1. in /home/homeassistant/.local/lib/python3.7/site-package
s (from http3==0.1.->requests-async) (1.3.2)
Requirement already satisfied: h11==0.8. in /home/homeassistant/.local/lib/python3.7/site-packages
(from http3==0.1.->requests-async) (0.8.1)
Requirement already satisfied: h2==3. in /home/homeassistant/.local/lib/python3.7/site-packages (fr
om http3==0.1.->requests-async) (3.1.0)
Requirement already satisfied: hyperframe<6,>=5.2.0 in /home/homeassistant/.local/lib/python3.7/site
-packages (from h2==3.->http3==0.1.->requests-async) (5.2.0)
Requirement already satisfied: hpack<4,>=2.3 in /home/homeassistant/.local/lib/python3.7/site-packag
es (from h2==3.->http3==0.1.*->requests-async) (3.0.0)
Checking python version, and showing what version of homeassistant (haspbian) I have:
homeassistant@hassbian:~ $ python --version
Python 2.7.16 <<<<<<<< Is THIS ok ???
homeassistant@hassbian:~ $ sudo hassbian-config upgrade python
Generating system information...
Home Assistant: 0.94.4
Home Assistant Python: 3.7.3
hassbian-config: 0.13.1
Linux hassbian 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
Suite: Python
Installed: false
Contributed to the project by Ludeeus <https://github.com/ludeeus>
Upgrades python3 and virtual environment to the newest stable version.
Checking current python version...
Python is already the highest stable version.
Operation completed...