All of lore.kernel.org
 help / color / mirror / Atom feed
* Python 3 a blocking requirement?
@ 2016-08-22 14:37 Willem Jan Withagen
  2016-08-22 22:19 ` Josh Durgin
  0 siblings, 1 reply; 7+ messages in thread
From: Willem Jan Withagen @ 2016-08-22 14:37 UTC (permalink / raw)
  To: Ceph Development

I was trying to do some tests on my Centos box.
And ran into:

-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
"2.7.5", minimum required is "2")
CMake Error at
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
  required is at least "3" (found /usr/bin/python)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
(_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindPython3Interp.cmake:146
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/CMakeLists.txt:274 (find_package)

Now is this due to me not being synced enough with master/HEAD, or is
this an actual problem?

Thanx,
--WjW


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-22 14:37 Python 3 a blocking requirement? Willem Jan Withagen
@ 2016-08-22 22:19 ` Josh Durgin
  2016-08-22 22:41   ` Willem Jan Withagen
  0 siblings, 1 reply; 7+ messages in thread
From: Josh Durgin @ 2016-08-22 22:19 UTC (permalink / raw)
  To: Willem Jan Withagen, Ceph Development

On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
> I was trying to do some tests on my Centos box.
> And ran into:
>
> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
> "2.7.5", minimum required is "2")
> CMake Error at
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>   required is at least "3" (found /usr/bin/python)
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
> (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/FindPython3Interp.cmake:146
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   src/CMakeLists.txt:274 (find_package)
>
> Now is this due to me not being synced enough with master/HEAD, or is
> this an actual problem?

It's not a strict requirement - you could add some conditionals
in src/pybind/CMakeLists.txt to disable it if you don't want to build
python 3 versions of the python bindings.

Alternatively you can grab python 3.4 for Centos 7 from EPEL.

Josh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-22 22:19 ` Josh Durgin
@ 2016-08-22 22:41   ` Willem Jan Withagen
  2016-08-22 22:57     ` Josh Durgin
  0 siblings, 1 reply; 7+ messages in thread
From: Willem Jan Withagen @ 2016-08-22 22:41 UTC (permalink / raw)
  To: Josh Durgin, Ceph Development

On 23-8-2016 00:19, Josh Durgin wrote:
> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
>> I was trying to do some tests on my Centos box.
>> And ran into:
>>
>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
>> "2.7.5", minimum required is "2")
>> CMake Error at
>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
>> (message):
>>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>>   required is at least "3" (found /usr/bin/python)
>> Call Stack (most recent call first):
>>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
>> (_FPHSA_FAILURE_MESSAGE)
>>   cmake/modules/FindPython3Interp.cmake:146
>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>   src/CMakeLists.txt:274 (find_package)
>>
>> Now is this due to me not being synced enough with master/HEAD, or is
>> this an actual problem?
> 
> It's not a strict requirement - you could add some conditionals
> in src/pybind/CMakeLists.txt to disable it if you don't want to build
> python 3 versions of the python bindings.
> 
> Alternatively you can grab python 3.4 for Centos 7 from EPEL.

If it is not a strict requirement, than it would be nice if cmake would
accept thus....
And set something like HAVE_PYTHON3

Why not drop the REQUIRED from the find_package()?

--WjW


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-22 22:41   ` Willem Jan Withagen
@ 2016-08-22 22:57     ` Josh Durgin
  2016-08-23  8:03       ` Willem Jan Withagen
  0 siblings, 1 reply; 7+ messages in thread
From: Josh Durgin @ 2016-08-22 22:57 UTC (permalink / raw)
  To: Willem Jan Withagen, Ceph Development

On 08/22/2016 03:41 PM, Willem Jan Withagen wrote:
> On 23-8-2016 00:19, Josh Durgin wrote:
>> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
>>> I was trying to do some tests on my Centos box.
>>> And ran into:
>>>
>>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
>>> "2.7.5", minimum required is "2")
>>> CMake Error at
>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
>>> (message):
>>>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>>>   required is at least "3" (found /usr/bin/python)
>>> Call Stack (most recent call first):
>>>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
>>> (_FPHSA_FAILURE_MESSAGE)
>>>   cmake/modules/FindPython3Interp.cmake:146
>>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>>   src/CMakeLists.txt:274 (find_package)
>>>
>>> Now is this due to me not being synced enough with master/HEAD, or is
>>> this an actual problem?
>>
>> It's not a strict requirement - you could add some conditionals
>> in src/pybind/CMakeLists.txt to disable it if you don't want to build
>> python 3 versions of the python bindings.
>>
>> Alternatively you can grab python 3.4 for Centos 7 from EPEL.
>
> If it is not a strict requirement, than it would be nice if cmake would
> accept thus....
> And set something like HAVE_PYTHON3

Yeah, if making it optional is desired that'd be the way to go.

> Why not drop the REQUIRED from the find_package()?

Until there is a HAVE_PYTHON3 it should fail early. This was just a
first iteration of python 3 packages for ceph libraries, and since each
platform we test has python 3, we didn't try to make it optional. I've
no objections if you want to add that option.

Josh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-22 22:57     ` Josh Durgin
@ 2016-08-23  8:03       ` Willem Jan Withagen
  2016-08-24  9:38         ` Willem Jan Withagen
  0 siblings, 1 reply; 7+ messages in thread
