[MacPorts] #64513: diffuse fails to run: AttributeError: 'NoneType' object has no attribute 'get_width' (was: Installed port fails)

MacPorts noreply at macports.org
Wed Jan 26 01:27:03 UTC 2022


#64513: diffuse fails to run: AttributeError: 'NoneType' object has no attribute
'get_width'
--------------------------+--------------------
  Reporter:  keithdtyler  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  diffuse      |
--------------------------+--------------------
Description changed by jmroot:

Old description:

> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
> /site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open
> display
>   warnings.warn(str(e), _gtk.Warning)
> /opt/local/bin/diffuse:7359: Warning: invalid (NULL) pointer instance
>   gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
> /opt/local/bin/diffuse:7359: Warning: g_signal_connect_data: assertion
> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>   gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
> /opt/local/bin/diffuse:7368: GtkWarning: gdk_screen_get_width: assertion
> 'GDK_IS_SCREEN (screen)' failed
>   self.int_state['window_x'] = max(0, (gtk.gdk.screen_width() -
> self.int_state['window_width']) / 2)
> /opt/local/bin/diffuse:7369: GtkWarning: gdk_screen_get_height: assertion
> 'GDK_IS_SCREEN (screen)' failed
>   self.int_state['window_y'] = max(0, (gtk.gdk.screen_height() -
> self.int_state['window_height']) / 2)
> /opt/local/bin/diffuse:7391: GtkWarning: gtk_icon_theme_get_for_screen:
> assertion 'GDK_IS_SCREEN (screen)' failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: gtk_settings_get_for_screen:
> assertion 'GDK_IS_SCREEN (screen)' failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning:
> gtk_icon_size_lookup_for_settings: assertion 'GTK_IS_SETTINGS (settings)'
> failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: Invalid icon size 3
>
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: gtk_icon_theme_load_icon:
> assertion 'GTK_IS_ICON_THEME (icon_theme)' failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: Error loading theme icon
> 'document-new' for stock:
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: gtkstyle.c:2358: invalid icon
> size '3'
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: GtkWarning: gtk_style_render_icon: assertion
> 'pixbuf != NULL' failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> /opt/local/bin/diffuse:7391: Warning: g_object_ref: assertion
> 'G_IS_OBJECT (object)' failed
>   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
> Traceback (most recent call last):
>   File "/opt/local/bin/diffuse", line 8329, in <module>
>     diff = Diffuse(rc_dir)
>   File "/opt/local/bin/diffuse", line 7392, in __init__
>     w, h = p0.get_width(), p0.get_height()
> AttributeError: 'NoneType' object has no attribute 'get_width'

New description:

 {{{
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open
 display
   warnings.warn(str(e), _gtk.Warning)
 /opt/local/bin/diffuse:7359: Warning: invalid (NULL) pointer instance
   gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
 /opt/local/bin/diffuse:7359: Warning: g_signal_connect_data: assertion
 'G_TYPE_CHECK_INSTANCE (instance)' failed
   gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
 /opt/local/bin/diffuse:7368: GtkWarning: gdk_screen_get_width: assertion
 'GDK_IS_SCREEN (screen)' failed
   self.int_state['window_x'] = max(0, (gtk.gdk.screen_width() -
 self.int_state['window_width']) / 2)
 /opt/local/bin/diffuse:7369: GtkWarning: gdk_screen_get_height: assertion
 'GDK_IS_SCREEN (screen)' failed
   self.int_state['window_y'] = max(0, (gtk.gdk.screen_height() -
 self.int_state['window_height']) / 2)
 /opt/local/bin/diffuse:7391: GtkWarning: gtk_icon_theme_get_for_screen:
 assertion 'GDK_IS_SCREEN (screen)' failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: gtk_settings_get_for_screen:
 assertion 'GDK_IS_SCREEN (screen)' failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning:
 gtk_icon_size_lookup_for_settings: assertion 'GTK_IS_SETTINGS (settings)'
 failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: Invalid icon size 3

   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: gtk_icon_theme_load_icon:
 assertion 'GTK_IS_ICON_THEME (icon_theme)' failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: Error loading theme icon
 'document-new' for stock:
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: gtkstyle.c:2358: invalid icon
 size '3'
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: GtkWarning: gtk_style_render_icon: assertion
 'pixbuf != NULL' failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 /opt/local/bin/diffuse:7391: Warning: g_object_ref: assertion 'G_IS_OBJECT
 (object)' failed
   p0 = self.render_icon(gtk.STOCK_NEW, gtk.ICON_SIZE_LARGE_TOOLBAR)
 Traceback (most recent call last):
   File "/opt/local/bin/diffuse", line 8329, in <module>
     diff = Diffuse(rc_dir)
   File "/opt/local/bin/diffuse", line 7392, in __init__
     w, h = p0.get_width(), p0.get_height()
 AttributeError: 'NoneType' object has no attribute 'get_width'
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/64513#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list