TylerGubala/blenderpy

Making module bpy for Python gives error 2

SergJP opened this issue · 3 comments

Describe the bug
I try another way to get bpy

[root@localhost linux_centos7_x86_64]# python3 -m pip install bpy
Collecting bpy
Using cached bpy-2.82.1.tar.gz (19 kB)
Building wheels for collected packages: bpy
Building wheel for bpy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qgcrs879/bpy_96cac2fefb4d455986e4ff214d1a4c7a/setup.py'"'"'; file='"'"'/tmp/pip-install-qgcrs879/bpy_96cac2fefb4d455986e4ff214d1a4c7a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-j1_gmkd2
cwd: /tmp/pip-install-qgcrs879/bpy_96cac2fefb4d455986e4ff214d1a4c7a/
Complete output (150 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/blenderpy
copying blenderpy/post_install.py -> build/lib.linux-x86_64-3.7/blenderpy
copying blenderpy/init.py -> build/lib.linux-x86_64-3.7/blenderpy
copying blenderpy/pre_uninstall.py -> build/lib.linux-x86_64-3.7/blenderpy
running build_ext
Preparing the build environment
Searching for compatible Blender online (this will take a while)
Found compatible Blender version 2.82
Cloning Blender source from git (this will take a while)
Cloning precompiled libs from svn (this will take a while)
cmake -DWITH_PYTHON_INSTALL=OFF -DWITH_PYTHON_MODULE=ON -S/tmp/pip-install-qgcrs879/bpy_96cac2fefb4d455986e4ff214d1a4c7a/build/temp.linux-x86_64-3.7/blender -B/tmp/pip-install-qgcrs879/bpy_96cac2fefb4d455986e4ff214d1a4c7a/build/temp.linux-x86_64-3.7/build
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now
-- Performing Test SUPPORT_SSE_BUILD
-- Performing Test SUPPORT_SSE_BUILD - Success
-- SSE Support: detected.
-- Performing Test SUPPORT_SSE2_BUILD
-- Performing Test SUPPORT_SSE2_BUILD - Success
-- SSE2 Support: detected.
-- Found Git: /usr/bin/git (found version "2.30.2")
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.37")
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.10.4")
-- Found PythonLibsUnix: /usr/local/lib/libpython3.7m.a
-- #define OPENEXR_VERSION_STRING "2.3.0"
-- Found OpenEXR: /usr/lib64/libHalf.so;/usr/lib64/libIex.so;/usr/lib64/libIlmImf.so;/usr/lib64/libIlmThread.so;/usr/lib64/libImath.so
-- Could NOT find OpenJPEG (missing: OPENJPEG_LIBRARY OPENJPEG_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR)
-- Could NOT find Jack (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
-- Could NOT find SndFile (missing: LIBSNDFILE_LIBRARY LIBSNDFILE_INCLUDE_DIR)
-- Could NOT find Fftw3 (missing: FFTW3_LIBRARY FFTW3_INCLUDE_DIR)
-- Could NOT find OpenCOLLADA (missing: _opencollada_LIBRARIES _opencollada_INCLUDES)
-- Could NOT find JeMalloc (missing: JEMALLOC_LIBRARY JEMALLOC_INCLUDE_DIR)
-- Could NOT find Spacenav (missing: SPACENAV_LIBRARY SPACENAV_INCLUDE_DIR)
CMake Warning (dev) at /usr/local/lib/python3.7/site-packages/cmake/data/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (OSL) does
not match the name of the calling package (OpenShadingLanguage). This can
lead to problems in calling code that expects find_package result
variables (e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
build_files/cmake/Modules/FindOpenShadingLanguage.cmake:72 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build_files/cmake/platform/platform_unix.cmake:67 (find_package)
build_files/cmake/platform/platform_unix.cmake:244 (find_package_wrapper)
CMakeLists.txt:804 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find OSL (missing: _osl_LIBRARIES OSL_INCLUDE_DIR OSL_COMPILER)
-- OSL not found, disabling it from Cycles
CMake Warning (dev) at /usr/local/lib/python3.7/site-packages/cmake/data/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (OPENVDB)
does not match the name of the calling package (OpenVDB). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
build_files/cmake/Modules/FindOpenVDB.cmake:56 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build_files/cmake/platform/platform_unix.cmake:67 (find_package)
build_files/cmake/platform/platform_unix.cmake:262 (find_package_wrapper)
CMakeLists.txt:804 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find OPENVDB (missing: OPENVDB_LIBRARY OPENVDB_INCLUDE_DIR)
CMake Warning (dev) at /usr/local/lib/python3.7/site-packages/cmake/data/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (BLOSC) does
not match the name of the calling package (Blosc). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
build_files/cmake/Modules/FindBlosc.cmake:56 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build_files/cmake/platform/platform_unix.cmake:67 (find_package)
build_files/cmake/platform/platform_unix.cmake:263 (find_package_wrapper)
CMakeLists.txt:804 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find BLOSC (missing: BLOSC_LIBRARY BLOSC_INCLUDE_DIR)
-- OpenVDB not found, disabling it
CMake Warning (dev) at /usr/local/lib/python3.7/site-packages/cmake/data/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (ALEMBIC)
does not match the name of the calling package (Alembic). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
build_files/cmake/Modules/FindAlembic.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build_files/cmake/platform/platform_unix.cmake:67 (find_package)
build_files/cmake/platform/platform_unix.cmake:275 (find_package_wrapper)
CMakeLists.txt:804 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find ALEMBIC (missing: ALEMBIC_LIBRARY ALEMBIC_INCLUDE_DIR)
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem regex thread date_time locale system) (Required is at least version "1.48")
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem regex thread date_time locale system) (Required is at least version "1.48")
-- Found OpenImageIO: /usr/lib64/libOpenImageIO.so
-- Could NOT find OpenColorIO (missing: _opencolorio_LIBRARIES OPENCOLORIO_INCLUDE_DIR)
-- OpenColorIO not found
CMake Warning (dev) at /usr/local/lib/python3.7/site-packages/cmake/data/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(OPENIMAGEDENOISE) does not match the name of the calling package
(OpenImageDenoise). This can lead to problems in calling code that expects
find_package result variables (e.g., _FOUND) to follow a certain
pattern.
Call Stack (most recent call first):
build_files/cmake/Modules/FindOpenImageDenoise.cmake:98 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build_files/cmake/platform/platform_unix.cmake:67 (find_package)
build_files/cmake/platform/platform_unix.cmake:396 (find_package_wrapper)
CMakeLists.txt:804 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found OPENIMAGEDENOISE: /usr/local/lib64/libOpenImageDenoise.so
-- Found LLVM: /usr/lib64/libLLVM-11.0.0.so
-- Found OpenSubdiv: /usr/lib64/libosdGPU.so;/usr/lib64/libosdCPU.so
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found TBB: /usr/lib64/libtbb.so
CMake Error at CMakeLists.txt:815 (message):
WITH_MOD_OCEANSIM requires WITH_FFTW3 to be ON