enthought / enthought/mayavi

TVTK AttributeError when importing

Open
#874 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

Hi,

I have just installed a more recent version of mayavi with pip, but get an attribute error when importing mlab.

> Traceback (most recent call last):
> File "test.py", line 2, in
> from mayavi.mlab import *
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/mlab.py", line 16, in
> from mayavi.tools.camera import view, roll, yaw, pitch, move
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/tools/camera.py", line 24, in
> from .engine_manager import get_engine
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/tools/engine_manager.py", line 14, in
> from mayavi.core.engine import Engine
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/engine.py", line 29, in
> from mayavi.core.scene import Scene
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/scene.py", line 15, in
> from mayavi.core.source import Source
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/source.py", line 19, in
> from mayavi.core.module_manager import ModuleManager
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/module_manager.py", line 19, in
> from mayavi.core.lut_manager import LUTManager
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/lut_manager.py", line 123, in
> class LUTManager(Base):
> File "/home/fougeroc/.local/lib64/python3.6/site-packages/mayavi/core/lut_manager.py", line 131, in LUTManager
> scalar_bar = Instance(tvtk.ScalarBarActor, (), record=True)
> AttributeError: 'TVTK' object has no attribute 'ScalarBarActor'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.