[pymvpa] What's up with NameError message?

Glen Lee glen.lee02 at gmail.com
Fri Mar 4 15:27:42 UTC 2011


Here is what I got after typing those two lines.


--------------------------------------------
Current date:   2011-03-04 10:24
PyMVPA:
 Version:       0.4.5
 Path:          /usr/lib/pymodules/python2.6/mvpa/__init__.pyc
 Version control (GIT):
 GIT information could not be obtained due
"/usr/lib/pymodules/python2.6/mvpa/.. is not under GIT"
SYSTEM:
 OS:            posix Linux 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2
00:51:09 UTC 2010
 Distribution:  Ubuntu/10.04/lucid
EXTERNALS:
 Present:       cPickle, ctypes, good scipy.stats.rv_discrete.ppf, griddata,
gzip, libsvm, libsvm verbosity control, matplotlib, mdp, mdp ge 2.4, nifti,
nifti ge 0.20090205.1, numpy, pylab, pylab plottable, pywt, pywt wp
reconstruct, reportlab, running ipython env, scipy, sg ge 0.6.4,
sg_fixedcachesize, shogun, shogun.krr, shogun.mpd
 Absent:        atlas_fsl, atlas_pymvpa, elasticnet, glmnet, good
scipy.stats.rdist, hcluster, lars, lxml, nose, openopt, pywt wp reconstruct
fixed, rpy, shogun.lightsvm, shogun.svrlight, weave
 Versions of critical externals:
  ctypes      : 1.1.0
  matplotlib  : 0.99.1.1
  nifti       : 0.20100607.1
  numpy       : 1.3.0
  pywt        : 0.1.7
  scipy       : 0.7.0
  shogun      : v0.9.1_r4481_2009-11-16_10:14_
 Matplotlib backend: TkAgg
RUNTIME:
 PyMVPA Environment Variables:
  PYTHONPATH          : ".:/jet/kimberg/pymvpa"
 PyMVPA Runtime Configuration:
  [externals]
  have griddata = yes
  have good scipy.stats.rdist = no
  have pylab plottable = yes
  have pywt wp reconstruct = yes
  have mdp = yes
  have lxml = no
  have running ipython env = yes
  have sg_fixedcachesize = yes
  have elasticnet = no
  have shogun.mpd = yes
  have matplotlib = yes
  have pywt wp reconstruct fixed = no
  have scipy = yes
  have reportlab = yes
  have openopt = no
  have libsvm = yes
  have shogun.krr = yes
  have nifti ge 0.20090205.1 = yes
  have nose = no
  have weave = no
  have atlas_fsl = no
  have ctypes = yes
  have hcluster = no
  have sg ge 0.6.4 = yes
  have good scipy.stats.rv_discrete.ppf = yes
  have libsvm verbosity control = yes
  have mdp ge 2.4 = yes
  have shogun.svrlight = no
  have rpy = no
  have shogun = yes
  have glmnet = no
  have lars = no
  have nifti = yes
  have atlas_pymvpa = no
  have cpickle = yes
  have numpy = yes
  have pylab = yes
  have shogun.lightsvm = no
  have pywt = yes
  have gzip = yes

  [general]
  verbose = 1
 Process Information:
  Name:    ipython
  State:    R (running)
  Tgid:    8101
  Pid:    8101
  PPid:    8100
  TracerPid:    0
  Uid:    2136    2136    2136    2136
  Gid:    1001    1001    1001    1001
  FDSize:    64
  Groups:    1001
  VmPeak:      393752 kB
  VmSize:      393724 kB
  VmLck:           0 kB
  VmHWM:       65644 kB
  VmRSS:       65644 kB
  VmData:       57724 kB
  VmStk:         200 kB
  VmExe:        2160 kB
  VmLib:       63240 kB
  VmPTE:         728 kB
  Threads:    2
  SigQ:    0/16382
  SigPnd:    0000000000000000
  ShdPnd:    0000000000000000
  SigBlk:    0000000000000000
  SigIgn:    0000000001001000
  SigCgt:    0000000180000002
  CapInh:    0000000000000000
  CapPrm:    0000000000000000
  CapEff:    0000000000000000
  CapBnd:    ffffffffffffffff
  Cpus_allowed:    ff
  Cpus_allowed_list:    0-7
  Mems_allowed:    00000000,00000001
  Mems_allowed_list:    0
  voluntary_ctxt_switches:    752
  nonvoluntary_ctxt_switches:    130


