<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 8:22 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, May 15, 2017 at 8:09 PM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> I have been looking into this in the context of Tomviz, which uses<br>
> Python 3, but was able to reproduce this in a vanilla VTK build tree.<br>
> If you use Python 3 everything installs fine, but if you turn on<br>
> Module_SixPython then I get the following install error:<br>
><br>
> -- Installing: /usr/local/vtk/lib/cmake/vtk-<wbr>7.1/Modules/SixPython.cmake<br>
> -- Installing: /usr/local/vtk/lib/python3.5/<wbr>site-packages/six.py<br>
> CMake Error at ThirdParty/SixPython/cmake_<wbr>install.cmake:40 (file):<br>
> file INSTALL cannot find "/home/marcus/build/vtk/<wbr>Wrapping/Python/six.pyc".<br>
> Call Stack (most recent call first):<br>
> cmake_install.cmake:104 (include)<br>
><br>
> A quick grep turned up nothing obvious, but it would seem that other<br>
> Python modules are correctly finding the pyc files in the __pycache__<br>
> directories, but not so with six. Any pointers on where this logic<br>
> might be, and why it might be breaking down for this very simple<br>
> module.<br>
><br>
</span>Isn't it always the way, but I guess the major issue is that only a<br>
few modules use vtk_module_python_package, and that CMake function<br>
seems to have no idea about __pycache__ in Python 3, and is only just<br>
starting to be used there with AutobahnPython and SixPython. I am<br>
guessing when they were added make install wasn't tested with Python<br>
3.<br>
<br>
Aron, it looks like you added the Autobahn to Python 3, any chance<br>
that the install target could be fixed? It seems like the<br>
vtk_module_python_package function needs to be extended to deal with<br>
__pycache__ when using Python 3 but people more knowledgeable in<br>
Python-fu may have other ideas.<br></blockquote><div><br></div><div>Yes, I updated Autobahn to use the third-party update mechanism, and used</div><div>the cmake files that already existed. I never tested the 'make install' functionality</div><div>with Python 3. I would expect the ParaView superbuild to do that, but I don't </div><div>really know. I've not touched the vtk cmake infrastructure yet - I'll go ask for help.</div><div>I don't see '__pycache__' handled anywhere in vtk/paraview .cmake files....</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Marcus<br>
</blockquote></div><br></div></div>