openxenmanager icon indicating copy to clipboard operation
openxenmanager copied to clipboard

Can't Start Openxenmanager OSX Sierra

Open godzilla74 opened this issue 9 years ago • 8 comments

Followed instructions at: https://github.com/OpenXenManager/openxenmanager/issues/107 with the exception of step 11-13 since I don't have a .conf file in the directory to edit. screen shot 2016-10-27 at 8 09 24 pm

When trying to run the command openxenmanager from terminal, I get:

Justins-iMac:openxenmanager-master godzilla74$ openxenmanager
Traceback (most recent call last):
  File "/usr/local/bin/openxenmanager", line 4, in <module>
    __import__('pkg_resources').run_script('openxenmanager==0.1b1', 'openxenmanager')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 742, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1667, in run_script
    exec(code, namespace, namespace)
  File "/Library/Python/2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/EGG-INFO/scripts/openxenmanager", line 23, in <module>
    import gtk
ImportError: No module named gtk

However gtk and all related are installed:

Justins-iMac:openxenmanager-master godzilla74$ brew install gtk
Warning: gtk+-2.24.31 already installed
Justins-iMac:openxenmanager-master godzilla74$ brew install pygtk
Warning: pygtk-2.24.0_1 already installed

What's wrong here?

godzilla74 avatar Oct 28 '16 00:10 godzilla74

You need create the .conf file. After installing and configuring like step 11-13, restart the PC.

ovflowd avatar Oct 28 '16 12:10 ovflowd

Waiting your answer.

ovflowd avatar Dec 07 '16 19:12 ovflowd

Tried above step same error in Sierra. Traceback (most recent call last): File "/usr/local/bin/openxenmanager", line 4, in import('pkg_resources').run_script('openxenmanager==0.1b1', 'openxenmanager') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 742, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/init.py", line 1667, in run_script exec(code, namespace, namespace) File "/Library/Python/2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/EGG-INFO/scripts/openxenmanager", line 23, in import gtk ImportError: No module named gtk

juito avatar Dec 09 '16 03:12 juito

Same error:

➜ openxenmanager git:(master) ./openxenmanager

(process:30631): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Traceback (most recent call last): File "./openxenmanager", line 32, in from OXM.window import oxcWindow File "/usr/local/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/window.py", line 25, in from configobj import ConfigObj ImportError: No module named configobj

and configobj installed;

Requirement already satisfied: configobj in /Library/Python/2.7/site-packages Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from configobj)

oytunistrator avatar Jan 05 '17 19:01 oytunistrator

@oytunistrator what is your main language at your OS X Sierra?

ovflowd avatar Jan 05 '17 22:01 ovflowd

Just a point of reference #107 worked for me with macOS Sierra 10.12.4

bhanderson avatar Apr 07 '17 21:04 bhanderson

Same Issue as above :/

OSX 10.12.4 Language is US - American English

I get to step 10 on #107 without issue. I am slightly confused about step 11. Please let me know.

Joes-MacBook-Pro:openxenmanager-master ghost$ ./openxenmanager 
Traceback (most recent call last):
  File "./openxenmanager", line 23, in <module>
    import gtk
ImportError: No module named gtk

As you can see, both are already installed:

Joes-MacBook-Pro:openxenmanager-master ghost$ brew install gtk
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
bullet                                                                                                 watchexec

Warning: gtk+-2.24.31_1 already installed
Joes-MacBook-Pro:openxenmanager-master ghost$ brew install pygtk
Warning: pygtk-2.24.0_1 already installed

mdigga39 avatar Apr 26 '17 17:04 mdigga39

I had the same problem with import gtk.

I uninstalled MAC version of Python, and uninstalled pygtk and gtk in home-brew and then installed them again, probably didn't need to do this though.

If you type "which python" in the terminal it should point to /usr/local/bin/python, this means the MAC is using the Home-brew install of python.

You might want to add "which python" CLI check to the guide to confirm that home-brew python is being used.

Hope this helps

sweendogg007 avatar May 20 '17 19:05 sweendogg007