[pymvpa] InteractiveShell object
Yaroslav Halchenko
debian at onerussian.com
Tue Feb 26 16:32:48 UTC 2013
On Tue, 26 Feb 2013, Abduljalil Sireis wrote:
> On Tue, Feb 26, 2013 at 11:15 AM, Yaroslav Halchenko
> <[1]debian at onerussian.com> wrote:
> On Tue, 26 Feb 2013, Abduljalil Sireis wrote:
> > � �1. I included all the script output
> eh -- you seems to be 1 line short of to provide a complete picture...
> how do you invoke this script? like
> ipython test.py
> ?
> i wrote in the terminal ./test.py�
ah, ok
what is the output of
head ./test.py # in your shell
then ?
> what would happen if you just start ipython first and then while in
> interactive shell you type
> %run test.py
> ?
> i did, and got
> AttributeError: 'module' object has no attribute 'embed'
> WARNING: Failure executing file: <test.py>
and nothing before that???
> �what happens if you run it with pure python, not ipython, i.e.
> python test.py
> ?
> AttributeError: 'module' object has no attribute 'embed'
so the same (thus not ipython-dependent), good
> > � �2. output of�print mvpa2.wtf()
> that should be ran in (i)python interpreter (e.g. just start ipython,
> and
> then type
> mvpa2.wtf()
> )
> > � �bash: syntax error near unexpected token `('
> �NameError: name 'mvpa2' is not defined
;) ok -- first enter
import mvpa2
in that ipython shell and only then 'print mvpa2.wtf()' -- if you need
to use something from module X, you need to "import" it first -- abc of
Python
--
Yaroslav O. Halchenko
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Postdoctoral Fellow, Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
More information about the Pkg-ExpPsy-PyMVPA
mailing list