Comment 32 for bug 533017

Revision history for this message
Hari Gangadharan (hari-g) wrote :

Many are focusing on the three warning messages in the top. For everyone the issue seems to be slightly different. For me gwibber was failing in the line 284 of /usr/lib/python2.6/dist-packages/gwibber/gwui.py
Failing error was:
  File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 284, in render
    self.load_html_string(content, "file://%s/" % os.path.dirname(template_path))
TypeError: WebKitWebView.load_html_string() argument 1 must be string without null bytes, not str

I did some debugging and found that the content has null in it.... I added a line before the line 284 to remove null:
(Sorry - I don't know python but my programming sense made me do this - probably there may be a better way)
# line added
content = content.replace("\0","")
# existing line
self.load_html_string(content, "file://%s/" % os.path.dirname(template_path))

After that everything worked great for me.

Hari Gangadharan