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
High Availability Team, which is subscribed to ocfs2-tools in 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.
Status in “ocfs2-tools” package in Ubuntu:
Confirmed
Bug description:
Does not starting.
$ ocfs2console
** WARNING **: Trying to register gtype 'GMountMountFlags' as enum
when in fact it is of type 'GFlags'
** WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in
fact it is of type 'GFlags'
Traceback (most recent call last):
File "/usr/sbin/ocfs2console", line 38, in <module>
from ocfs2interface.console import main
File "/usr/lib/python2.7/dist-packages/ocfs2interface/console.py", line 23,
in <module>
from menu import Menu
File "/usr/lib/python2.7/dist-packages/ocfs2interface/menu.py", line 23, in
<module>
from pushconfig import pushconfig_ok
File "/usr/lib/python2.7/dist-packages/ocfs2interface/pushconfig.py", line
22, in <module>
import o2cb_ctl
File "/usr/lib/python2.7/dist-packages/ocfs2interface/o2cb_ctl.py", line
20, in <module>
from process import Process
File "/usr/lib/python2.7/dist-packages/ocfs2interface/process.py", line 20,
in <module>
import popen2
File "/usr/lib/python2.7/popen2.py", line 13, in <module>
DeprecationWarning, stacklevel=2)
DeprecationWarning: The popen2 module is deprecated. Use the subprocess
module.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: ocfs2console 1.6.3-4ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-10.18-generic 3.2.1
Uname: Linux 3.2.0-10-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
CrashCounter: 1
Date: Mon Jan 30 18:31:57 2012
ExecutablePath: /usr/sbin/ocfs2console
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64
(20111129.1)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python -W\ ignore::DeprecationWarning
/usr/sbin/ocfs2console
PythonArgs: ['/usr/sbin/ocfs2console']
SourcePackage: ocfs2-tools
Title: ocfs2console crashed with DeprecationWarning in
/usr/lib/python2.7/popen2.py: The popen2 module is deprecated. Use the
subprocess module.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocfs2-tools/+bug/923754/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-ha
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-ha
More help : https://help.launchpad.net/ListHelp