Breakout Garden Weather.py example - edit

I get the following when I run Weather.py, install instructions followed, any ideas?

Traceback (most recent call last):
File “./weather.py”, line 126, in
weather_icon = get_weather_icon(get_weather(coords))
File “./weather.py”, line 76, in get_weather
soup = BeautifulSoup(res.content, “lxml”)
File “/usr/local/lib/python2.7/dist-packages/bs4/init.py”, line 196, in init
% “,”.join(features))
bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Tried with latest Stretch Image and the 2018-11-13 as well - fails with both…

Running “sudo apt-get install python-lxml” and rebooting appears to have solved the problem.

1 Like