-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
vtk broken? #21
Comments
I don't think Mayavi is on conda-forge yet so I don't think the one in defaults could work with this version of VTK. |
The reason I assumed it was a general Mayavi on defaults does misspecify its However the output before the exception contains the following lines, suggesting that mayavi is coming from
The Mayavi conda-forge recipe (https://github.com/conda-forge/mayavi-feedstock) explicitly requires |
You are right. I'm confused though; the mayavi-feedstock CI is passing on all platforms: conda-forge/mayavi-feedstock#2 You'd think this error would occur there as well, hm? |
Might the relevant difference be that PySurfer imports |
Actually, I think VTK is being built with vtkRenderingOpenGL2 instead of 1, and Mayavi isn't compatible with that. [Edit] No, scratch that... |
There is a discussion about that: conda-forge/mayavi-feedstock#1 |
I just merged this PR, so mayavi should br available on Linux and Windows (in a few minutes), but not OSX (conda-forge/mayavi-feedstock#3) |
I'll try to reproduce this |
Here https://circleci.com/gh/conda-forge/staged-recipes/12483?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link mayavi is installed from default (don't know the reason why). On my Linux machine, this install mayavi from conda-forge:
and this works:
[EDIT] On last build https://circleci.com/gh/conda-forge/staged-recipes/12761?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link, mayavi is installed from conda-forge |
I think [Edit] or just like vtk's |
Is it possible to modify VTK recipe so that it is checked? (post install script, or something like this) |
I think that is already the case? test:
imports:
- vtk
- vtk.vtkChartsCore
- vtk.vtkCommonCore
- vtk.vtkFiltersCore
- vtk.vtkFiltersGeneric
- vtk.vtkGeovisCore
- vtk.vtkFiltersHybrid
- vtk.vtkIOCore
- vtk.vtkImagingCore
- vtk.vtkInfovisCore
- vtk.vtkRenderingCore
- vtk.vtkViewsCore
- vtk.vtkRenderingVolume
- vtk.vtkInteractionWidgets |
Yes strange, this is still the same in the latest build, for the build it's pulling |
Care to share your The latest few versions of conda and conda-build are notoriously buggy by the way, we've been having weird hiccups for the last two weeks for all sorts of stuff... |
@Korijn I was referring to the build on circleci (linked), not my machine. |
Closing, since updating |
@christianbrodbeck thanks, I think we should find a way to make it more explicit, document it, or check it before the error occurs to provide to explict warning. Without a doubt, the error will reappear for other users... |
It was surprising for me to see that it raised an ImportError at the python level and not at the dll/so level... I'm having a hard time believing that the either of them was really missing. They just failed to load. |
Could a comment be added to the VTK feedstock readme? Something like "Projects that depend on VTK should add a
Yes that was confusing for me too, maybe VTK could be modified to raise a more meaningful error? I am not familiar with the VTK source though... searching for "vtkRenderingOpenGLPython" does not even yield any results... |
As README are generated by conda-smithy, is it ok to modify them? |
Right... is there any way to add notes to a feedstock except for comments in the |
@christianbrodbeck VTK autogenerates the Python wrappers with lots of CMake magic, see: https://github.com/Kitware/VTK/blob/0937c8a6be8a10b95828c31b289cd1cecce78432/CMake/vtkPythonWrapping.cmake |
Comments in the recipe are ok. We just try to remove boilerplate comments that come from copying and tweaking the Also it is possible to add a README to the |
Hi i'm trying to install "mayavi". So i installed all the prerequisite packages including vtk. But after type enter "pip install mayavi" into my ubuntu 16.04 shell, i get a similar error: How can i fix this error. I did not get your solution "christianbrodbeck"? |
ImportError: No module named 'vtkOpenGLKitPython' |
@kazemSafari sorry I missed your comment, this issue is about conda-forge recipes, not local install issues. It looks like your VTK install failed somehow? |
I'm trying to write a recipe that depends on mayavi and hence vtk, and for Linux it ends with the traceback below. This looks like something is missing after the vtk install through conda-forge? Or is there a workaround for this, in which case maybe vtk could raise a better error message?
The text was updated successfully, but these errors were encountered: