Just an update... it seems like the whole thing does not like me
having the package "PIL" (Python Imaging Library) in the
site-packages. So I re-did what you said outside the site-packages and
this is what I get now:
C:\Documents and
Settings\Andrea\Desktop\mayavi\src\lib\enthought>mayavi\examples\streamline.py
Traceback (most recent call last):
File "C:\Documents and
Settings\Andrea\Desktop\mayavi2\src\lib\enthought\mayavi\examples\streamline.py",
line 13, in <module>
from enthought.mayavi.sources.vtk_xml_file_reader import VTKXMLFileReader
ImportError: No module named enthought.mayavi.sources.vtk_xml_file_reader
I think I'll give up. It's a pity, I loved mayavi in the past, and I
had a couple of strong things to test on it, but it is way too
complicated to set up, at least on Windows. I apologize if I run
Windows, but it's the only platform I can use.
Andrea.
On 1/26/07, Andrea Gavana <[EMAIL PROTECTED]> wrote:
> Hi Prabhu,
>
> I did exactly what you said. This is what I get when I try to run
> the streamline.py:
>
> C:\Python25\Lib\site-packages\enthought\mayavi\examples>streamline.py
> Traceback (most recent call last):
> File "C:\Python25\Lib\site-packages\enthought\mayavi\examples\streamline.py",
> line 13, in <module>
> from enthought.mayavi.sources.vtk_xml_file_reader import VTKXMLFileReader
> File
> "C:\Python25\Lib\site-packages\enthought\mayavi\sources\vtk_xml_file_read
> er.py", line 11, in <module>
> from enthought.traits.api import Trait, Instance, List, Str
> File "C:\Python25\Lib\site-packages\enthought\traits\api.py", line 20, in
> <mod
> ule>
> from enthought.traits.ui \
> File "C:\Python25\Lib\site-packages\enthought\traits\ui\__init__.py", line
> 69,
> in <module>
> from tree_node \
> File "C:\Python25\Lib\site-packages\enthought\traits\ui\tree_node.py", line
> 39
> , in <module>
> from enthought.resource \
> File "C:\Python25\lib\site-packages\PIL\__init__.py", line 15, in <module>
>
> File "enthought\resource\resource_manager.py", line 33, in <module>
> File "enthought\resource\resource_reference.py", line 24, in <module>
> File "enthought\resource\resource_reference.py", line 33, in
> ResourceReference
>
> File "C:\Python25\Lib\site-packages\enthought\traits\traits.py", line 928, in
> Instance
> module = stack(1)[1][0].f_globals.get( '__name__' ) )
> File "C:\Python25\lib\inspect.py", line 870, in stack
> return getouterframes(sys._getframe(1), context)
> File "C:\Python25\lib\inspect.py", line 851, in getouterframes
> framelist.append((frame,) + getframeinfo(frame, context))
> File "C:\Python25\lib\inspect.py", line 826, in getframeinfo
> lines, lnum = findsource(frame)
> File "C:\Python25\lib\inspect.py", line 495, in findsource
> if pat.match(lines[lnum]): break
> IndexError: list index out of range
>
> By the way, I tried ti put the libraries inside my site-packages, but
> obviously I can't compile the whole enthought as I don't have SWIG. So
> I did also what you meant (outside the site-packages):
>
> > 2. cd enthought/src/lib/enthought/traits
> > python setup.py build_ext --inplace
> >
> > 3. cd ../tvtk
> > python setup.py build_ext --inplace
> >
> > 4. export PYTHONPATH=$PYTHONPATH:path/to/enthought/src/lib
>
> I didn't have a PYTHONPATH variable set: I am on Windows XP, and I did
> the equivalent of this on Windows XP.
>
> > 5. If this command:
> >
> > python -c "from enthought.tvtk.api import tvtk"
>
> This works. I mean, it doesn't throw any error.
>
> > works, you are all set. In fact you can also try out mayavi2 if
> > you have gotten this far.
> >
> > cd ../mayavi/examples
> > ./streamline.py
> >
>
> This doesn't work, with the error above. It's still not very clear to
> me what actually I should do to *use* mayavi, preferentially from the
> site-packages. As for my configuration:
>
> - Windows XP
> - Python 2.5
> - wxPython 2.8.1.1
> - numpy 1.0.1
> - scipy 0.5.2
>
> Uhm... what else? I think it's all. I am surely missing something. :-(
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>
--
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
-------------------------------------------------------------------------
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