[Starlingx-discuss] python interpreter version problem.

Bailey, Henry Albert (Al) Al.Bailey at windriver.com
Mon Sep 10 13:11:36 UTC 2018


I downloaded the src rpm for ceph 13.2.0  and extracted it to look at the ceph.spec file

I think this section is giving you grief.

%if 0%{?suse_version} >= 1500
%bcond_with python2
%else
%bcond_without python2
%endif
%if 0%{without python2}
%global _defined_if_python2_absent 1
%endif


By not setting  "defined_if_python2_absent"  it should use the python2 code, as far as I can tell.
See what happens if you comment it out, or remove it.

Al



From: Shang, Dehao [mailto:dehao.shang at intel.com]
Sent: Monday, September 10, 2018 8:41 AM
To: starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] python interpreter version problem.


Hi,

         When upgrading ceph to 13.2.0, i have resolved all deps package of new package, but now being stuck at python interpreter version.
         Now, starlingx just support python2, and don't support more high python version. But ceph 13.2.0 need python3 interpreter to interpret corresponding ceph package.
         I have tried to modify python3 into python2.7 at ceph.spec file, but still don't work.

         Does anyone know how to resolve it?
         Thanks for your help.


         build-std.log :


-- Performing Test COMPILER_SUPPORTS_GNU99
-- Performing Test COMPILER_SUPPORTS_GNU99 - Success
-- Performing Test HAVE_STDLIB_MAP_SPLICING
-- Performing Test HAVE_STDLIB_MAP_SPLICING - Success
-- Performing Test COMPILER_SUPPORTS_DIAGNOSTICS_COLOR
-- Performing Test COMPILER_SUPPORTS_DIAGNOSTICS_COLOR - Success
-- Ceph/.git directory not found, parsing /builddir/build/BUILD/ceph-13.2.0/src/.git_version for CEPH_GIT_VER and CEPH_GIT_NICE_VER
BUILDSTDERR: CMake Error at src/CMakeLists.txt:241 (file):
BUILDSTDERR:   file STRINGS file "/builddir/build/BUILD/ceph-13.2.0/src/.git_version"
BUILDSTDERR:   cannot be read.
-- Found Java: /bin/java (found version "1.8.0.144")
-- Found JNI: /usr/lib/jvm/jre/lib/amd64/libjawt.so
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2")
BUILDSTDERR: CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
BUILDSTDERR:   Could NOT find Python3Interp: Found unsuitable version "2.7.5", but
BUILDSTDERR:   required is at least "3" (found /usr/bin/python)
BUILDSTDERR: Call Stack (most recent call first):
BUILDSTDERR:   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:313 (_FPHSA_FAILURE_MESSAGE)
BUILDSTDERR:   cmake/modules/FindPython3Interp.cmake:146 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
BUILDSTDERR:   src/CMakeLists.txt:282 (find_package)
-- Configuring incomplete, errors occurred!
See also "/builddir/build/BUILD/ceph-13.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/builddir/build/BUILD/ceph-13.2.0/build/CMakeFiles/CMakeError.log".
RPM build errors:
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.IJLMMD (%build)
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.IJLMMD (%build)
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 634, in do
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
Error: Command failed:
# bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/ceph.spec

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20180910/7be01ccc/attachment-0001.html>


More information about the Starlingx-discuss mailing list