In [4]: can't invoke "event" command:  application has been destroyed
    while executing
"event generate $w <<ThemeChanged>>"
    (procedure "ttk::ThemeChanged" line 6)
    invoked from within
"ttk::ThemeChanged"
invalid command name "71539040callit"
    while executing
"71539040callit"
    ("after" script)



On Fri, Mar 4, 2011 at 10:22 AM, Yaroslav Halchenko
<debian at onerussian.com>wrote:

> no problem -- start python, type
>
> import mvpa
> mvpa.wtf()
>
> send me the output -- better to the mailing list
>
> cheers,
>
> On Fri, 04 Mar 2011, Glen Lee wrote:
>
> >    Yes. That's the tutorial that I downloaded.
> >    I've tried mvpa.wtf(), but nothing happened.
> >    Where should I type? in the shell or in the ipython?
> >    Sorry, I'm also novice for linux & python.
>
> >    On Thu, Mar 3, 2011 at 9:30 PM, Yaroslav Halchenko
> >    <[1]debian at onerussian.com> wrote:
>
> >      and what tutorial version do you use?
> >      this one?
> >      [2]
> http://data.pymvpa.org/datasets/tutorial_data/tutorial_data-0.2.t
> >      ar.gz
> >      still, just to make sure (if it is the correct tutorial):
> >      what is the output of mvpa.wtf()?
>
> >    On Thu, 03 Mar 2011, Glen Lee wrote:
>
> >    >    Hi Yarik,
> >    >    It's the most recent version 0.6.
> >    >    Where can I cget the tutorial for this version?
> >    >    On Thu, Mar 3, 2011 at 7:14 PM, Yaroslav Halchenko
>
> >    >    <[1][3]debian at onerussian.com> wrote:
> >    >      what version of PyMVPA do you have available
> >    >      just provide output of
> >    >      mvpa.wtf()
> >    >      to possibly eliminate other questions.
> >    >      if it is PyMVPA 0.4.x -- then it is the 'stable' one, and the
> >    >      tutorial was crafted for the yet-to-be-released 0.5->0.6
> series,
> >    so
> >    >      you
> >    >      would need to get that one
> >    >    On Thu, 03 Mar 2011, Glen Lee wrote:
> >    >    >    Hello,
> >    >    >    Thanks for your answer for the previous inquiry.
> >    >    >    I'm stuck again in the very next command of the tutorial
> page
> >    and
> >    >    again
> >    >    >    have no clue about this error.
> >    >    >    Your help would be appreciated.
> >    >    >    -Glen
> >    >    >    In [3]: ds=get_haxby2001_data()
> >    >    >    ------------------------------
> >    >    >    ---------------------------------------------
> >    >    >    NameError                                 Traceback (most
> >    recent
> >    >    call
> >    >    >    last)
> >    >    >    /home/Glen/Downloads/tutorial_data/<ipython console> in
> >    <module>()
> >    >    >    /home/Glen/Downloads/tutorial_data/tutorial_lib.pyc in
> >    >    >    get_haxby2001_data(path, roi)
> >    >    >         42 def get_haxby2001_data(path=None, roi='vt'):
> >    >    >         43     if path is None:
> >    >    >    ---> 44         ds = get_raw_haxby2001_data(roi=roi)
> >    >    >         45     else:
> >    >    >         46         ds = get_raw_haxby2001_data(path, roi=roi)
> >    >    >    /home/Glen/Downloads/tutorial_data/tutorial_lib.pyc in
> >    >    >    get_raw_haxby2001_data(path, roi)
> >    >    >         37         return ds
> >    >    >         38     else:
> >    >    >    ---> 39         return load_datadb_demo_blockfmri(path=path,
> >    >    roi=roi)
> >    >    >         40
> >    >    >         41
> >    >    >    NameError: global name 'load_datadb_demo_blockfmri' is not
> >    defined
> >    >      > _______________________________________________
> >    >      > Pkg-ExpPsy-PyMVPA mailing list
>
> >      >      > [2][4]Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
>
> >      [3][5]
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pym
> >      vpa
> --
> =------------------------------------------------------------------=
> Keep in touch                                     www.onerussian.com
> Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20110304/6a5bc41d/attachment.htm>


More information about the Pkg-ExpPsy-PyMVPA mailing list