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

Comments

Projects
None yet
3 participants
@doutriaux1
Member

doutriaux1 commented May 3, 2016

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

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

@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

This comment has been minimized.

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

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

@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

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

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

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

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

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

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

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

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

@sankhesh

This comment has been minimized.

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

This comment has been minimized.

Member

doutriaux1 commented May 3, 2016

@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.

@doutriaux1 doutriaux1 closed this May 3, 2016

@aashish24

This comment has been minimized.

Contributor

aashish24 commented May 4, 2016

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

@doutriaux1

This comment has been minimized.

Member

doutriaux1 commented May 4, 2016

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