Search This Blog

Loading...

Monday, September 13, 2010

Cassandra Browser - Chiton

 Cassandra browser chiton Installation: (Go direct to installation steps)
------------------------------------------------------

As we know Chiton is a GTK-based browser for Cassandra.

Errors Which generally encounters:
//Chiton client's bin directory copy chiton folder. to avoid
Traceback (most recent call last):
  File "chiton-client", line 6, in
    from chiton.viewer import ChitonViewer
ImportError: No module named chiton.viewer//


For
Traceback (most recent call last):
  File "bin\chiton-client", line 6, in
    from chiton.viewer import ChitonViewer
  File "E:\softwares\CassandraBrowser\driftx-chiton-bd91965\bin\chiton\viewer.py", line 2, in
    from telephus.client import CassandraClient
ImportError: No module named telephus.client


Traceback (most recent call last):
  File "bin\chiton-client", line 6, in
    from chiton.viewer import ChitonViewer
  File "E:\softwares\CassandraBrowser\driftx-chiton-bd91965\bin\chiton\viewer.py", line 14, in
    import gtk
  File "E:\softwares\CassandraBrowser\python\Lib\site-packages\gtk-2.0\gtk\__init__.py", line 40, in
    from gtk import _gtk
ImportError: DLL load failed: The specified module could not be found.


Traceback (most recent call last):
  File "bin\chiton-client", line 2, in
    from twisted.internet import gtk2reactor
  File "E:\softwares\CassandraBrowser\python\lib\site-packages\twisted\internet\gtk2reactor.py", line 35, in
    import gobject
ImportError: No module named gobject


Traceback (most recent call last):
  File "bin\chiton-client", line 6, in
    from chiton.viewer import ChitonViewer
  File "E:\softwares\CassandraBrowser\driftx-chiton-bd91965\bin\chiton\viewer.py", line 15, in
    import gtk.glade
ImportError: DLL load failed: The specified module could not be found.

Traceback (most recent call last):
  File "bin\chiton-client", line 6, in
    from chiton.viewer import ChitonViewer
  File "E:\softwares\CassandraBrowser\driftx-chiton-bd91965\bin\chiton\viewer.py", line 15, in
    import gtk.glade
ImportError: No module named glade


Well, for each error we need to install respective packages. But we can avoid these by using a systematic approach.

Use following steps:
----------------------
1. Install python on your system properly. (google it for binaries).
2. Now comes to dependencies, Albiet its mention in README doc but Here I'm listing it again:
       
 * Python 2.5 or later (We already done with it)
 * Twisted 8.1.0 or later 
 * Thrift (latest svn)     (Checkout from apache )
 * PyGTK 2.14 or later        (For this see below ***)
 * simplejson                    (For this see below ###)
 * Telephus (http://github.com/driftx/Telephus)

 [Note we'll also required zope module. download it from http://pypi.python.org/pypi/zope.interface#downloads .
 change extension from ".egg" to ".zip" -> extract it -> copy zope folder to /Lib/site-packages/ . ]
 

Twisted 8.1.0 or later Installation:
(hmm will suggest you to google with "twisted 10.1" will provide twisted matrix's link, here installable available & not much tricky)
After installation in any directory it'll copy there "Lib" and "Script" folder.
Goto "Lib" here you find "site-packages" inside you'll find required things copy those and paste it to :
/Lib/site-packages/

Done with twisted module


Thrift installation:'
-First python must be set in path .
then go to respective directory and run following "python setup.py install" will do work for you.

Verify with /Lib/site-packages/  directory. if thrift folder is not there then chk where it is created and paste here.

Done with Thrift part.


Now Skipping PyGTK part, that I'll take after Telephus and simplejson.

simplejson installation
It's a python module can be downloaded easily.
Now it comes with ".egg" extension (Here I'll not explain its history)
Do one thing change ".egg" to ".zip" and extract it. copy module folder to
/Lib/site-packages/

Done with simplejson part.


Telephus Installation
Path has given.
Download it, extract it.
Now go to respective directory and run following "python setup.py install" will do work for you.
Verify with /Lib/site-packages/  directory.
If respective folder is not there then chk where it is created and paste here.

Done with Telephus part.

PyGTK Installation (Note this is for windows installation)
Follow these steps:
1.Download GTK+ bundle with glade (Latest and stable) from http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/
(choose latest one)
2. Run downloaded exe.
3.Download PyGTK, PyCairo and PyGObject  and run them .
Done with PyGTK.
If this not work for you then go for detail help go to pygtk site and search for windows installation procedure.

Last thing to do ...
In Chiton directory copy "chiton" folder into "bin" folder

Now run following from chiton home directory.
"python bin\chiton-client"


Good Luck ... Give your feedback/inputs which can help me too.

2 comments:

  1. Take a look at PyPM, it enables you to easily install Python packages.
    Alas thrift isn't yet available on pypm... Compiling Thrift on Windows is a pain. Is there a place to get binaries ?
    Thanks.

    ReplyDelete
  2. Take a look at PyPM, it enables you to easily install Python packages.
    Alas thrift isn't yet available on pypm... Compiling Thrift on Windows is a pain. Is there a place to get binaries ?
    Thanks.

    ReplyDelete