What happens when you run the attached python script on the command line?

Padraig


On 05/ 2/11 10:22 PM, Rinaldo DiGiorgio wrote:
Hello,

        I tried to remove a package with the ui tool and I get the following 
error.

Traceback (most recent call last):
   File "/usr/bin/packagemanager", line 2995, in __on_remove
     gconf = self.gconf)
   File "/usr/lib/python2.6/vendor-packages/pkg/gui/installupdate.py", line 
290, in __init__
     self.__setup_createplan_dlg_sizes()
   File "/usr/lib/python2.6/vendor-packages/pkg/gui/installupdate.py", line 
331, in __setup_createplan_dlg_sizes
     sw, sh = root_win.property_get(net_workarea_prop)[2][2:4]
TypeError: 'NoneType' object is unsubscriptable

List of configured publishers:
P       O       solaris (http://10.134.6.21/solaris11/dev/)
E       O       java-nightly (http://bursrotst07.us.oracle.com/)

pkg version:
759f5da48062

        I was able to remove the pkg with pkg uninstall. When I try to install 
a new one I get  unknown error.
However I am able to install. I have a screen snap if anyone wants it.

Error details:
Traceback (most recent call last):
   File "/usr/lib/python2.6/vendor-packages/pkg/gui/detailspanel.py", line 81, 
in __on_versions_install_button_clicked
     self.parent.install_version(active_version)
   File "/usr/bin/packagemanager", line 4829, in install_version
     main_window = self.w_main_window, api_lock = self.api_lock)
   File "/usr/lib/python2.6/vendor-packages/pkg/gui/installupdate.py", line 
290, in __init__
     self.__setup_createplan_dlg_sizes()
   File "/usr/lib/python2.6/vendor-packages/pkg/gui/installupdate.py", line 
331, in __setup_createplan_dlg_sizes
     sw, sh = root_win.property_get(net_workarea_prop)[2][2:4]
TypeError: 'NoneType' object is unsubscriptable

List of configured publishers:
P       O       solaris (http://10.134.6.21/solaris11/dev/)
E       O       java-nightly (http://bursrotst07.us.oracle.com/)

pkg version:
759f5da48062

Rinaldo


        


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
#!/usr/bin/python2.6

import gtk

if __name__ == '__main__':
        root_win = gtk.gdk.get_default_root_window()
        print "root window:", root_win 

        net_workarea_prop = gtk.gdk.atom_intern('_NET_WORKAREA')
        print "workarea prop", net_workarea_prop

        values = root_win.property_get(net_workarea_prop)
        print values
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to