The following command:
from mayavi import mlab
produces:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python27\lib\site-packages\mayavi\mlab.py", line 27, in <module>
from mayavi.tools.camera import view, roll, yaw, pitch, move
File "C:\Python27\lib\site-packages\mayavi\tools\camera.py", line 25, in <module>
from engine_manager import get_engine
File "C:\Python27\lib\site-packages\mayavi\tools\engine_manager.py", line 9, in <module>
from traits.api import HasTraits, Instance
File "C:\Python27\lib\site-packages\traits\api.py", line 26, in <module>
from .trait_base import Uninitialized, Undefined, Missing, Self, python_version
File "C:\Python27\lib\site-packages\traits\trait_base.py", line 298, in <module>
from . import ctraits
ImportError: cannot import name ctraits
The c:\Python27\Lib\site-packages\traits directory does not have this file. It
was in the previous version
1. What version of Python(x,y) have you installed?
2.7.3.0-b1
2. Which components have you installed (Python(x,y) installer: component
page):
b) Full
3. Have you selected the option "Customize installation directories"?
b. No
5. Where did you install Python(x,y) itself?
a. default path
6. Have you installed Python(x,y):
- left on default choice
7. What is your operating system?
c. Windows 7
8. Is the operating system 64 bit?
a. Yes
9. When you installed Python(x,y), were you logged in as :
b. an administrator of the machine
10. If you are using Windows Vista/7, have you installed Python(x,y):
b. by right-clicking on the installer and selecting "Run as an
administrator"
11. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
b. you uninstalled any previous Python distribution (including the
official .msi)
What steps will reproduce the problem?
1. from mayavi import mlab
2.
3.
What is the expected output? What do you see instead?
A successful import
Please provide any additional information below.
I am currently using trend officescan. I do not know if it would have
interfered with the install
Original issue reported on code.google.com by pcole@geoscience.org.za on 2 Nov 2012 at 7:49
Original issue reported on code.google.com by
pcole@geoscience.org.za
on 2 Nov 2012 at 7:49