Possible temporary solution found on opensuse forums related to same problem
edit the ocfs2console
and comment out the four marked lines (-->)

#!/usr/bin/python -W ignore::DeprecationWarning

from ocfs2interface.about import process_args
nodeconf = process_args()

#
# Current pygtk treats no DISPLAY as a WARNING.  This means that
# pygtk initialization tries to continue even after gtk_init() has failed.
# All sorts of fun ensues.  To prevent this, we turn the warning into an
# error for the duration of gtk initialization.
#
# Originally reported as Novell bugzilla #448523.
#
-->#import warnings
-->#warnings.filterwarnings("error")

# Ignore the depreciation warning that popen2 will raise when it is imported.
# FIXME: Pending conversion to subprocess module.
-->#warnings.simplefilter("ignore", DeprecationWarning)

try:
    import gtk
except Exception, e:
    import sys
    if str(e).lower().find('display') == -1:
        print >>sys.stderr, '''ERROR: Unable to initialize the windowing
system: %s\n''' % e
    else:
        print >>sys.stderr, '''ERROR: ocfs2console needs an X11 display.
Make sure a proper setup for your display environment exists.\n'''
    sys.exit(1)
-->#warnings.filters.pop(0)


link to original OpenSuse article
http://forums.opensuse.org/english/get-technical-help-here/applications/455879-ocfs2console-doesnt-work-under-11-4-x86_64-a.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/923754

Title:
  ocfs2console crashed with DeprecationWarning in
  /usr/lib/python2.7/popen2.py: The popen2 module is deprecated.  Use
  the subprocess module.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/923754/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to