View Single Post
Old 11-04-2012, 12:42 PM   #30
andyh2000
Avid reader
andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.
 
andyh2000's Avatar
 
Posts: 824
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
Darn, fallen at the same hurdle as someone earlier (can't load font file). Here's a dump of what happens - I'm going to give it a rest for now and come back to it later.

Code:
[root@(none) koboWeather]# ls -la 
total 624 
drwxr-xr-x 3 root root 4096 Nov 4 17:14 .
drwxr-xr-x 3 root root 4096 Nov 4 17:07 .. 
-rwxr-xr-x 1 root root 97908 Mar 21 2011 Cabin-Regular.ttf 
-rwxr-xr-x 1 root root 169096 Jan 2 2012 Comfortaa-Regular.ttf 
-rwxr-xr-x 1 root root 16312 May 1 2011 Fabrica.otf 
-rwxr-xr-x 1 root root 303316 Oct 16 19:06 Forum-Regular.ttf 
-rwxr-xr-x 1 root root 391 Oct 20 00:07 autoupdate.sh 
-rwxr-xr-x 1 root root 42 Oct 19 17:22 cron 
drwxr-xr-x 2 root root 4096 Nov 4 17:07 icons 
-rwxr-xr-x 1 root root 12 Nov 4 17:14 location 
-rwxr-xr-x 1 root root 361 Oct 19 19:40 set_location.sh 
-rwxr-xr-x 1 root root 2 Nov 2 14:52 unit.txt 
-rwxr-xr-x 1 root root 12125 Nov 3 22:19 weather.py 
[root@(none) koboWeather]# cat location 
52.02 
-0.75 
[root@(none) koboWeather]# python weather.py 
Kobo Wifi weather forecast started. 
Getting weather information . . . 
Creating image . . . 
init kbd. 
init mouse failed. 
Traceback (most recent call last): 
File "weather.py", line 369, in get_weather_data()
File "weather.py", line 108, in get_weather_data 
display(days, highs, lows, conditions, img_links, unit)
File "weather.py", line 127, in display 
tiny_font = pygame.font.Font("Cabin-Regular.ttf", 18) 
RuntimeError: Couldn't load font file 
[root@(none) koboWeather]#
Click image for larger version

Name:	MobileAdmin.png
Views:	944
Size:	136.7 KB
ID:	95432

Andrew
andyh2000 is offline   Reply With Quote