Comment 33 for bug 523964

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

I had the same issue as #16 - last lines of the trace:
    accounts=accounts)
  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

The issue is var "content" in the line 284 has null:
    self.load_html_string(content, "file://%s/" % os.path.dirname(template_path))

I edited /usr/lib/python2.6/dist-packages/gwibber/gwui.py and added a line before line 284 to strip the nulls and that fixed this issue:
content = content.replace("\0","")

I don't know python but I know programming :-) - probably this is fine.

Hari Gangadharan