It seems that pybind11 no longer supports Python 2, but ray_tracing only supports Python 2. What should I do? Help me. When I configure it with Python 3, it will output the wrong message:
pybind11Common.cmake path2: /home/data/CYD/project/polex-master/polex-master/include/pybind11/build/pybind11Targets.cmake
-- pybind11Common.cmake path: /home/data/CYD/project/polex-master/polex-master/include/pybind11/build/pybind11Common.cmake
-- Found PythonInterp: /root/miniconda3/envs/polex3/bin/python (found suitable version "3.8.20", minimum required is "3.8")
-- Found pybind11: /home/data/CYD/project/polex-master/polex-master/include (found version "2.14.0dev1")
big boss
-- Configuring done
-- Generating done
-- Build files have been written to: /home/data/CYD/project/polex-master/polex-master/ray_tracing/build
[ 25%] Linking CXX shared module ray_tracing_python.cpython-38-x86_64-linux-gnu.so
[ 75%] Built target test_ray_tracing
Copying shared library to Python directory
Error copying file "/home/data/CYD/project/polex-master/polex-master/ray_tracing/build/ray_tracing_python.so" to "/home/data/CYD/project/polex-master/polex-master/ray_tracing/python/raytracing/ray_tracing_python.so".
make[2]: [CMakeFiles/ray_tracing_python.dir/build.make:87: ray_tracing_python.cpython-38-x86_64-linux-gnu.so] Error 1
make[2]: Deleting file 'ray_tracing_python.cpython-38-x86_64-linux-gnu.so'
make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/ray_tracing_python.dir/all] Error 2
make: [Makefile:130: all] Error 2
It seems that pybind11 no longer supports Python 2, but ray_tracing only supports Python 2. What should I do? Help me. When I configure it with Python 3, it will output the wrong message:
pybind11Common.cmake path2: /home/data/CYD/project/polex-master/polex-master/include/pybind11/build/pybind11Targets.cmake -- pybind11Common.cmake path: /home/data/CYD/project/polex-master/polex-master/include/pybind11/build/pybind11Common.cmake -- Found PythonInterp: /root/miniconda3/envs/polex3/bin/python (found suitable version "3.8.20", minimum required is "3.8") -- Found pybind11: /home/data/CYD/project/polex-master/polex-master/include (found version "2.14.0dev1") big boss -- Configuring done -- Generating done -- Build files have been written to: /home/data/CYD/project/polex-master/polex-master/ray_tracing/build [ 25%] Linking CXX shared module ray_tracing_python.cpython-38-x86_64-linux-gnu.so [ 75%] Built target test_ray_tracing Copying shared library to Python directory Error copying file "/home/data/CYD/project/polex-master/polex-master/ray_tracing/build/ray_tracing_python.so" to "/home/data/CYD/project/polex-master/polex-master/ray_tracing/python/raytracing/ray_tracing_python.so". make[2]: [CMakeFiles/ray_tracing_python.dir/build.make:87: ray_tracing_python.cpython-38-x86_64-linux-gnu.so] Error 1 make[2]: Deleting file 'ray_tracing_python.cpython-38-x86_64-linux-gnu.so' make[1]: [CMakeFiles/Makefile2:78: CMakeFiles/ray_tracing_python.dir/all] Error 2 make: [Makefile:130: all] Error 2