[pymvpa] searchlight demo clarification

Dornisch, John john.dornisch at scra.org
Mon Dec 8 13:59:22 UTC 2008


We were able to run the searchlight demo but upon completion we have found
the same results as stated in the original email in this thread.

So what we done.  
We had an ubuntu 8.0.4 i386 desktop installed and upon suggestion we found
that matplotlib version in 8.0.4 was a problem.  So instead of trying to
install a bunch of supporting software to upgrade matplotlib I went ahead
and installed a new Ubuntu version 8.10 with a new version of matplotlib.
After a few email exchanges I got all required packages installed and was
able to fire off the searchlight2.py demo.

But when it was completed the resulting images were empty again.


What can we be doing wrong?

I am open to installing any linux based distro that will make this setup
work.  


Thanks for any help.

John Dornisch
  


On 12/5/08 3:40 PM, "Yaroslav Halchenko" <debian at onerussian.com> wrote:

> 
> So, as John found out -- it was missing python-tk which is needed for
> interactive pylab sessions, and which I guess was replaced with one of
> the alternative backends at some point in the lifetime of the system ;-)
> 
> We might add an external check for python-tk in the cases of interactive
> sessions...
> 
> On Fri, 05 Dec 2008, john.dornisch at scra.org wrote:
> 
>>    FIXED..  Missing python-tk package.  searchlight is now running.
>>    Output below
>>    Thanks
>>    John
>>    My matplotlib test results
>>     sudo apt-cache policy python-matplotlib
>>    [sudo] password for user:
>>    python-matplotlib:
>>      Installed: 0.98.3-4ubuntu1
>>      Candidate: 0.98.3-4ubuntu1
>>      Version table:
>>     *** 0.98.3-4ubuntu1 0
>>            500 [1]http://us.archive.ubuntu.com intrepid/universe Packages
>>            100 /var/lib/dpkg/status
>>    Output
>>>>> import pylab as P
>>    Traceback (most recent call last):
>>      File "<stdin>", line 1, in <module>
>>      File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
>>        from matplotlib.pylab import *
>>      File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line
>>    249, in <module>
>>        from matplotlib.pyplot import *
>>      File "/usr/lib/python2.5/site-packages/matplotlib/pyplot.py", line
>>    75, in <module>
>>        new_figure_manager, draw_if_interactive, show = pylab_setup()
>>      File
>>    "/usr/lib/python2.5/site-packages/matplotlib/backends/__init__.py",
>>    line 23, in pylab_setup
>>        globals(),locals(),[backend_name])
>>      File
>>    "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py"
>>    , line 7, in <module>
>>        import Tkinter as Tk, FileDialog
>>      File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 41, in <module>
>>        raise ImportError, str(msg) + ', please install the python-tk
>>    package'
>>    ImportError: No module named _tkinter, please install the python-tk
>>    package




More information about the Pkg-ExpPsy-PyMVPA mailing list