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

pip install mayavi failing in CI for docker and singularity #424

Closed
landreman opened this issue Jun 9, 2024 · 1 comment · Fixed by #426
Closed

pip install mayavi failing in CI for docker and singularity #424

landreman opened this issue Jun 9, 2024 · 1 comment · Fixed by #426

Comments

@landreman
Copy link
Contributor

Starting a few days ago, the CI workflows to build the Docker and Singularity containers have been failing at the step where mayavi is installed. Some examples are here and here. In both cases, the line that fails is /venv/bin/pip install mayavi. The specific error message originates from

          import vtk
        File "/tmp/pip-build-env-woepris_/overlay/lib/python3.10/site-packages/vtk.py", line 5, in <module>
          from vtkmodules.vtkWebCore import *
      ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

If I'm not mistaken, this error seems independent of the recent mayavi error discussed in #405 and #407.

Any ideas how to fix this? Should we remove mayavi from the docker and singularity containers, at least for now?

@smiet
Copy link
Contributor

smiet commented Jun 12, 2024

Hi Matt,

I have noticed the same thing, and ran into it doing a fresh install with a student. I do not know what exactly caused it, but it is related to a dependency conflict originating from VTK and the gui (pyQT5 or 6?).

I solved it by changing the order of installs. Mayavi is very picky and fragile, if you install it first then a matching VTK and gui version will be chosen, but if a VTK version is already present because it was installed by simsopt, this error occurred for me.

I would be in favor of removing it from the containers if this doesn't fix it. I constantly have headaches keeping it running on my ArchLinux system, Mayavi keeps breaking in unexpected and new ways when packages are updated.

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

Successfully merging a pull request may close this issue.

2 participants