From: Willem Jan Withagen @ 2016-08-23  8:03 UTC (permalink / raw)
  To: Josh Durgin, Ceph Development

On 23-8-2016 00:57, Josh Durgin wrote:
> On 08/22/2016 03:41 PM, Willem Jan Withagen wrote:
>> On 23-8-2016 00:19, Josh Durgin wrote:
>>> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
>>>> I was trying to do some tests on my Centos box.
>>>> And ran into:
>>>>
>>>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
>>>> "2.7.5", minimum required is "2")
>>>> CMake Error at
>>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
>>>> (message):
>>>>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>>>>   required is at least "3" (found /usr/bin/python)
>>>> Call Stack (most recent call first):
>>>>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
>>>> (_FPHSA_FAILURE_MESSAGE)
>>>>   cmake/modules/FindPython3Interp.cmake:146
>>>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>>>   src/CMakeLists.txt:274 (find_package)
>>>>
>>>> Now is this due to me not being synced enough with master/HEAD, or is
>>>> this an actual problem?
>>>
>>> It's not a strict requirement - you could add some conditionals
>>> in src/pybind/CMakeLists.txt to disable it if you don't want to build
>>> python 3 versions of the python bindings.
>>>
>>> Alternatively you can grab python 3.4 for Centos 7 from EPEL.
>>
>> If it is not a strict requirement, than it would be nice if cmake would
>> accept thus....
>> And set something like HAVE_PYTHON3
> 
> Yeah, if making it optional is desired that'd be the way to go.
> 
>> Why not drop the REQUIRED from the find_package()?
> 
> Until there is a HAVE_PYTHON3 it should fail early. This was just a
> first iteration of python 3 packages for ceph libraries, and since each
> platform we test has python 3, we didn't try to make it optional. I've
> no objections if you want to add that option.

That is fair enough, I just found out the hard way because I do not run
make-deps every time.
And I have to maintain the deps list for FreeBSD manually atm.

So the dependancies in the rpms has python3 as requirement, and that
gets python3 available before getting to Ceph?
If so I, I'll add them to the FreeBSD packages list. That'll move things
forward, instead of stasis.

Thanx,
--WjW



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-23  8:03       ` Willem Jan Withagen
@ 2016-08-24  9:38         ` Willem Jan Withagen
  2016-08-24 13:16           ` Ken Dreyer
  0 siblings, 1 reply; 7+ messages in thread
From: Willem Jan Withagen @ 2016-08-24  9:38 UTC (permalink / raw)
  To: Josh Durgin, Ceph Development

On 23-8-2016 10:03, Willem Jan Withagen wrote:
> On 23-8-2016 00:57, Josh Durgin wrote:
>> On 08/22/2016 03:41 PM, Willem Jan Withagen wrote:
>>> On 23-8-2016 00:19, Josh Durgin wrote:
>>>> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
>>>>> I was trying to do some tests on my Centos box.
>>>>> And ran into:
>>>>>
>>>>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
>>>>> "2.7.5", minimum required is "2")
>>>>> CMake Error at
>>>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
>>>>> (message):
>>>>>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>>>>>   required is at least "3" (found /usr/bin/python)
>>>>> Call Stack (most recent call first):
>>>>>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
>>>>> (_FPHSA_FAILURE_MESSAGE)
>>>>>   cmake/modules/FindPython3Interp.cmake:146
>>>>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>>>>   src/CMakeLists.txt:274 (find_package)
>>>>>
>>>>> Now is this due to me not being synced enough with master/HEAD, or is
>>>>> this an actual problem?
>>>>
>>>> It's not a strict requirement - you could add some conditionals
>>>> in src/pybind/CMakeLists.txt to disable it if you don't want to build
>>>> python 3 versions of the python bindings.
>>>>
>>>> Alternatively you can grab python 3.4 for Centos 7 from EPEL.
>>>
>>> If it is not a strict requirement, than it would be nice if cmake would
>>> accept thus....
>>> And set something like HAVE_PYTHON3
>>
>> Yeah, if making it optional is desired that'd be the way to go.
>>
>>> Why not drop the REQUIRED from the find_package()?
>>
>> Until there is a HAVE_PYTHON3 it should fail early. This was just a
>> first iteration of python 3 packages for ceph libraries, and since each
>> platform we test has python 3, we didn't try to make it optional. I've
>> no objections if you want to add that option.
> 
> That is fair enough, I just found out the hard way because I do not run
> make-deps every time.
> And I have to maintain the deps list for FreeBSD manually atm.
> 
> So the dependancies in the rpms has python3 as requirement, and that
> gets python3 available before getting to Ceph?
> If so I, I'll add them to the FreeBSD packages list. That'll move things
> forward, instead of stasis.

Tried this on FreeBSD and the Python detector is not as lenient.
It refuses to find python3 stuff even though it is available as
/usr/local/bin/puthon3 ....

So the solution ATM is to
 - delete the REQUIRED which will result in complaints (but no error)
   that python3 is not found
 - replace REQUIRED with QUIET.
   And that generates no ouput but silently ignores any misses.

For the time being I'd prefer the second one, as to not start people a
goose chase to fix getting python3

--WjW


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Python 3 a blocking requirement?
  2016-08-24  9:38         ` Willem Jan Withagen
