[Starlingx-discuss] python interpreter version problem.

Shang, Dehao dehao.shang at intel.com
Mon Sep 10 12:41:14 UTC 2018


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/ecb1b58d/attachment.html>


More information about the Starlingx-discuss mailing list