<div dir="ltr"><div><br></div><div>There is a problem with using OSMesa and python with VTK right now. I tracked down the issue. It seems that vtk either has to be built static or you need to add the following to your python script.</div><div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">import ctypes</div><div style="font-size:12.8px">osm = ctypes.CDLL("libOSMesa.so", ctypes.RTLD_GLOBAL)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">for the OSMesa library symbols to be in a scope where glew's dlopen/dlsym calls can find them.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Does someone knowledgeable in a Python modules know how to fix this in a less hacky way?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It seems like when building vtk python modules with OSMesa that the OSMesa lib should be somehow linked/pulled</div><div style="font-size:12.8px">into the python modules such that the glew library can find the symbols it needs.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">- Ken</div></div><div><br></div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div></div></div>
</div>