openxenmanager icon indicating copy to clipboard operation
openxenmanager copied to clipboard

OpenXenManager on OSx

Open kochen opened this issue 11 years ago • 10 comments

when running the latest code on OSx there are 2 worning and one error preventing it from running:

(process:40693): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
2014-10-16 18:13:49.661 Python[40693:d0b] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
Traceback (most recent call last):
  File "./openxenmanager", line 30, in <module>
    from OXM.window import oxcWindow
  File "./src/OXM/window.py", line 25, in <module>
    from configobj import ConfigObj
ImportError: No module named configobj

can someone help out with these issues?

kochen avatar Oct 16 '14 16:10 kochen

The first message I don't believe is of serious concern and can be safely ignored. For the second issue, you need to install ConfigObj (https://pypi.python.org/pypi/configobj/5.0.6)

ConfigObj may be available via another channel on Mac but I don't have a Mac to test that.

TwoWheelDev avatar Oct 16 '14 16:10 TwoWheelDev

thanks, I've managed to install ConfigObj. (might be a good idea to give the link in the "requirements" section)

now I'm facing this:

    import six
ImportError: No module named six

kochen avatar Oct 16 '14 17:10 kochen

and after installing six (https://pypi.python.org/pypi/six/):

(process:40883): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.
2014-10-16 19:20:02.275 Python[40883:d0b] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Not-Rotated 12", falling back to "Sans Not-Rotated 12", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: failed to choose a font, expect ugly output. engine-type='PangoRenderATSUI', script='common'
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI 12", falling back to "Sans 12", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Bold Not-Rotated 12", falling back to "Sans Bold Not-Rotated 12", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Bold Not-Rotated 11.71875", falling back to "Sans Bold Not-Rotated 11.71875", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Bold Ultra-Condensed Not-Rotated 12", falling back to "Sans Bold Ultra-Condensed Not-Rotated 12", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font "Sans Bold Ultra-Condensed Not-Rotated 12", falling back to "Sans Not-Rotated 12", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Not-Rotated 7.8125", falling back to "Sans Not-Rotated 7.8125", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Semi-Bold Not-Rotated 7.8125", falling back to "Sans Semi-Bold Not-Rotated 7.8125", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Not-Rotated 12.6953125", falling back to "Sans Not-Rotated 12.6953125", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Not-Rotated 14.6484375px", falling back to "Sans Not-Rotated 14.6484375px", expect ugly output.
  self.builder.add_from_file(g_file)
./src/OXM/window.py:187: PangoWarning: couldn't load font ".Lucida Grande UI Bold Not-Rotated 14.6484375px", falling back to "Sans Bold Not-Rotated 14.6484375px", expect ugly output.
  self.builder.add_from_file(g_file)
local Python[40883] <Error>: clip: empty path.
local Python[40883] <Error>: clip: empty path.
local Python[40883] <Error>: clip: empty path.
Traceback (most recent call last):
  File "./openxenmanager", line 34, in <module>
    wine = oxcWindow()
  File "./src/OXM/window.py", line 235, in __init__
    None, ["addserver", "connectall", "disconnectall"], None]))
TypeError: value is of wrong type for this column
Exiting...

kochen avatar Oct 16 '14 17:10 kochen

This should now be fixed in the master branch with commit 8903224. I am working to resolve the other errors

See also #41

TwoWheelDev avatar Oct 17 '14 14:10 TwoWheelDev

Thanks, first time the GUI actually loads.

besides the font issue, I still get some:

Python[2244] <Error>: clip: empty path.

kochen avatar Oct 19 '14 14:10 kochen

Yes... I saw them too... but I've not been able to work out what the cause is

TwoWheelDev avatar Oct 20 '14 10:10 TwoWheelDev

on OSX (Yosemite here) you can add the following to directions:

  • grab PyGTK 2.24.0 from http://macpkg.sourceforge.net
  • to get rid of the python2 not found: sudo ln -sf /usr/bin/python2.7 /usr/bin/python2
  • to install configobj sudo easy_install pip sudo pip install configobj

The GUI now loads, I have the same <Error>: clip: empty path that was previously reported and the following when attempting to connect:

http://xenserv2:80
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./src/OXM/oxcSERVER_addserver.py", line 65, in connect_server
    self.emit("connect-failure", sys.exc_info()[1])
TypeError: could not convert type gaierror to gchararray required for parameter 0

fhorlaville avatar Dec 30 '14 12:12 fhorlaville

Hi!, I'm running openxenmanager on OSX Yosemite and when I try to run some VM I'm getting this trace:

Entering event loop
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/oxcSERVER.py", line 1887, in <lambda>
    self.all_vms[self.track_tasks[event["ref"]]]["name_label"],
KeyError: 'OpaqueRef:4b61ca8f-93ca-4e08-8341-bf36b3c6e2e3'
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/oxcSERVER.py", line 1887, in <lambda>
    self.all_vms[self.track_tasks[event["ref"]]]["name_label"],
KeyError: 'OpaqueRef:4b61ca8f-93ca-4e08-8341-bf36b3c6e2e3'
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/oxcSERVER.py", line 1887, in <lambda>
    self.all_vms[self.track_tasks[event["ref"]]]["name_label"],
KeyError: 'OpaqueRef:4b61ca8f-93ca-4e08-8341-bf36b3c6e2e3'
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/oxcSERVER.py", line 1887, in <lambda>
    self.all_vms[self.track_tasks[event["ref"]]]["name_label"],
KeyError: 'OpaqueRef:6711e662-2ade-c145-0e93-37319ac78a45'

ofqwx avatar Feb 06 '15 13:02 ofqwx

fhorlaville: Your 'configobj' instructions were right on the money.

After installing pip and then using it to install configobj, I'm looking at an OpenXen gui !!

RDeYoung avatar Jul 02 '15 21:07 RDeYoung

@ofqwx @fhorlaville @kochen Please follow my tutorial, i hope it works, https://github.com/OpenXenManager/openxenmanager/issues/107 Also the Tutorial works for MacOSX Yosemite, only ignore the part of Tiger-VNC, since TigerVNC is not oficial supported in MacOSX El Captain

ovflowd avatar Jun 20 '16 18:06 ovflowd