Tutorial Prep: one IntroTest Failure after Python(x, y) install
![](https://secure.gravatar.com/avatar/d87a1cccf54e87545922851d4eafd8ed.jpg?s=120&d=mm&r=g)
Hi! I installed Python(x,y) (successfully, I believe) but when I run the Intro Test script I get: Running tests: __main__.test_imports('setuptools', None) ... MOD: setuptools, version: 0.6c9 ok __main__.test_imports('IPython', None) ... MOD: IPython, version: 0.9.1 ok __main__.test_imports('numpy', None) ... MOD: numpy, version: 1.3.0 ok <snip> Plots with math ... ok ====================================================================== ERROR: __main__.test_imports('enthought.mayavi.api', None) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python25\lib\site-packages\nose\case.py", line 183, in runTest self.test(*self.arg) File "IntroTests.py", line 91, in check_import exec "import %s as m" % mnames File "<string>", line 1, in <module> ImportError: No module named enthought.mayavi.api ---------------------------------------------------------------------- Ran 14 tests in 6.198s FAILED (errors=1) So at: http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/insta... I read: "Under Window [sic] the best way to install Mayavi is to install a full Python distribution, such as EPD or Pythonxy. Note that Pythonxy has a special download which provides a complete installer for Mayavi and all its dependencies and is a much smaller download than EPD or the full Pythonxy install." OK, so I click on "special download" and run that. No (reported) problems. I try the Intro Tests again and get: ====================================================================== ERROR: __main__.test_imports('enthought.mayavi.api', None) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python25\lib\site-packages\nose\case.py", line 183, in runTest self.test(*self.arg) File "IntroTests.py", line 91, in check_import exec "import %s as m" % mnames File "<string>", line 1, in <module> File "c:\python25\lib\site-packages\Mayavi-3.0.2-py2.5-win32.egg\enthought\mayavi\api.py", line 2, in <module> from enthought.mayavi.core.engine import Engine File "c:\python25\lib\site-packages\Mayavi-3.0.2-py2.5-win32.egg\enthought\mayavi\core\engine.py", line 24, in <module> from enthought.traits.ui.api import View, Item File "c:\python25\lib\site-packages\Traits-3.0.2-py2.5-win32.egg\enthought\traits\ui\api.py", line 104, in <module> _constants = toolkit().constants() File "c:\python25\lib\site-packages\Traits-3.0.2-py2.5-win32.egg\enthought\traits\ui\toolkit.py", line 369, in constants raise NotImplementedError NotImplementedError ---------------------------------------------------------------------- Ran 14 tests in 8.628s FAILED (errors=1) I guess that's progress, but I'm not sure what to do next. DG
![](https://secure.gravatar.com/avatar/5c9fb379c4e97b58960d74dcbfc5dee5.jpg?s=120&d=mm&r=g)
On Sun, Aug 16, 2009 at 04:32:00AM +0000, David Goldsmith wrote:
Hi! I installed Python(x,y) (successfully, I believe) but when I run the Intro Test script I get:
====================================================================== ERROR: __main__.test_imports('enthought.mayavi.api', None) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python25\lib\site-packages\nose\case.py", line 183, in runTest self.test(*self.arg) File "IntroTests.py", line 91, in check_import exec "import %s as m" % mnames File "<string>", line 1, in <module> ImportError: No module named enthought.mayavi.api
---------------------------------------------------------------------- Ran 14 tests in 6.198s
Yes, it seems that Mayavi is no longer installed by default with Python(x,y). Can you contact Pierre Raybault (contact@pythonxy.com) to ask for more details. I don't have Windows, so I cannot test things myself. Gaël
participants (2)
-
David Goldsmith
-
Gael Varoquaux