[Paraview] Paraview with Python 3 make install failed to find six.pyc

Quang Ha quang.t.ha.20 at gmail.com
Thu Jun 15 06:52:32 EDT 2017


Thanks for your solution Mauro! It works finally! :)

Quang

On 14 June 2017 at 19:30, Mauro Fontana <fontana.mauro at gmail.com> wrote:

> Hi Quang,
>
> The exact same thing happened to me a few weeks ago while building
> Paraview 5.4 with Python3.
>
> To solve it you need to move and rename some files because Python's
> convention for naming precompiled code changed in Python3. In my case, I
> could see the precompiled files in paraview_build/lib/site-packages/__pycache__
> (where paraview_build is, of course, my building dir). You'll probably find
> two files in there, named *six.cpython-PYVER.pyc* and
> *six.cpython-PYVER.opt-1.pyc* (PYVER is your version of python, 35 in my
> case, for 3.5). You need to move them to *../six.pyc* and *../six.pyo* (note
> the ../ meaning they end up in the site-packages directory, not
> __pycache__).
>
> With that manual changes, make installed worked like a charm.
>
> Hope it helps you.
>
> Cheers,
> Mauro Fontana
>
> On Wed, Jun 14, 2017 at 6:19 PM Quang Ha <quang.t.ha.20 at gmail.com> wrote:
>
>> Hi,
>>
>> I was trying to build and install paraview with Python 3. Build was fine,
>> make was 100% complete. Make install not so much...
>>
>> [100%] Built target paraview
>> [100%] Built target paraview-launcher
>> Install the project...
>> -- Install configuration: "Debug"
>> -- Up-to-date: /usr/local/lib/paraview-5.4/libvtkPVPythonCatalystPython35
>> D-pv5.4.so.1
>> -- Up-to-date: /usr/local/lib/paraview-5.4/li
>> bvtkPVPythonCatalystPython35D-pv5.4.so
>> -- Up-to-date: /usr/local/lib/paraview-5.4/site-packages/vtk/
>> vtkPVPythonCatalystPython.so
>> -- Up-to-date: /usr/local/lib/paraview-5.4/.plugins
>> -- Up-to-date: /usr/local/lib/paraview-5.4/libvtksys-pv5.4.so.1
>> -- Up-to-date: /usr/local/lib/paraview-5.4/libvtksys-pv5.4.so
>> -- Up-to-date: /usr/local/lib/paraview-5.4/libvtkCommonCore-pv5.4.so.1
>> -- Up-to-date: /usr/local/lib/paraview-5.4/libvtkCommonCore-pv5.4.so
>> -- Up-to-date: /usr/local/lib/paraview-5.4/site-packages/six.py
>> CMake Error at VTK/ThirdParty/SixPython/cmake_install.cmake:36 (file):
>>   file INSTALL cannot find
>>   "/home/qth20/paraview/build/lib/site-packages/six.pyc".
>> Call Stack (most recent call first):
>>   VTK/cmake_install.cmake:42 (include)
>>   cmake_install.cmake:94 (include)
>>
>>
>> Makefile:71: recipe for target 'install' failed
>> make: *** [install] Error 1
>>
>> After utilising some google-fu I arrived at this: http://vtk.1045678.n5.
>> nabble.com/VTK-Python-3-and-the-six-module-install-error-
>> on-six-pyc-td5743242.html - which seems to have been merged into master
>> already. What else should I tried in this case?
>>
>> Thanks,
>> Quang
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/
>> opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170615/2a3849eb/attachment.html>


More information about the ParaView mailing list