Help - Getting error with python

Getting the following error. Not sure where to start looking to fix?
I assume issue with a pyton that was installed but not sure how to fix it.

Traceback (most recent call last):

File “/usr/local/lib/python3.7/site-packages/aiohttp/”, line 275, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File “aiohttp_http_parser.pyx”, line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

/usr/local/lib etc is for user installed stuff usually outside your package manager. For example on my Ubuntu based Home Assistant box /usr/local/lib/python3.6/dist-packages/ is empty.

You could try moving the tree of files starting at aiohttp to say your home directory and see if that fixes it. For reference, python3-aiohttp is not installed on my system but it is installed in the Python env that I run HA from. I suspect that the hand installed one you have is being used in preference to the one that HA actually needs.

1 Like