No module named tvtk

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

No module named tvtk

Fernando Paolo
Hello,

I'm trying to use the TVTK package, but get the following error:

from enthought.tvtk.api import tvtk

ImportError                               Traceback (most recent call last)
/Users/fpaolo/python/pauloh-pyevtk-0d26e31ddc8d/src/examples/<ipython-input-1-b61d2a7a8cd1> in <module>()
----> 1 from enthought.tvtk.api import tvtk

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/enthought/tvtk/api.py in <module>()
      1 # proxy module

      2 from __future__ import absolute_import
----> 3 from tvtk.api import *

ImportError: No module named tvtk.api


I'm using Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, 11:14:05). Also, it seems hard to find up-to-date information about TVTK (and mayavi, for instance).

This site (no longer active):
https://svn.enthought.com/enthought/wiki/TVTK

Points to (active):
https://github.com/enthought/mayavi

And the README-tvtk.txt points to:
http://docs.enthought.com/mayavi/tvtk/

Which says: TVTK is meant to be installed as part of the enthought package. [and] This document only covers building and using TVTK from inside a checkout of the the enthought SVN repository.

So how can I use TVTK from a standard EPD installation? Or do I need to perform a separate installation?

Thank you,
-fernando


--
Fernando Paolo
Institute of Geophysics & Planetary Physics
Scripps Institution of Oceanography
University of California, San Diego

web: fspaolo.net

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: No module named tvtk

Didrik Pinte-2
Hi Fernando,

The answer is "simple" ;-)

ETS is not part of EPD 64bit on MacOS
(https://support.enthought.com/entries/23407541-Getting-Started-with-EPD-on-OS-X).
This is due to underlying graphics toolkit limitations.

The easiest solution is to run a 32bit Python on your Mac.

-- Didrik

On 3 July 2013 01:44, Fernando Paolo <[hidden email]> wrote:

> Hello,
>
> I'm trying to use the TVTK package, but get the following error:
>
> from enthought.tvtk.api import tvtk
>
> ImportError                               Traceback (most recent call last)
> /Users/fpaolo/python/pauloh-pyevtk-0d26e31ddc8d/src/examples/<ipython-input-1-b61d2a7a8cd1>
> in <module>()
> ----> 1 from enthought.tvtk.api import tvtk
>
> /Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/enthought/tvtk/api.py
> in <module>()
>       1 # proxy module
>
>       2 from __future__ import absolute_import
> ----> 3 from tvtk.api import *
>
> ImportError: No module named tvtk.api
>
>
> I'm using Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012,
> 11:14:05). Also, it seems hard to find up-to-date information about TVTK
> (and mayavi, for instance).
>
> This site (no longer active):
> https://svn.enthought.com/enthought/wiki/TVTK
>
> Points to (active):
> https://github.com/enthought/mayavi
>
> And the README-tvtk.txt points to:
> http://docs.enthought.com/mayavi/tvtk/
>
> Which says: TVTK is meant to be installed as part of the enthought package.
> [and] This document only covers building and using TVTK from inside a
> checkout of the the enthought SVN repository.
>
> So how can I use TVTK from a standard EPD installation? Or do I need to
> perform a separate installation?
>
> Thank you,
> -fernando
>
>
> --
> Fernando Paolo
> Institute of Geophysics & Planetary Physics
> Scripps Institution of Oceanography
> University of California, San Diego
>
> web: fspaolo.net
>
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>



--
Didrik Pinte                               +32 475 665 668
                                                +44 1223 969515
Enthought Europe                      [hidden email]
Scientific Computing Solutions   http://www.enthought.com

The information contained in this message is Enthought confidential &
not to be dissiminated to outside parties without explicit prior
approval from sender.  This message is intended solely for the
addressee(s), If you are not the intended recipient, please contact
the sender by return e-mail and destroy all copies of the original
message.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: No module named tvtk

Fernando Paolo-2
So I installed the EPD 32-bit. But can't find where the executables were placed. The "Getting Started" you provide is not very accurate. I don't see any folders like:

/Applications/EPD32
/Applications/EPD64

Instead what I have I:

/Applications/Enthought

Which refers to the 64-bit. Also, there is no:

/Library/Frameworks/Python.framework/Versions/epd-7.3-2

As the tutorial points out. Instead what I have is:

/Library/Frameworks/Python.framework/Versions/7.3

Now, inside that folder there is a `mayavi` application, which gives me an IDE with the EPD-32 (which means it is installed). But the `python` executables in the same folder refer to the EPD-64 version.

So where is exactly the EPD-32 installation placed? And how can I call (from the command line) the python 32-bit referent to EPD-32 (that will recognize any tvtk and mayavi imports)? Notice that I don't wanna deal with any GUI.

Thanks,
-fernando



On Wed, Jul 3, 2013 at 7:44 AM, Didrik Pinte <[hidden email]> wrote:
Hi Fernando,

The answer is "simple" ;-)

ETS is not part of EPD 64bit on MacOS
(https://support.enthought.com/entries/23407541-Getting-Started-with-EPD-on-OS-X).
This is due to underlying graphics toolkit limitations.

The easiest solution is to run a 32bit Python on your Mac.

-- Didrik

On 3 July 2013 01:44, Fernando Paolo <[hidden email]> wrote:
> Hello,
>
> I'm trying to use the TVTK package, but get the following error:
>
> from enthought.tvtk.api import tvtk
>
> ImportError                               Traceback (most recent call last)
> /Users/fpaolo/python/pauloh-pyevtk-0d26e31ddc8d/src/examples/<ipython-input-1-b61d2a7a8cd1>
> in <module>()
> ----> 1 from enthought.tvtk.api import tvtk
>
> /Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/enthought/tvtk/api.py
> in <module>()
>       1 # proxy module
>
>       2 from __future__ import absolute_import
> ----> 3 from tvtk.api import *
>
> ImportError: No module named tvtk.api
>
>
> I'm using Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012,
> 11:14:05). Also, it seems hard to find up-to-date information about TVTK
> (and mayavi, for instance).
>
> This site (no longer active):
> https://svn.enthought.com/enthought/wiki/TVTK
>
> Points to (active):
> https://github.com/enthought/mayavi
>
> And the README-tvtk.txt points to:
> http://docs.enthought.com/mayavi/tvtk/
>
> Which says: TVTK is meant to be installed as part of the enthought package.
> [and] This document only covers building and using TVTK from inside a
> checkout of the the enthought SVN repository.
>
> So how can I use TVTK from a standard EPD installation? Or do I need to
> perform a separate installation?
>
> Thank you,
> -fernando
>
>
> --
> Fernando Paolo
> Institute of Geophysics & Planetary Physics
> Scripps Institution of Oceanography
> University of California, San Diego
>
> web: fspaolo.net
>
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>



--
Didrik Pinte                               +32 475 665 668
                                                +44 1223 969515
Enthought Europe                      [hidden email]
Scientific Computing Solutions   http://www.enthought.com

The information contained in this message is Enthought confidential &
not to be dissiminated to outside parties without explicit prior
approval from sender.  This message is intended solely for the
addressee(s), If you are not the intended recipient, please contact
the sender by return e-mail and destroy all copies of the original
message.
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev



--
Fernando Paolo
Institute of Geophysics & Planetary Physics
Scripps Institution of Oceanography
University of California, San Diego
9500 Gilman Drive
La Jolla, CA 92093-0225

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev