Skip to content

error while running kmos view #53

@PGaneshIyer

Description

@PGaneshIyer

Expected behavior

I expected a GUI to pop up.

Actual behavior

Instead I got this error:

mac95467:myfirst_kmc_local_smart g5q$ kmos view
Warning: GTK not available. Cannot run graphical front-end
No module named gtk
Could not import matplotlib frontend for real-time plotting
Gtk* backend requires pygtk to be installed.
kiwi Validation not working.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
Error: numpy.core.multiarray failed to import
Could not find the kmc module. The kmc implements the actual
kmc model. This can be created from a kmos xml file using
kmos export
Hint: are you in a directory containing a compiled kMC model?

Traceback (most recent call last):
File "/usr/local/bin/kmos", line 21, in
main()
File "/Users/g5q/Library/Python/2.7/lib/python/site-packages/kmos/cli.py", line 425, in main
from kmos import view
File "/Users/g5q/Library/Python/2.7/lib/python/site-packages/kmos/view.py", line 59, in
class ParamSlider(gtk.HScale):
NameError: name 'gtk' is not defined

I have GTK, matplotlib installed. See below where I can load them when I fire-up ipython in the same terminal. I also have the *.so file in the directory:
mac95467:myfirst_kmc_local_smart g5q$ ls
kmc_model.so kmc_settings.py kmc_settings.pyc src

Any idea what the problem might be?

mac95467:myfirst_kmc_local_smart g5q$ ipython
Python 2.7.12 (default, Oct 11 2016, 14:42:58)
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy as np

In [2]: import scipy as sp

In [3]: import matplotlib as gp

In [4]: import pygtk as pg

In [5]:

Steps to reproduce the issue

System information

  • result of kmos version, operating system, version, python version, possibly link to model file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions