Re: [Paraview] python mismatch with superbuild on os x

2018-01-29 Thread Ben Boeckel
On Thu, Jan 25, 2018 at 11:40:40 +0100, Nicolas Vuaille wrote:
> I don't know if there is a proper fix but there is a CMake option to bypass
> this check:
>  set PYTHON_I_KNOW_WHAT_IM_DOING to true may solve the problem.

Indeed, this is the workaround. The problem is that we've had folks with
Homebrew Python where we end up finding `/usr/bin/python`, the library
from the SDK, and the headers from Homebrew. This, to say the least,
tends not to work out too well. However, you usually don't know until
your `pvpython` ends up busted, so instead we put the logic in the
superbuild. That escape hatch is there to avoid the check, but you
really should be using Python bits which agree on their version.

--Ben
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] python mismatch with superbuild on os x

2018-01-25 Thread Nicolas Vuaille
Hi,

I don't know if there is a proper fix but there is a CMake option to bypass
this check:
 set PYTHON_I_KNOW_WHAT_IM_DOING to true may solve the problem.

Nicolas

2018-01-25 5:35 GMT+01:00 Cory Quammen :

> On Wed, Jan 24, 2018 at 12:57 PM, Sgouros, Thomas
>  wrote:
> > Hello:
> >
> > I unpacked a version of the Paraview-v5.4.1 tarball, and then did git
> clone
> > of the superbuild right next to it. So I have this:
> >
> > $ ls
> > ParaView-v5.4.1
> > paraview-superbuild
> > $ mkdir paraview-superbuild-build
> > $ cd paraview-superbuild-build
> > $ ccmake ../paraview-superbuild
> >
> > There is a mismatch between the python it wants and the python on my
> system
> > so the configure step will not run and gives this error:
> >
> >Python interpreter version (2.7.13) does not match the library version
> > (2.7.10)
> >
> > The /usr/bin/python on my system is 2.7.10. What's it complaining about?
> > There are other Pythons on my system. I changed my $PATH so /usr/bin is
> > first, and deleted the contents of the paraview-superbuild-build
> directory
> > and that seems to have taken care of it.
> >
> > This doesn't seem like the right solution to me, posting here either to
> help
> > someone else with the same problem, or so that some developer of the
> > superbuild can fix this.
>
> I have encountered the same problem with the interpreter version
> differing from the library version while having a homebrew Python
> installed on my system. Perhaps there is an opportunity for a bug fix
> in CMake's FindPythonInterp.cmake and FindPythonLibs.cmake files.
>
> For now, what you have done is a reasonable workaround.
>
> Thanks,
> Cory
>
>
> > Thank you,
> >
> >  -Tom
> >
> >
> > ___
> > 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:
> > https://paraview.org/mailman/listinfo/paraview
> >
>
>
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
> ___
> 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:
> https://paraview.org/mailman/listinfo/paraview
>
___
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:
https://paraview.org/mailman/listinfo/paraview


Re: [Paraview] python mismatch with superbuild on os x

2018-01-24 Thread Cory Quammen
On Wed, Jan 24, 2018 at 12:57 PM, Sgouros, Thomas
 wrote:
> Hello:
>
> I unpacked a version of the Paraview-v5.4.1 tarball, and then did git clone
> of the superbuild right next to it. So I have this:
>
> $ ls
> ParaView-v5.4.1
> paraview-superbuild
> $ mkdir paraview-superbuild-build
> $ cd paraview-superbuild-build
> $ ccmake ../paraview-superbuild
>
> There is a mismatch between the python it wants and the python on my system
> so the configure step will not run and gives this error:
>
>Python interpreter version (2.7.13) does not match the library version
> (2.7.10)
>
> The /usr/bin/python on my system is 2.7.10. What's it complaining about?
> There are other Pythons on my system. I changed my $PATH so /usr/bin is
> first, and deleted the contents of the paraview-superbuild-build directory
> and that seems to have taken care of it.
>
> This doesn't seem like the right solution to me, posting here either to help
> someone else with the same problem, or so that some developer of the
> superbuild can fix this.

I have encountered the same problem with the interpreter version
differing from the library version while having a homebrew Python
installed on my system. Perhaps there is an opportunity for a bug fix
in CMake's FindPythonInterp.cmake and FindPythonLibs.cmake files.

For now, what you have done is a reasonable workaround.

Thanks,
Cory


> Thank you,
>
>  -Tom
>
>
> ___
> 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:
> https://paraview.org/mailman/listinfo/paraview
>



-- 
Cory Quammen
Staff R Engineer
Kitware, Inc.
___
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:
https://paraview.org/mailman/listinfo/paraview