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

vtk has hard links that seem to prevent anaconda libraries relocation #1960

Closed
doutriaux1 opened this issue May 3, 2016 · 11 comments
Closed
Assignees
Milestone

Comments

@doutriaux1
Copy link
Contributor

using anaconda built vtk from our repo we cannot export svg any longer

import vcs
x=vcs.init()
x.plot([1,2,3,4,3,2,1])
x.svg("fail")

results in:

----> 1 x.svg("fail")

/home/doutriaux1/anaconda2/lib/python2.7/site-packages/vcs/Canvas.pyc in svg(self, file, width, height, units)
   4719         if not file.split('.')[-1].lower() in ['svg']:
   4720             file += '.svg'
-> 4721         return self.backend.svg(file, W, H)
   4722 
   4723     def _compute_margins(

/home/doutriaux1/anaconda2/lib/python2.7/site-packages/vcs/VTKPlots.pyc in svg(self, file, width, height, units)
   1118 
   1119     def svg(self, file, width=None, height=None, units=None):
-> 1120         return self.vectorGraphics("svg", file, width, height, units)
   1121 
   1122     def gif(self, filename='noname.gif', merge='r', orientation=None,

/home/doutriaux1/anaconda2/lib/python2.7/site-packages/vcs/VTKPlots.pyc in vectorGraphics(self, output_type, file, width, height, units)
   1069         self.hideGUI()
   1070 
-> 1071         gl = vtk.vtkOpenGLGL2PSExporter()
   1072 
   1073         # This is the size of the initial memory buffer that holds the transformed

AttributeError: 'module' object has no attribute 'vtkOpenGLGL2PSExporter'
@doutriaux1
Copy link
Contributor Author

@danlipsa @sankhesh please take a look and provide any input, this is really important. Thanks.

@doutriaux1 doutriaux1 added this to the 2.6 milestone May 3, 2016
@sankhesh
Copy link
Contributor

sankhesh commented May 3, 2016

@doutriaux1 When conda compiles VTK, does it enable the module Module_vtkIOExportOpenGL ? That is the module that provides vtkGL2PSExporter.

@doutriaux1
Copy link
Contributor Author

@sankhesh I passed it the exact same options as we do for our build. If I build with these options it seems to work, it's a relocation issue I think. Looks like some path are hard coded.

@doutriaux1
Copy link
Contributor Author

@sankhesh I will try to manually turn this on anyway, thanks for the pointer.

@doutriaux1
Copy link
Contributor Author

ok I see it in the log, we'll see if it picks it up

-- Backend OpenGL modules: vtkIOExportOpenGL;vtkRenderingVolumeOpenGL;vtkRenderingContextOpenGL;vtkRenderingLIC;vtkRenderingOpenGL;vtkRenderingGL2PS

@doutriaux1
Copy link
Contributor Author

@sankhesh that was it! You're a genius!

@doutriaux1
Copy link
Contributor Author

@sankhesh is there an option to turn on ALL modules? Thanks

@sankhesh
Copy link
Contributor

sankhesh commented May 3, 2016

@doutriaux1 Awesome.

There is an option to enable all modules : VTK_BUILD_ALL_MODULES

However, I would suggest not to use it. That would build a whole LOT MORE code than required.

@doutriaux1
Copy link
Contributor Author

@sankhesh I'll give it a try, since it's for anaconda we only build it once in a long while so that might be worth it.

@aashish24
Copy link
Contributor

@doutriaux1 please do not use / turn "VTK_BUILD_ALL_MODULES" it will increase the binary size unnecessarily.

@doutriaux1
Copy link
Contributor Author

yes I noticed and it also needs mpi and all that we don't necessarily want on.

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

No branches or pull requests

3 participants