sserebrinsky | 1 Sep 2008 03:20
Picon

Re: Problems executing MayaVi2

Hi Prabhu

If alternatively I successfully do

  > easy_install ETS[nonets]

would it be easy later on to uninstall packages (eggs) not needed by
MayaVi, such that no other dependencies are broken? I am not familiar
at all with python eggs, but they seem to be very similar to RPMs.

Cheers,

Santiago

On Sun, Aug 31, 2008 at 12:47 PM, Prabhu Ramachandran
<prabhu@...> wrote:
> Hi,
>
> sserebrinsky@... wrote:
>> I also think that the problem is essentially finding vtk. I did before
>> the attempt of "import vtk" from a python prompt, and it does not
>> work. To help solving the issue, I am including below the list of
>> files that I have in my mayavi (ver 1.5) and vtk directories, taken as
>> the output from
>>   [MayaVi]$ find . > ../mayavi-filelist.txt
>>   [VTK 5.2]$ find . > ../vtk-filelist.txt
>> What I found is that someone already had a problem with "import vtk"
>> but that bug was solved. Anyway, that led me to observing that my vtk
>> does not have a directory "Wrapping", which is perhaps necessary to
>> have the python wrappers (this led me to trying pyvtk, to no avail, of
>> course). That directory is in the source code file vtk-5.2.0.zip, but
>> I simply installed the VTK package for Windows from vtk.org, and
>> "Wrappers" is not there. What is strange is that MayaVi1.5 does not
>> need it. MayaVi1.5 was installed from MayaVi-setup-1.5.exe, from
>> sourceforge, in a directory outside Python.
>
> The mayavi-setup.exe installs its own Python and various other
> libraries.  Installing that does not mean you have VTK installed with
> your version of Python.  That is your problem here.
>
> The easiest way to get everything installed would be to try out either
> Enthought's EPD:
>
> http://www.enthought.com/products/epd.php  (get the beta release)
>
> Or Python(x,y):
>
> http://www.pythonxy.com/
>
> Otherwise you'll have to build and install VTK which is a non-trivial task.
>
>>   > easy_install Mayavi[nonets]
> [...]
>> error: Setup script exited with error: Python was built with Visual Studio 2003;
>> extensions must be built with a compiler than can generate compatible binaries.
>> Visual Studio 2003 was not found on this system. If you have Cygwin installed,
>> you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
>
> If you look here:
>
> https://svn.enthought.com/enthought/wiki/Install
>
> You'll see that this route requires several prerequisites to be
> installed which includes mingw or cygwin.
>
> cheers,
> prabhu
>
> _______________________________________________
> Enthought-dev mailing list
> Enthought-dev@...
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>

Gmane