Comments (6)
Hum, I am not reproducing that problem (I do get a few test failures
though :) ). How are you running the tests?
from mayavi.
Hi,
I am not on the same machine now. If I remember well I just run
python /blah/blah/site-packages/mayavi/tests/runtests.py -v
I tried with nose too, but to no avail.
Even more, I just tried on windows 7 x64 to run the tests (I installed the unofficial builds from here).
python C:\Python27\Lib\site-packages\mayavi\tests\runtests.py -v
Running TVTK tests.
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\mayavi\tests\runtests.py", line 225, in <module>
main()
File "C:\Python27\Lib\site-packages\mayavi\tests\runtests.py", line 217, in main
status = m2_tests(verbose)
File "C:\Python27\Lib\site-packages\mayavi\tests\runtests.py", line 170, in m2_tests
tests = find_tests(['tvtk'])
File "C:\Python27\Lib\site-packages\mayavi\tests\runtests.py", line 63, in find_tests
mod = __import__(modname, globals(), locals(), [symbol])
ValueError: Empty module name
On the windows machine the following
python -c "from mayavi import mlab"
results in
Traceback (most recent call last):
File "<string>", 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 23, in <module>
from engine_manager import get_engine
File "C:\Python27\lib\site-packages\mayavi\tools\engine_manager.py", line 12, in <module>
from mayavi.preferences.api import preference_manager
File "C:\Python27\lib\site-packages\mayavi\preferences\api.py", line 4, in <module>
from preference_manager import preference_manager
File "C:\Python27\lib\site-packages\mayavi\preferences\preference_manager.py", line 128, in <module>
preference_manager = PreferenceManager()
File "C:\Python27\lib\site-packages\mayavi\preferences\preference_manager.py", line 81, in __init__
self._load_preferences()
File "C:\Python27\lib\site-packages\mayavi\preferences\preference_manager.py", line 112, in _load_preferences
default = preferences.node('default/')
File "C:\Python27\lib\site-packages\apptools\preferences\scoped_preferences.py", line 218, in node
node = self._get_scope(scope_name)
File "C:\Python27\lib\site-packages\apptools\preferences\scoped_preferences.py", line 414, in _get_scope
scope = self.get_scope(scope_name)
File "C:\Python27\lib\site-packages\apptools\preferences\scoped_preferences.py", line 381, in get_scope
for scope in self.scopes:
File "C:\Python27\lib\site-packages\apptools\preferences\scoped_preferences.py", line 366, in _scopes_default
filename = self.application_preferences_filename
File "C:\Python27\lib\site-packages\apptools\preferences\preferences.py", line 81, in __init__
self.load()
File "C:\Python27\lib\site-packages\apptools\preferences\preferences.py", line 361, in load
from configobj import ConfigObj
ImportError: No module named configobj
Should I open a new issue for the windows?
from mayavi.
On Tue, Jul 26, 2011 at 07:30:45AM -0700, pmav99 wrote:
I am not on the same machine now. If I remember well I just run
python /blah/blah/site-packages/mayavi/tests/runtests.py -v
I tried with nose too, but to no avail.
OK, I can reproduce the problem. I'll investigate what is going on.
What if you run the tests using 'mayavi2 -t'?
On the windows machine the following
python -c "from mayavi import mlab" from configobj import ConfigObj
ImportError: No module named configobj
You're missing the configobj module that you need to run Mayavi.
Gael
from mayavi.
On the linux machine
$ mayavi2 -t
----------------------------------------------------------------------
Running TVTK tests.
Traceback (most recent call last):
File "/usr/bin/mayavi2", line 9, in <module>
load_entry_point('mayavi==4.0.0', 'console_scripts', 'mayavi2')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2281, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1991, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/mayavi/scripts/mayavi2.py", line 426, in <module>
runtests.main()
File "/usr/lib/python2.7/site-packages/mayavi/tests/runtests.py", line 217, in main
status = m2_tests(verbose)
File "/usr/lib/python2.7/site-packages/mayavi/tests/runtests.py", line 170, in m2_tests
tests = find_tests(['tvtk'])
File "/usr/lib/python2.7/site-packages/mayavi/tests/runtests.py", line 64, in find_tests
s = getattr(mod, symbol)
AttributeError: 'module' object has no attribute 'tvtk'
from mayavi.
Hi - I just wanted to confirm that I'm having similar issues on an x64 Arch, with the same set of errors posted by pmav99. However, the mayavi2 application also fails to launch for me, and spits out the following traceback:
Traceback (most recent call last):
File "/usr/bin/mayavi2", line 9, in <module>
load_entry_point('mayavi==4.0.0', 'console_scripts', 'mayavi2')()
File "/usr/lib/python2.7/site-packages/mayavi/scripts/mayavi2.py", line 649, in main
mayavi.main(sys.argv[1:])
File "/usr/lib/python2.7/site-packages/mayavi/plugins/app.py", line 195, in main
app.run()
File "/usr/lib/python2.7/site-packages/mayavi/plugins/mayavi_workbench_application.py", line 81, in run
window.open()
File "/usr/lib/python2.7/site-packages/pyface/workbench/workbench_window.py", line 144, in open
self._create()
File "/usr/lib/python2.7/site-packages/pyface/ui/wx/application_window.py", line 150, in _create
contents = self._create_contents(body)
File "/usr/lib/python2.7/site-packages/pyface/workbench/workbench_window.py", line 217, in _create_contents
contents = self.layout.create_initial_layout(parent)
File "/usr/lib/python2.7/site-packages/pyface/ui/wx/workbench/workbench_window_layout.py", line 151, in create_initial_layout
self._wx_view_dock_window = WorkbenchDockWindow(parent)
File "/usr/lib/python2.7/site-packages/pyface/dock/dock_window.py", line 324, in __init__
if self.theme.use_theme_color:
File "/usr/lib/python2.7/site-packages/pyface/dock/dock_window.py", line 335, in _theme_default
return dock_window_theme()
File "/usr/lib/python2.7/site-packages/traitsui/dock_window_theme.py", line 92, in dock_window_theme
from .default_dock_window_theme import default_dock_window_theme
File "/usr/lib/python2.7/site-packages/traitsui/default_dock_window_theme.py", line 39, in <module>
label = ( 0, -3 ), content = ( 7, 6, 0, 0 ) ),
File "/usr/lib/python2.7/site-packages/traitsui/theme.py", line 63, in __init__
self.image = image
File "/usr/lib/python2.7/site-packages/traitsui/ui_traits.py", line 229, in validate
self.error( object, name, value )
File "/usr/lib/python2.7/site-packages/traits/trait_handlers.py", line 168, in error
value )
traits.trait_errors.TraitError: The 'image' trait of a Theme instance must be an ImageResource or string that can be used to define one, but a value of '@std:tab_active' <type 'str'> was specified.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/traitsui/image/image.py", line 329, in _process
if time() > (self.time_stamp + 2.0):
TypeError: 'NoneType' object is not callable
When I run mayavi2 interactively from within ipython, the output window pops up normally and the VTK objects are all rendered, but if I do anything that would rely on extra traits gui stuff being shown (e.g. clicking on the Mayavi pipeline button), I get the same TraitError exception.
EDIT: I've managed to get mayavi2 to start by switching from the AUR package python-enthought-mayavi to python2-mayavi-git, and from python-enthought-traits to python2-pyface-git, but I still get the same error posted by pmav99 when I attempt to run the mayavi2 test suite.
from mayavi.
Still relevant? I can't seem to reproduce the problem anymore. Closing.
from mayavi.
Related Issues (20)
- How to volume render a transparent space with mlab.pipleine.volume() and mlab.pipleine.scalar_field() as a data source?? HOT 1
- Error with VTK 9.3.0 HOT 3
- Failed Cython compilation (Cython > 3.0) HOT 2
- mlab.savefig saves wrong resolution (for first two images in loop)
- Potential issue with upcoming changes in VTK
- itkwidgets error in Jupyter Notebook
- Update a mayavi plot programmatically
- Release? HOT 6
- Warnings reported in the Mayavi testsuite
- Warnings and errors reported by the tvtk testsuite
- ImportError: Could not import backend for traitsui.
- Moving the cursor into a mayavi window causes a crash
- pip install not working HOT 2
- [regression in 4.8.2] TVTK not built properly. HOT 1
- Mayavi example protein.py not working, plus the solution
- Scalar filed is not volume rendered with a colormap HOT 1
- GUI stutters when running an animation
- Problem getting started with Mayavi HOT 1
- When use mlab.figure, got error "AttributeError: type object 'Unimplemented' has no attribute 'process_events'" HOT 1
- wxPython not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mayavi.