Comments (10)
tvtk.array_ext
is an extension module. Is it there (tvtk/array_ext.so
)?
from mayavi.
Also, please copy-paste whole tracebacks. Use a gist if they are too big. Paraphrases of tracebacks are usually not useful.
from mayavi.
ok hi again rkern; We have an array_ext.so
mayavi-4.3.0/work/mayavi-4.3.0 $ find ../ -name array_ext.so
../mayavi-4.3.0-python2_7/lib/tvtk/array_ext.so
here are the last few. I'm setting resetting PYTHONPATH and sorting the build messup ttm to get this array_ext.so imported and working
======================================================================
ERROR: Check if all VTK classes are parseable.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_vtk_parser.py", line 256, in test_parse_all
p.get_method_signature(getattr(k, method))
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/vtk_parser.py", line 304, in get_method_signature
doc = doc[:doc.find('\n\n')]
AttributeError: 'NoneType' object has no attribute 'find'
======================================================================
FAIL: Basic tests for the VTK module.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_class_tree.py", line 40, in test_basic_vtk
self.assertEqual(len(t.tree[0]), 11)
AssertionError: 12 != 11
======================================================================
FAIL: Check if VTK method signatures are parsed correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_vtk_parser.py", line 199, in test_method_signature
p.get_method_signature(o.RemoveObserver))
AssertionError: Lists differ: [([None], ['int'])] != [([None], ['vtkCommand']), ([N...
First differing element 0:
([None], ['int'])
([None], ['vtkCommand'])
Second list contains 1 additional elements.
First extra element 1:
([None], ['int'])
- [([None], ['int'])]
+ [([None], ['vtkCommand']), ([None], ['int'])]
======================================================================
FAIL: Check if parser is usable without the tree.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_vtk_parser.py", line 218, in test_no_tree
self.test_parse()
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_vtk_parser.py", line 47, in test_parse
self.assertEqual(p.get_get_set_methods(), {'ReferenceCount': (1, None)})
AssertionError: {} != {'ReferenceCount': (1, None)}
- {}
+ {'ReferenceCount': (1, None)}
======================================================================
FAIL: Check if the methods are organized correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/tests/test_vtk_parser.py", line 47, in test_parse
self.assertEqual(p.get_get_set_methods(), {'ReferenceCount': (1, None)})
AssertionError: {} != {'ReferenceCount': (1, None)}
- {}
+ {'ReferenceCount': (1, None)}
----------------------------------------------------------------------
Ran 112 tests in 3.070s
clicked close and comment b4 I knew it. Once I get the .so working it will leave just the above handful
A 'gist' ??
from mayavi.
It's like Pastebin for Github.
When putting tracebacks or other blocks of preformatted text in the comments here, please use the triple-backquotes so that Github does not treat it as Markdown.
from mayavi.
roger that. Ok next naive question. What is a backquote ? I thought it was """ like in python syntax, maybe it is, I'm really not versed in web page markup markdown or mark in the middle even.
restricting atm to the tvtk tests
PYTHONPATH=.:build/lib/ nosetests build/lib/tvtk/
Ran 83 tests in 0.477s
FAILED (errors=2, failures=4)
I call that some progress. I'll play with that git page and enter some output shortly
there's 1 https://gist.github.com/idella/5398107
from mayavi.
https://help.github.com/articles/github-flavored-markdown
from mayavi.
good thanks I'll peruse in time
PYTHONPATH=.:build/lib/ nosetests mayavi/
QWidget: Must construct a QApplication before a QPaintDevice
/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/temp/environment: line 3409: 10371 Aborted
Some of those test_ files in mayavi/tests/ are throwing up Must construct a QApplication before a QPaintDevice
and promptly aborts. I suppose I'll have to run them 1 at a time.
How you going at your end?
from mayavi.
ok; for mayavi tests there are 2 types of errors; Must construct a QApplication before a QPaintDevice and regular.
mayavi/tests/{test_image_data_probe.py,test_mlab_integration.py,test_mlab_null_engine.py} .
mayavi/tests/{test_mlab_scene_model.py,test_no_ui_toolkit.py,test_optional_collection.py} .
mayavi/tests/{test_set_active_attribute.py,test_user_defined.py} .
All these yield QWidget: Must construct a QApplication before a QPaintDevice.
I'm hoping all we need here is a mechanism to "construct a QApplication before a QPaintDevice.". An envoronment variable to set perhaps???
The regular;
mayavi-4.3.0-python2_7 $ PYTHONPATH=. python mayavi/tests/test_customize.p
ERROR: test_import_contrib (__main__.TestCustomize)
Test the import_contrib function.
Traceback (most recent call last):
File "mayavi/tests/test_customize.py", line 20, in test_import_contrib
self.assertEqual(mod.__name__, mname)
AttributeError: 'NoneType' object has no attribute '__name__'
----------------------------------------------------------------------
Ran 1 test in 0.009s
FAILED (errors=1)
Lacking attribute 'name looks perhaps like a builtin type thing mb.
test_plot3d_mb_reader.py segfaults
/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/version.py:5: UserWarning: Module tvtk was already imported from /mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/__init__.pyc, but /usr/lib64/python2.7/site-packages is being added to sys.path
import pkg_resources
/mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/tvtk/version.py:5: UserWarning: Module mayavi was already imported from /mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/mayavi/__init__.pyc, but /usr/lib64/python2.7/site-packages is being added to sys.path
import pkg_resources
ERROR: In /mnt/gen2/TmpDir/portage/sci-libs/vtk-5.10.0/work/VTK/IO/vtkPLOT3DReader.cxx, line 165
vtkPLOT3DReader (0x3a8ad60): PLOT3DReader error reading file: /mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/mayavi/tests/data/tiny.xyz Premature EOF while reading skipping byte count.
ERROR: In /mnt/gen2/TmpDir/portage/sci-libs/vtk-5.10.0/work/VTK/IO/vtkPLOT3DReader.cxx, line 165
vtkPLOT3DReader (0x3a8ad60): PLOT3DReader error reading file: /mnt/gen2/TmpDir/portage/sci-visualization/mayavi-4.3.0/work/mayavi-4.3.0-python2_7/mayavi/tests/data/tiny.xyz Premature EOF while reading skipping byte count.
Segmentation fault
Premature EOF while reading skipping byte count seems to be the root cause.
Certainly an improvement from (errors=71, failures=4)
from mayavi.
added to https://gist.github.com/idella/5398107
Looks like I go the hang of the triple-backquotes
from mayavi.
Still relevant for Mayavi 4.4.4?
from mayavi.
Related Issues (20)
- 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 3
- wxPython not supported
- Mayavi Compatibility with Numpy2.0 HOT 1
- wglMakeCurrent failed in MakeCurrent() on Windows machine HOT 1
- Unable to change the color of points3D HOT 2
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.