Weather example fails - Cosmic Unicorn

It connects, gets data but then outputs:

Requesting URL:
Data obtained!
{‘longitude’: -1.42, ‘utc_offset_seconds’: 3600, ‘timezone’: ‘Europe/London’, ‘elevation’: 71.0, ‘current_weather’: {‘windspeed’: 16.2, ‘weathercode’: 2, ‘is_day’: 1, ‘time’: ‘2023-07-17T11:00’, ‘winddirection’: 269.0, ‘temperature’: 17.3}, ‘timezone_abbreviation’: ‘BST’, ‘latitude’: 53.38, ‘generationtime_ms’: 1.101017}
Temp: 17.3°C Wind Speed: 16.2kmph Wind Direction: W As of: 2023-07-17, 11:00

Traceback (most recent call last):
File “”, line 152, in
File “”, line 123, in draw_page
OSError: [Errno 2] ENOENT

Any ideas would be great,


Could you:

  1. Format your error here with code fences (three consecutive backticks at the start and end, on their own line). It is not critical in this case, but it is an essential technique for showing code and error logs generally. You can edit your post to do this.
  2. Using the line numbers provided, show the code (or a snippet of it) using another code block.
  3. Point to the tutorial or repository you are using (not all readers will be aware of the tutorial or the product you are working on)
  4. I would guess you are using MicroPython, but it is worth making that clear. Explain what platform you are running it on.


I found a number of posts about this error, but the error text is very vague, so it is hard to work out which ones might be relevant. Is there not more information in the stack trace?

ENOENT usually means that it’s trying to open a file that’s missing - have you got your icons saved in the right place?

Turns out i had moved a dif example of the icons files to the pi - its now fixed and working, thanks for the pointers :)


1 Like