missing svg file

Bug #135758 reported by Stefan Lehmann
4
Affects Status Importance Assigned to Milestone
Weather wallpaper
Fix Released
Low
Raúl González Duque

Bug Description

when no sun, snow ... is reported you try to use None.svg, but this file dont exist

** (inkscape:7827): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
** (inkscape:7827): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
** (inkscape:7827): WARNING **: Specified document /usr/share/weather-wallpaper/images/None.svg cannot be opened (is it valid SVG file?)
(inkscape:7827): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed

Revision history for this message
Raúl González Duque (zootropo) wrote :

Do you mean that there are stations where no sky condition is reported?
What station are you using?

Revision history for this message
Nicolas Évrard (nicoe) wrote :

This is a bug in pymetar ... they did not handle the NSC data found in the weather report and thus there is no information.
I submitted a bug report to debian with a patch see http://bugs.debian.org/440153

Revision history for this message
Stefan Lehmann (derstef) wrote :

my station id is "EDSB" if you want to test

maybe a weather-wallpaper should check the results returned by pymetar and show a default picture?

Revision history for this message
Raúl González Duque (zootropo) wrote :

Thank you Nicolas, Stefan. I'll just add a default picture while the author of pymetar fixes it.

Changed in weather-wallpaper:
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Nicolas Évrard (nicoe) wrote :

For EDSB it should work since the cloud condition is "CAVOK" (as of 10:50 UTC) and this is handled by pymetar.
In the meanwhile just change the line 93 from image = report.getPixmap() to image = report.pixmap or 'sun' ... I suppose it will work.

Changed in weather-wallpaper:
assignee: nobody → zootropo
Changed in weather-wallpaper:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.