>>>>> "Andrea" == Andrea Gavana <[EMAIL PROTECTED]> writes:

    Andrea> Hi Prabhu, I did exactly what you said. This is what I get

Not quite, you installed it to site-packages which I did not say. :-)

    Andrea> when I try to run the streamline.py:

    Andrea> getframeinfo lines, lnum = findsource(frame) File
    Andrea> "C:\Python25\lib\inspect.py", line 495, in findsource if
    Andrea> pat.match(lines[lnum]): break IndexError: list index out
    Andrea> of range

This is a Python bug.  Googling for "IndexError: list index out of
range inspect.py" is very helpful.  See here:

http://mail.zope.org/pipermail/zope/2005-September/161352.html
https://mail.enthought.com/pipermail/enthought-dev/2006-January/003233.html

    Andrea> By the way, I tried ti put the libraries inside my
    Andrea> site-packages, but obviously I can't compile the whole
    Andrea> enthought as I don't have SWIG. So I did also what you
    Andrea> meant (outside the site-packages):
[...]
    >> works, you are all set.  In fact you can also try out mayavi2
    >> if you have gotten this far.
    >> 
    >> cd ../mayavi/examples ./streamline.py

    Andrea> This doesn't work, with the error above. It's still not
    Andrea> very clear to me what actually I should do to *use*
    Andrea> mayavi, preferentially from the site-packages. As for my
    Andrea> configuration:

    Andrea> - Windows XP - Python 2.5 - wxPython 2.8.1.1 - numpy 1.0.1
    Andrea> - scipy 0.5.2

I don't know about wxPython 2.8.1.1 but I *guess* it should work fine.

It might also be better to post about this on
[EMAIL PROTECTED]  As you are aware enthought is
working on egg packages for the various components of ETS which are
apparently easier to maintain and work with.  eggs for Python2.5 are
available right now.  Check here:

 http://code.enthought.com/enstaller

Anyway, my suggestion to you is the following.  Remove the enthought
packages you installed in site-packages.  Remove all the *.pyc's in
your svn checkout.

del /s *.pyc *.pyd *.o 

ought to do the trick. 

Then follow what I said to build traits and TVTK.  Set the PYTHONPATH
and try again.  Please post any error messages you find.  I and others
use this on a day to day basis and it does work although I don't use
win32.

cheers,
prabhu


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to