@ 2016-08-24 13:16           ` Ken Dreyer
  0 siblings, 0 replies; 7+ messages in thread
From: Ken Dreyer @ 2016-08-24 13:16 UTC (permalink / raw)
  To: Willem Jan Withagen; +Cc: Josh Durgin, Ceph Development

Somewhat related to this discussion, I've opened
http://tracker.ceph.com/issues/17103 to track making Python 3
optional.

- Ken

On Wed, Aug 24, 2016 at 3:38 AM, Willem Jan Withagen <wjw@digiware.nl> wrote:
> On 23-8-2016 10:03, Willem Jan Withagen wrote:
>> On 23-8-2016 00:57, Josh Durgin wrote:
>>> On 08/22/2016 03:41 PM, Willem Jan Withagen wrote:
>>>> On 23-8-2016 00:19, Josh Durgin wrote:
>>>>> On 08/22/2016 07:37 AM, Willem Jan Withagen wrote:
>>>>>> I was trying to do some tests on my Centos box.
>>>>>> And ran into:
>>>>>>
>>>>>> -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version
>>>>>> "2.7.5", minimum required is "2")
>>>>>> CMake Error at
>>>>>> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
>>>>>> (message):
>>>>>>   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
>>>>>>   required is at least "3" (found /usr/bin/python)
>>>>>> Call Stack (most recent call first):
>>>>>>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313
>>>>>> (_FPHSA_FAILURE_MESSAGE)
>>>>>>   cmake/modules/FindPython3Interp.cmake:146
>>>>>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>>>>>>   src/CMakeLists.txt:274 (find_package)
>>>>>>
>>>>>> Now is this due to me not being synced enough with master/HEAD, or is
>>>>>> this an actual problem?
>>>>>
>>>>> It's not a strict requirement - you could add some conditionals
>>>>> in src/pybind/CMakeLists.txt to disable it if you don't want to build
>>>>> python 3 versions of the python bindings.
>>>>>
>>>>> Alternatively you can grab python 3.4 for Centos 7 from EPEL.
>>>>
>>>> If it is not a strict requirement, than it would be nice if cmake would
>>>> accept thus....
>>>> And set something like HAVE_PYTHON3
>>>
>>> Yeah, if making it optional is desired that'd be the way to go.
>>>
>>>> Why not drop the REQUIRED from the find_package()?
>>>
>>> Until there is a HAVE_PYTHON3 it should fail early. This was just a
>>> first iteration of python 3 packages for ceph libraries, and since each
>>> platform we test has python 3, we didn't try to make it optional. I've
>>> no objections if you want to add that option.
>>
>> That is fair enough, I just found out the hard way because I do not run
>> make-deps every time.
>> And I have to maintain the deps list for FreeBSD manually atm.
>>
>> So the dependancies in the rpms has python3 as requirement, and that
>> gets python3 available before getting to Ceph?
>> If so I, I'll add them to the FreeBSD packages list. That'll move things
>> forward, instead of stasis.
>
> Tried this on FreeBSD and the Python detector is not as lenient.
> It refuses to find python3 stuff even though it is available as
> /usr/local/bin/puthon3 ....
>
> So the solution ATM is to
>  - delete the REQUIRED which will result in complaints (but no error)
>    that python3 is not found
>  - replace REQUIRED with QUIET.
>    And that generates no ouput but silently ignores any misses.
>
> For the time being I'd prefer the second one, as to not start people a
> goose chase to fix getting python3
>
> --WjW
>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-24 13:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22 14:37 Python 3 a blocking requirement? Willem Jan Withagen
2016-08-22 22:19 ` Josh Durgin
2016-08-22 22:41   ` Willem Jan Withagen
2016-08-22 22:57     ` Josh Durgin
2016-08-23  8:03       ` Willem Jan Withagen
2016-08-24  9:38         ` Willem Jan Withagen
2016-08-24 13:16           ` Ken Dreyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.