The current installation instructions on a fresh NeuroDebian machine lead to the following:
brain@neurodebian:~/nibabel$ connectomeviewer -v
INFO - root - *****
INFO - root - logfile: /home/brain/.enthought/ch.connectome.viewer/cviewer.log
INFO - root - cviewer version: 2.0.0-RC1
INFO - root - python executable: /usr/bin/python
INFO - root - python version: 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5]
INFO - root - uname: Linux neurodebian 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64
INFO - root - distribution: debian 6.0.1
INFO - root - execution date and time: Sunday, 17. April 2011 06:44PM
INFO - root - *****
INFO - root - Plugins
INFO - root - *******
INFO - root - Added ConnectomeFile2Plugin
INFO - root - Added CViewerUIPlugin
INFO - root - Added BindingsPlugin
INFO - root - Added Oracle Plugin
INFO - root - Added sLORETA Converter Plugin
INFO - root - Added Network Based Statistics (NBS) Plugin
INFO - root - Added Diffusion in Python (DiPy) Plugin
Exception occurred in traits notification handler.
Please check the log file for details.
Exception occurred in traits notification handler for object: , trait: active_perspective, old value: None, new value: Perspective(cviewer.perspective.viewer_perspective)
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/enthought/traits/trait_notifiers.py", line 358, in call_3
self.handler( object, old, new )
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/workbench_window.py", line 812, in _active_perspective_changed
self._show_perspective(old, new)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/workbench_window.py", line 748, in _show_perspective
self.layout.set_view_memento(view_memento)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/workbench/workbench_window_layout.py", line 268, in set_view_memento
self._wx_view_dock_window.set_structure(memento, handler)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/workbench/workbench_dock_window.py", line 151, in set_structure
sizer.SetStructure(self.control.GetParent(), structure, handler)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/dock/dock_sizer.py", line 3972, in SetStructure
control = handler.resolve_id( id )
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/workbench/view_set_structure_handler.py", line 59, in resolve_id
view = window.get_view_by_id(id)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/workbench_window.py", line 466, in get_view_by_id
for view in self.views:
File "/usr/lib/python2.6/dist-packages/enthought/envisage/ui/workbench/workbench_window.py", line 155, in _views_default
return [factory(window=self) for factory in self._views]
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/cff_plugin.py", line 100, in _cfile_view_factory
from cviewer.plugins.cff2.ui.cff_view import CFFView
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/ui/cff_view.py", line 20, in
from cviewer.plugins.cff2.cfile import CFile
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/cfile.py", line 20, in
from csurface import CSurface
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/csurface.py", line 19, in
from cviewer.plugins.cff2.csurface_darray import CSurfaceDarray
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/csurface_darray.py", line 18, in
from nibabel.gifti.util import intent_codes
ImportError: cannot import name intent_codes
Traceback (most recent call last):
File "/usr/local/bin/connectomeviewer", line 4, in
main()
File "/usr/local/lib/python2.6/dist-packages/cviewer/run.py", line 88, in main
cviewer.main(sys.argv[1:])
File "/usr/local/lib/python2.6/dist-packages/cviewer/app.py", line 304, in main
self.application.run()
File "/usr/local/lib/python2.6/dist-packages/cviewer/cviewer_workbench_application.py", line 74, in run
window.open()
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/workbench_window.py", line 144, in open
self._create()
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/application_window.py", line 157, in _create
self._create_trim_widgets(self.control)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/i_application_window.py", line 104, in _create_trim_widgets
self._create_menu_bar(parent)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/application_window.py", line 92, in _create_menu_bar
menu_bar = self.menu_bar_manager.create_menu_bar(parent)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/action/menu_bar_manager.py", line 31, in create_menu_bar
parent, controller=controller
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/action/menu_bar_manager.py", line 49, in create_menu_bar
menu = item.create_menu(parent, controller)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/action/menu_manager.py", line 58, in create_menu
return _Menu(self, parent, controller)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/action/menu_manager.py", line 110, in __init__
self.refresh()
File "/usr/lib/python2.6/dist-packages/enthought/pyface/ui/wx/action/menu_manager.py", line 151, in refresh
for group in manager.groups:
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/action/view_menu_manager.py", line 70, in _groups_default
self._view_group = self._create_view_group(self.window)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/action/view_menu_manager.py", line 124, in _create_view_group
self._initialize_view_group(window, group)
File "/usr/lib/python2.6/dist-packages/enthought/pyface/workbench/action/view_menu_manager.py", line 131, in _initialize_view_group
views = window.views[:]
File "/usr/lib/python2.6/dist-packages/enthought/envisage/ui/workbench/workbench_window.py", line 155, in _views_default
return [factory(window=self) for factory in self._views]
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/cff_plugin.py", line 100, in _cfile_view_factory
from cviewer.plugins.cff2.ui.cff_view import CFFView
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/ui/cff_view.py", line 20, in
from cviewer.plugins.cff2.cfile import CFile
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/cfile.py", line 20, in
from csurface import CSurface
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/csurface.py", line 19, in
from cviewer.plugins.cff2.csurface_darray import CSurfaceDarray
File "/usr/local/lib/python2.6/dist-packages/cviewer/plugins/cff2/csurface_darray.py", line 18, in
from nibabel.gifti.util import intent_codes
ImportError: cannot import name intent_codes
It looks like a very specific version of nibabel is required. The official 1.0.2 release does not have intent_codes in nibabel.gifti.util, and it was recently moved in the dev branch ( nipy/nibabel@02310a5 ). Using the dev version from one commit before this seems to work:
git clone https://github.com/nipy/nibabel.git
cd nibabel
git checkout 2d3eae006
sudo python setup.py install
connectomeviewer -v