Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Start Openxenmanager OSX Sierra #127

Open
godzilla74 opened this issue Oct 28, 2016 · 8 comments
Open

Can't Start Openxenmanager OSX Sierra #127

godzilla74 opened this issue Oct 28, 2016 · 8 comments

Comments

@godzilla74
Copy link

Followed instructions at: #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?

@ovflowd
Copy link

ovflowd commented Oct 28, 2016

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

@ovflowd
Copy link

ovflowd commented Dec 7, 2016

Waiting your answer.

@juito
Copy link

juito commented Dec 9, 2016

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

@oytunistrator
Copy link

oytunistrator commented Jan 5, 2017

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)

@ovflowd
Copy link

ovflowd commented Jan 5, 2017

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

@bhanderson
Copy link

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

@mdigga39
Copy link

mdigga39 commented Apr 26, 2017

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

@sweendogg007
Copy link

sweendogg007 commented May 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants