'NoneType' object has no attribute 'get_filename'

Bug #1078627 reported by David Heremans
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
TypeCatcher
Fix Released
Medium
Andrew Starr-Bochicchio

Bug Description

I used following incantation to install this on my 64bit kubuntu 12.04.1 system
 sudo add-apt-repository ppa:andrewsomething/typecatcher
 sudo apt-get update && sudo apt-get install typecatcher

And then tried to launch it from the same xterm and this is what I see.

$ typecatcher
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(typecatcher:4547): Gtk-WARNING **: Unknown property: GtkEntry.input-hints
Traceback (most recent call last):
  File "/usr/bin/typecatcher", line 47, in <module>
    typecatcher.main()
  File "/usr/lib/python2.7/dist-packages/typecatcher/__init__.py", line 42, in main
    window = TypeCatcherWindow.TypeCatcherWindow()
  File "/usr/lib/python2.7/dist-packages/typecatcher_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/typecatcher/TypeCatcherWindow.py", line 53, in finish_initializing
    htmlfile = html_font_view()
  File "/usr/lib/python2.7/dist-packages/typecatcher/html_preview.py", line 40, in html_font_view
    con_icon_uri = con_info.get_filename()
AttributeError: 'NoneType' object has no attribute 'get_filename'

Related branches

Changed in typecatcher:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Andrew Starr-Bochicchio (andrewsomething)
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

I'm assuming that this is because you don't have any GNOME icon themes installed since your using KDE. Maybe I'll need to add a hard dependency on gnome-icon-theme. Could you try installing that package, and see if it resolves the issue?

Thanks!

summary: - crashes during start
+ 'NoneType' object has no attribute 'get_filename'
Changed in typecatcher:
status: Confirmed → Incomplete
Revision history for this message
David Heremans (dhran) wrote :

Sorry for the late response
I had the gnome-icon-theme installed, I added a few more (including gnome-icon-theme-full) and unfortunately I still get the almost the same error. I paste the output below since a few linenumbers are different (the PPA has been updated ?)

$ typecatcher
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(typecatcher:5864): Gtk-WARNING **: Unknown property: GtkEntry.input-hints
Traceback (most recent call last):
  File "/usr/bin/typecatcher", line 47, in <module>
    typecatcher.main()
  File "/usr/lib/python2.7/dist-packages/typecatcher/__init__.py", line 42, in main
    window = TypeCatcherWindow.TypeCatcherWindow()
  File "/usr/lib/python2.7/dist-packages/typecatcher_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/typecatcher/TypeCatcherWindow.py", line 55, in finish_initializing
    htmlfile = html_font_view()
  File "/usr/lib/python2.7/dist-packages/typecatcher/html_preview.py", line 45, in html_font_view
    installed_icon_uri = installed_info.get_filename()
AttributeError: 'NoneType' object has no attribute 'get_filename'

Revision history for this message
Gustavo Conturzo (gconturzo) wrote :

Hi!!!
I have the same problem.
I hope you can resolve it. The app is GREAT!!!!

Greetings from San Juan, Argentina

Changed in typecatcher:
status: Incomplete → Confirmed
Changed in typecatcher:
status: Confirmed → In Progress
Changed in typecatcher:
status: In Progress → Fix Committed
milestone: none → 0.1-beta1
Changed in typecatcher:
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.