traits api

220 views
Skip to first unread message

Rudolph Pienaar

unread,
Jan 25, 2012, 1:46:31 PM1/25/12
to cmtk-users
Hi all --

I posted yesterday about issues with running the connectomemapper on a
new "clean" Ubuntu 11.10 install.

Firstly, just to be certain, does the 'cmp' run on 11.10? The
installation instructions at http://www.connectomics.org/connectomemapper/installation.html
only talk about Ubuntu/Debian, but make no mention of which version.
Certainly, some of the package names on that page seems to have
changed with Ubuntu 11.10...

With Ubuntu 12.04 just around the corner, it would be a shame if 'cmp'
is currently locked to an aging version of Ubuntu. (FWIW, I haven't
had success running it on Ubuntu 11.04 either). The issue really seems
related to a change in the enthought API.

Since yesterday, I have made some progress, but would *really*
appreciate any help.

I did a naive replacement of all references to "enthought.traits.api"
with simply "traits.api" in all python source in the 'cmp' dir:

for FILE in *.py ; do sed -i.bak 's/\(.*\)enthought.traits.api\(.*
\)/\1traits.api\2/' $FILE; done

This seemed to work. But alas, next up, connectomemapper complains:

cmp_1.2.0/cmp$>connectomemapper
Traceback (most recent call last):
File "/chb/arch/python/cmp_1.2.0/scripts/connectomemapper", line 6,
in <module>
from cmp.gui import CMPGUI
File "/chb/arch/python/cmp_1.2.0/cmp/gui.py", line 16, in <module>
from enthought.traits.ui.api import View, Item, HGroup, Handler, \
ImportError: No module named enthought.traits.ui.api

This time 'enthought.traits.ui.api', and the problem seems more
pronounced: the enthought.traits.ui.api is now traitsui, and the
modules' names are also different (with smallcase namespaces). Looks
like this line should be:

from traitsui import view, item, handler

but I couldn't find a quick replacement for HGroup... either. It
really seems as if more work is required.

Again, I'd be really happy if someone could directly confirm on which
versions of Ubuntu the toolkit currently runs. It'd be a shame for our
group to revert back to our old 0.9.x version that does in fact work
on Ubuntu 11.04 and 11.10.

Thanks
Rudolph





Pedro Costa del Amo

unread,
Mar 30, 2013, 8:14:47 AM3/30/13
to cmtk-...@googlegroups.com
Hi all,

I'm facing now the very same problem as rudolph did some time ago. How did you finally solve it? Any help would be appreciated.

Best,


Pedro
Reply all
Reply to author
Forward
0 new messages