rfarley3 / Kibana

Kibana 4 configuration index interaction (.kibana index control, import and export of config, dashboards, visualizations, searches)
MIT License
18 stars 15 forks source link

Unable to run the module #2

Closed catalinvr closed 8 years ago

catalinvr commented 8 years ago

Hello I unable to start the module. I have installed Python 2.7.11

Do you think that I need to downgrade the python version?

root@ip-10-13-166-157:/tmp/Kibana# python setup.py install
running install
running bdist_egg
running egg_info
creating kibana.egg-info
writing requirements to kibana.egg-info/requires.txt
writing kibana.egg-info/PKG-INFO
writing top-level names to kibana.egg-info/top_level.txt
writing dependency_links to kibana.egg-info/dependency_links.txt
writing entry points to kibana.egg-info/entry_points.txt
writing manifest file 'kibana.egg-info/SOURCES.txt'
reading manifest file 'kibana.egg-info/SOURCES.txt'
writing manifest file 'kibana.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/kibana
copying kibana/__main__.py -> build/lib/kibana
copying kibana/dotkibana.py -> build/lib/kibana
copying kibana/mapping.py -> build/lib/kibana
copying kibana/__init__.py -> build/lib/kibana
copying kibana/manager.py -> build/lib/kibana
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/kibana
copying build/lib/kibana/__main__.py -> build/bdist.linux-x86_64/egg/kibana
copying build/lib/kibana/dotkibana.py -> build/bdist.linux-x86_64/egg/kibana
copying build/lib/kibana/mapping.py -> build/bdist.linux-x86_64/egg/kibana
copying build/lib/kibana/__init__.py -> build/bdist.linux-x86_64/egg/kibana
copying build/lib/kibana/manager.py -> build/bdist.linux-x86_64/egg/kibana
byte-compiling build/bdist.linux-x86_64/egg/kibana/__main__.py to __main__.pyc
byte-compiling build/bdist.linux-x86_64/egg/kibana/dotkibana.py to dotkibana.pyc
byte-compiling build/bdist.linux-x86_64/egg/kibana/mapping.py to mapping.pyc
byte-compiling build/bdist.linux-x86_64/egg/kibana/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/kibana/manager.py to manager.pyc
  File "build/bdist.linux-x86_64/egg/kibana/manager.py", line 107
    print e.error
          ^
SyntaxError: invalid syntax

creating build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying kibana.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/kibana-0.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing kibana-0.1-py2.7.egg
Copying kibana-0.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding kibana 0.1 to easy-install.pth file
Installing dotkibana script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/kibana-0.1-py2.7.egg
Processing dependencies for kibana==0.1
Searching for requests
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.9.1
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz#md5=0b7f480d19012ec52bab78292efd976d
Processing requests-2.9.1.tar.gz
Writing /tmp/easy_install-gfc97i/requests-2.9.1/setup.cfg
Running requests-2.9.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gfc97i/requests-2.9.1/egg-dist-tmp-KzO04g
creating /usr/local/lib/python2.7/site-packages/requests-2.9.1-py2.7.egg
Extracting requests-2.9.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding requests 2.9.1 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/requests-2.9.1-py2.7.egg
Searching for argparse
Reading https://pypi.python.org/simple/argparse/
Best match: argparse 1.4.0
Downloading https://pypi.python.org/packages/source/a/argparse/argparse-1.4.0.tar.gz#md5=08062d2ceb6596fcbc5a7e725b53746f
Processing argparse-1.4.0.tar.gz
Writing /tmp/easy_install-4_d9kj/argparse-1.4.0/setup.cfg
Running argparse-1.4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4_d9kj/argparse-1.4.0/egg-dist-tmp-RQl1dv
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.orig' found anywhere in distribution
warning: no previously-included files matching '*.rej' found anywhere in distribution
no previously-included directories found matching 'doc/_build'
no previously-included directories found matching 'env24'
no previously-included directories found matching 'env25'
no previously-included directories found matching 'env26'
no previously-included directories found matching 'env27'
zip_safe flag not set; analyzing archive contents...
Moving argparse-1.4.0-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding argparse 1.4.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg
Searching for elasticsearch
Reading https://pypi.python.org/simple/elasticsearch/
Best match: elasticsearch 2.3.0
Downloading https://pypi.python.org/packages/source/e/elasticsearch/elasticsearch-2.3.0.tar.gz#md5=2550f3b51629cf1ef9636608af92c340
Processing elasticsearch-2.3.0.tar.gz
Writing /tmp/easy_install-eUtR8U/elasticsearch-2.3.0/setup.cfg
Running elasticsearch-2.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eUtR8U/elasticsearch-2.3.0/egg-dist-tmp-HwLbWG
warning: no files found matching 'elasticsearch/connection/esthrift/Rest-remote'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'test_elasticsearch'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
zip_safe flag not set; analyzing archive contents...
Moving elasticsearch-2.3.0-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding elasticsearch 2.3.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/elasticsearch-2.3.0-py2.7.egg
Searching for urllib3<2.0,>=1.8
Reading https://pypi.python.org/simple/urllib3/
Best match: urllib3 1.14
Downloading https://pypi.python.org/packages/source/u/urllib3/urllib3-1.14.tar.gz#md5=5e1407428ac33b521c71a7ac273b3847
Processing urllib3-1.14.tar.gz
Writing /tmp/easy_install-d_g9UC/urllib3-1.14/setup.cfg
Running urllib3-1.14/setup.py -q bdist_egg --dist-dir /tmp/easy_install-d_g9UC/urllib3-1.14/egg-dist-tmp-tHnS2F
warning: no previously-included files matching '*' found under directory 'docs/_build'
zip_safe flag not set; analyzing archive contents...
Moving urllib3-1.14-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding urllib3 1.14 to easy-install.pth file

Installed /usr/local/lib/python2.7/site-packages/urllib3-1.14-py2.7.egg
Finished processing dependencies for kibana==0.1
root@ip-10-13-166-157:/tmp/Kibana# python -m kibana --help
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 151, in _run_module_as_main
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/usr/local/lib/python2.7/runpy.py", line 109, in _get_module_details
    return _get_module_details(pkg_main_name)
  File "/usr/local/lib/python2.7/runpy.py", line 101, in _get_module_details
    loader = get_loader(mod_name)
  File "/usr/local/lib/python2.7/pkgutil.py", line 464, in get_loader
    return find_loader(fullname)
  File "/usr/local/lib/python2.7/pkgutil.py", line 474, in find_loader
    for importer in iter_importers(fullname):
  File "/usr/local/lib/python2.7/pkgutil.py", line 430, in iter_importers
    __import__(pkg)
  File "kibana/__init__.py", line 1, in <module>
    from .dotkibana import DotKibana  # noqa
  File "kibana/dotkibana.py", line 5, in <module>
    from .manager import KibanaManager
  File "kibana/manager.py", line 107
    print e.error
          ^
SyntaxError: invalid syntax
root@ip-10-13-166-157:/tmp/Kibana#

Thank you :)