Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot unit test mayavi features on travis #12

Open
jmp75 opened this issue Aug 6, 2019 · 2 comments
Open

Cannot unit test mayavi features on travis #12

jmp75 opened this issue Aug 6, 2019 · 2 comments

Comments

@jmp75
Copy link
Collaborator

jmp75 commented Aug 6, 2019

Tried to have mayavi related features unit tested. OK on my machine with a graphical env, but not on travis.
For the record, but not a battle I intend to fight actively.

  Fatal Python error: Aborted
Current thread 0x00007f0ceef72740 (most recent call first):
  File "/home/travis/miniconda/envs/ela_test/lib/python3.7/site-packages/pyface/ui/qt4/init.py", line 40 in <module>
etc. etc.
 File "/home/travis/build/csiro-hydrogeology/pyela/ela/visual3d.py", line 3 in <module>

/home/travis/.travis/functions: line 104:  9312 Aborted                 (core dumped) coverage run -m pytest

The command "coverage run -m pytest" exited with 134.
@banesullivan
Copy link

You'll likely need to set up a headless display - we have a nifty helper to handle this on Travis from the PyVista project: https://github.com/pyvista/gl-ci-helpers

See the info in that repo for most up to date info

@banesullivan
Copy link

And ensure the VTK backend is rendering offscreen - I'm not sure how that is done with Mayavi...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants