Closed bryanbocao closed 4 years ago
alienware
I did the same steps in the Steps to reproduce the behavior
section above,
And got
(base) anonymity@alienware:~/Repos/habitat-sim$ python setup.py build_ext --parallel 2 install --headless
running build_ext
Submodule 'docs/m.css' (https://github.com/mosra/m.css) registered for path 'docs/m.css'
Submodule 'src/deps/Sophus' (https://github.com/strasdat/Sophus) registered for path 'src/deps/Sophus'
Submodule 'src/deps/assimp' (https://github.com/assimp/assimp) registered for path 'src/deps/assimp'
Submodule 'src/deps/corrade' (https://github.com/mosra/corrade.git) registered for path 'src/deps/corrade'
Submodule 'src/deps/eigen-git-mirror' (https://github.com/eigenteam/eigen-git-mirror) registered for path 'src/deps/eigen-git-mirror'
Submodule 'src/deps/glfw' (https://github.com/glfw/glfw) registered for path 'src/deps/glfw'
Submodule 'src/deps/glog' (https://github.com/google/glog.git) registered for path 'src/deps/glog'
Submodule 'src/deps/googletest' (https://github.com/google/googletest) registered for path 'src/deps/googletest'
Submodule 'src/deps/imgui' (https://github.com/ocornut/imgui.git) registered for path 'src/deps/imgui'
Submodule 'src/deps/magnum' (https://github.com/mosra/magnum.git) registered for path 'src/deps/magnum'
Submodule 'src/deps/magnum-bindings' (https://github.com/mosra/magnum-bindings.git) registered for path 'src/deps/magnum-bindings'
Submodule 'src/deps/magnum-integration' (https://github.com/mosra/magnum-integration.git) registered for path 'src/deps/magnum-integration'
Submodule 'src/deps/magnum-plugins' (https://github.com/mosra/magnum-plugins.git) registered for path 'src/deps/magnum-plugins'
Submodule 'src/deps/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'src/deps/pybind11'
Submodule 'src/deps/rapidjson' (https://github.com/Tencent/rapidjson.git) registered for path 'src/deps/rapidjson'
Submodule 'src/deps/recastnavigation' (https://github.com/erikwijmans/recastnavigation.git) registered for path 'src/deps/recastnavigation'
Submodule 'src/deps/tinyobjloader' (https://github.com/syoyo/tinyobjloader.git) registered for path 'src/deps/tinyobjloader'
Cloning into '/home/anonymity/Repos/habitat-sim/docs/m.css'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/Sophus'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/assimp'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/corrade'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/eigen-git-mirror'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/glfw'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/glog'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/googletest'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/imgui'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum-bindings'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum-integration'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum-plugins'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/pybind11'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/rapidjson'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/recastnavigation'...
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/tinyobjloader'...
Submodule path 'docs/m.css': checked out '01ea5ad52eb8e85b018027a5d540f5822ebfebba'
Submodule path 'src/deps/Sophus': checked out 'b475c0a81a197ff8ea6bdcf8df8a2f5a7b1da879'
Submodule path 'src/deps/assimp': checked out '8f0c6b04b2257a520aaab38421b2e090204b69df'
Submodule path 'src/deps/corrade': checked out '2eac8ab3f1192d92641e0c9f78a08ebb501f32a4'
Submodule 'toolchains' (https://github.com/mosra/toolchains.git) registered for path 'src/deps/corrade/toolchains'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/corrade/toolchains'...
Submodule path 'src/deps/corrade/toolchains': checked out 'f694eee91faf46cc185616ae3668cdba00a3e028'
Submodule path 'src/deps/eigen-git-mirror': checked out 'd10e1f03d4ef456f78ff6b91d9078b1f13a5975c'
Submodule path 'src/deps/glfw': checked out '0a49ef0a00baa3ab520ddc452f0e3b1e099c5589'
Submodule path 'src/deps/glog': checked out '8d7a107d68c127f3f494bb7807b796c8c5a97a82'
Submodule path 'src/deps/googletest': checked out '00938b2b228f3b70d3d9e51f29a1505bdad43f1e'
Submodule path 'src/deps/imgui': checked out 'ca30ef4269150e71a950106c6cfa8f94898581da'
Submodule path 'src/deps/magnum': checked out '902e8053c7871853f20a8c1592095c94d7e870de'
Submodule 'toolchains' (https://github.com/mosra/toolchains.git) registered for path 'src/deps/magnum/toolchains'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum/toolchains'...
Submodule path 'src/deps/magnum/toolchains': checked out 'f694eee91faf46cc185616ae3668cdba00a3e028'
Submodule path 'src/deps/magnum-bindings': checked out 'a6114550343cd0a35fba9b1f0df23ba5fb244831'
Submodule path 'src/deps/magnum-integration': checked out 'cc90f56ab508bf26c35a377cb03de2f180085058'
Submodule 'toolchains' (https://github.com/mosra/toolchains.git) registered for path 'src/deps/magnum-integration/toolchains'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum-integration/toolchains'...
Submodule path 'src/deps/magnum-integration/toolchains': checked out '23cd3a402cb3004a35c1248f4e1c185c49d097da'
Submodule path 'src/deps/magnum-plugins': checked out 'fb4c38f81ecd50f3bde855e4b9287af5552232ff'
Submodule 'toolchains' (https://github.com/mosra/toolchains.git) registered for path 'src/deps/magnum-plugins/toolchains'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/magnum-plugins/toolchains'...
Submodule path 'src/deps/magnum-plugins/toolchains': checked out 'c6eaa23ba0c497dc85546ea81842defe3a8bdea0'
Submodule path 'src/deps/pybind11': checked out 'e43e1cc01ae6d4e4e5ba10557a057d7f3d5ece0d'
Submodule 'tools/clang' (https://github.com/wjakob/clang-cindex-python3) registered for path 'src/deps/pybind11/tools/clang'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/pybind11/tools/clang'...
Submodule path 'src/deps/pybind11/tools/clang': checked out '6a00cbc4a9b8e68b71caf7f774b3f9c753ae84d5'
Submodule path 'src/deps/rapidjson': checked out '73063f5002612c6bf64fe24f851cd5cc0d83eef9'
Submodule 'thirdparty/gtest' (https://github.com/google/googletest.git) registered for path 'src/deps/rapidjson/thirdparty/gtest'
Cloning into '/home/anonymity/Repos/habitat-sim/src/deps/rapidjson/thirdparty/gtest'...
Submodule path 'src/deps/rapidjson/thirdparty/gtest': checked out '0a439623f75c029912728d80cb7f1b8b48739ca4'
Submodule path 'src/deps/recastnavigation': checked out '354591e10a772b8057e42a4f9de701155b9aaa02'
Submodule path 'src/deps/tinyobjloader': checked out 'e52dfdbecdf8893b161a65e508bc009746fa6042'
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /home/anonymity/Apps/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc
-- Check for working C compiler: /home/anonymity/Apps/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/anonymity/Apps/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/anonymity/Apps/anaconda3/bin/x86_64-conda_cos6-linux-gnu-c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- LIB_SUFFIX variable is not defined. It will be autodetected now.
-- You can set it manually with -DLIB_SUFFIX=<value> (64 for example)
-- LIB_SUFFIX autodetected as '', libraries will be installed into /usr/local/lib
-- Found Corrade: /home/anonymity/Repos/habitat-sim/src/deps/corrade/src found components: Containers rc Utility
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- 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
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for libunwind.h
-- Looking for libunwind.h - not found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/utsname.h
-- Looking for sys/utsname.h - found
-- Looking for syscall.h
-- Looking for syscall.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for unwind.h
-- Looking for unwind.h - found
-- Looking for C++ include ext/hash_map
-- Looking for C++ include ext/hash_map - found
-- Looking for C++ include ext/hash_set
-- Looking for C++ include ext/hash_set - found
-- Looking for C++ include ext/slist
-- Looking for C++ include ext/slist - found
-- Looking for C++ include tr1/unordered_map
-- Looking for C++ include tr1/unordered_map - found
-- Looking for C++ include tr1/unordered_set
-- Looking for C++ include tr1/unordered_set - found
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Looking for C++ include unordered_set
-- Looking for C++ include unordered_set - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned __int16
-- Check size of unsigned __int16 - failed
-- Check size of u_int16_t
-- Check size of u_int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pwrite
-- Looking for pwrite - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Performing Test HAVE_NO_DEPRECATED
-- Performing Test HAVE_NO_DEPRECATED - Success
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for get_static_proc_name in unwind
-- Looking for get_static_proc_name in unwind - not found
-- Looking for UnDecorateSymbolName in dbghelp
-- Looking for UnDecorateSymbolName in dbghelp - not found
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Success
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Success
-- Performing Test HAVE_RWLOCK
-- Performing Test HAVE_RWLOCK - Failed
-- Performing Test HAVE___DECLSPEC
-- Performing Test HAVE___DECLSPEC - Failed
-- Performing Test STL_NO_NAMESPACE
-- Performing Test STL_NO_NAMESPACE - Failed
-- Performing Test STL_STD_NAMESPACE
-- Performing Test STL_STD_NAMESPACE - Success
-- Performing Test HAVE_USING_OPERATOR
-- Performing Test HAVE_USING_OPERATOR - Success
-- Performing Test HAVE_NAMESPACES
-- Performing Test HAVE_NAMESPACES - Success
-- Performing Test HAVE_GCC_TLS
-- Performing Test HAVE_GCC_TLS - Success
-- Performing Test HAVE_MSVC_TLS
-- Performing Test HAVE_MSVC_TLS - Failed
-- Performing Test HAVE_CXX11_TLS
-- Performing Test HAVE_CXX11_TLS - Success
-- Performing Test HAVE_LOCALTIME_R
-- Performing Test HAVE_LOCALTIME_R - Success
-- Shared libraries disabled
-- Looking for ZLIB...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'zzip-zlib-config'
-- No package 'zzip-zlib-config' found
-- Found ZLIB: optimized;/home/anonymity/Apps/anaconda3/lib/libz.so;debug;/home/anonymity/Apps/anaconda3/lib/libz.so
-- Checking for module 'minizip'
-- No package 'minizip' found
CMake Warning (dev) at /home/anonymity/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (rt) does
not match the name of the calling package (RT). 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):
deps/assimp/cmake-modules/FindRT.cmake:19 (find_package_handle_standard_args)
deps/assimp/code/CMakeLists.txt:1013 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found rt: /home/anonymity/Apps/anaconda3/x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/librt.so
-- Enabled importer formats: AMF 3DS AC ASE ASSBIN B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X X3D GLTF 3MF MMD STEP
-- Disabled importer formats:
-- Enabled exporter formats: 3DS ASSBIN ASSXML COLLADA OBJ OPENGEX PLY FBX STL X X3D GLTF 3MF ASSJSON STEP
-- Disabled exporter formats:
-- Found Assimp: assimp
-- Found PythonInterp: /home/anonymity/Apps/anaconda3/bin/python (found suitable version "3.7.6", minimum required is "3.6")
-- Bindings being generated for python at /home/anonymity/Apps/anaconda3/bin/python
-- Found PythonInterp: /home/anonymity/Apps/anaconda3/bin/python (found version "3.7.6")
-- Found PythonLibs: /home/anonymity/Apps/anaconda3/lib/libpython3.7m.so
-- pybind11 v2.3.0
CMake Error at /home/anonymity/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY)
Call Stack (most recent call first):
/home/anonymity/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/home/anonymity/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.17/Modules/FindOpenGL.cmake:427 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
deps/magnum/CMakeLists.txt:234 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/anonymity/Repos/habitat-sim/build/CMakeFiles/CMakeOutput.log".
See also "/home/anonymity/Repos/habitat-sim/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "setup.py", line 382, in <module>
include_package_data=True,
File "/home/anonymity/Apps/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/anonymity/Apps/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/anonymity/Apps/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/anonymity/Apps/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 202, in run
self.build_extension(ext)
File "setup.py", line 271, in build_extension
env=env,
File "/home/anonymity/Apps/anaconda3/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-H/home/anonymity/Repos/habitat-sim/src', '-Bbuild', '-DBUILD_PYTHON_BINDINGS=ON', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/anonymity/Repos/habitat-sim/build/lib.linux-x86_64-3.7/habitat_sim/_ext', '-DPYTHON_EXECUTABLE=/home/anonymity/Apps/anaconda3/bin/python', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_GUI_VIEWERS=OFF', '-DTARGET_HEADLESS=ON', '-DBUILD_TEST=OFF', '-DBUILD_WITH_BULLET=OFF', '-DBUILD_DATATOOL=OFF', '-DBUILD_WITH_CUDA=OFF']' returned non-zero exit status 1.
(base) anonymity@alienware:~/Repos/habitat-sim$ sudo apt show zlib1g
Package: zlib1g
Version: 1:1.2.11.dfsg-0ubuntu2
Priority: required
Section: libs
Source: zlib
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Mark Brown <broonie@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 173 kB
Provides: libz1
Depends: libc6 (>= 2.14)
Conflicts: zlib1 (<= 1:1.0.4-7)
Breaks: libxml2 (<< 2.7.6.dfsg-2), texlive-binaries (<< 2009-12)
Homepage: http://zlib.net/
Task: minimal
Supported: 5y
Download-Size: 56.5 kB
APT-Manual-Installed: yes
APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
Description: compression library - runtime
zlib is a library implementing the deflate compression method found
in gzip and PKZIP. This package includes the shared library.
Then I did
(base) anonymity@alienware:~/Repos/habitat-sim$ sudo apt-get install -y minizip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cuda-command-line-tools-10-1 cuda-compiler-10-1 cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1
cuda-cufft-dev-10-1 cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1 cuda-cusparse-dev-10-1
cuda-documentation-10-1 cuda-driver-dev-10-1 cuda-gdb-10-1 cuda-gpu-library-advisor-10-1
cuda-libraries-10-1 cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1 cuda-misc-headers-10-1
cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1 cuda-nsight-compute-10-1 cuda-nsight-systems-10-1
cuda-nvcc-10-1 cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1
cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1 cuda-nvrtc-10-1
cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1 cuda-samples-10-1 cuda-sanitizer-api-10-1
cuda-toolkit-10-1 cuda-tools-10-1 cuda-visual-tools-10-1 libnvidia-common-418
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libminizip1
The following NEW packages will be installed:
libminizip1 minizip
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
Need to get 32.1 kB of archives.
After this operation, 103 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 libminizip1 amd64 1.1-8build1 [20.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 minizip amd64 1.1-8build1 [11.9 kB]
Fetched 32.1 kB in 0s (390 kB/s)
Selecting previously unselected package libminizip1:amd64.
(Reading database ... 258977 files and directories currently installed.)
Preparing to unpack .../libminizip1_1.1-8build1_amd64.deb ...
Unpacking libminizip1:amd64 (1.1-8build1) ...
Selecting previously unselected package minizip.
Preparing to unpack .../minizip_1.1-8build1_amd64.deb ...
Unpacking minizip (1.1-8build1) ...
Setting up libminizip1:amd64 (1.1-8build1) ...
Setting up minizip (1.1-8build1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
And then recloned the repo and tried to reinstall it by
python setup.py build_ext --parallel 2 install --headless
But still got the same error.
ENVIRONMENT INFO:
Platform: Linux-5.3.0-59-generic-x86_64-with-debian-buster-sid
Machine: x86_64
Processor: x86_64
Libc version: glibc 2.10
Mac version:
Python version: 3.7.6
Architecture: 64bit
Win version:
System OS: Linux
Release: 5.3.0-59-generic
Version: #53~18.04.1-Ubuntu SMP Thu Jun 4 14:58:26 UTC 2020
Operational System: linux
GCC version: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMAKE version: cmake version 3.17.3
NVIDIA-SMI: Thu Jun 25 02:51:55 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.59 Driver Version: 440.59 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 On | N/A |
| N/A 49C P8 7W / N/A | 673MiB / 8117MiB | 2% Default |
+-------------------------------+----------------------+----------------------+
Pip packages versions:
numba==0.50.0
numpy==1.19.0
Conda packages versions:
attrs 19.3.0 py_0 19.1.0
gitpython 3.1.3 pypi_0 pypi
matplotlib 3.1.3 py37_0
numba 0.48.0 py37h0573a6f_0
numpy 1.18.1 py37h4f9e942_0
numpy-quaternion 2020.5.19.15.27.24 pypi_0 pypi
pillow 7.0.0 py37hb39fc2d_0
scipy 1.4.1 py37h0b6359f_0 1.3.0
tqdm 4.42.1 py_0
GPU: NVIDIA GeForce GTX 1070 | OS/Driver/Lib | Version |
---|---|---|
Ubuntu | 18.04.4 LTS | |
GPU Driver | 450.36.06 | |
CUDA | 11.0 | |
Tensorflow | 2.2.0 | |
Keras | 2.3.1 |
However, on the alien
machine, I did the following steps and built successfully, then the code could run habitat
.
Steps to build
anaconda3
by
cd ~/Apps/
sudo rm -r anaconda3
Note that anaconda3
was installed in ~/Apps/anaconda3
previously
anaconda3
by
cd ~/Downloads/
bash Anaconda3-2020.02-Linux-x86_64.sh
Note that Anaconda3-2020.02-Linux-x86_64.sh
was downloaded from the official website previously.
cd ~/Repos/
git clone --branch stable https://github.com/facebookresearch/habitat-sim.git
cd habitat-sim/
git reset --hard a2b5522fb7a6eb20c1c87398cbfcf873bbb0309d
python setup.py build_ext --parallel 2 install --headless
Then it built successfully.
The reason why I hard reset it to a2b5522fb7a6eb20c1c87398cbfcf873bbb0309d is that previously habitat
worked fine in this computer. But this time when I switched to a new user and reinstalled everything I got the above error. So I checked my installation log and reset it to the most recent commit prior to my previous installation, which was on Jun 9, 2020(a2b5522fb7a6eb20c1c87398cbfcf873bbb0309d is on Jun 8, 2020).
I followed these steps on the white
machine as well and habitat-sim
was built successfully.
It would be great to understand what made this error after a2b5522fb7a6eb20c1c87398cbfcf873bbb0309d and the way to solve it in the future.
Thanks!
Looks like OpenGL is not being found, can you do sudo apt install libgl1-mesa-dev
?
I tried
sudo apt-get install libgl1-mesa-dev
we can find the log by searching libgl1-mesa-dev
in this page. Thanks!
When it build successfully, where does it say it found OpenGL? The line of code that is failing is older than habitat-sim itself (magnum finds OpenGL for us), so there isn't an obvious reason why the newer commit would change anything.
I downloaded and rebuilt it on a fresh new Ubuntu 18.04
successfully. The latest commit was 020041d75eaf3c70378a9ed0774b5c67b9d3ce99 tagged stable
on May 27, 2020. It 'Built target MagnumGL` based on the installation log.
My code seems to be working fine now. Thanks!
🐛 Bug
Note that the machine in this comment is named
white
. In the next comment, I will post a similar issue on another machine namedalienware
in the next comment.I tried to install
habitat-sim
on a new machine, but the system build failed. Thus, the code could not importhabitat_sim
.Command
To Reproduce
Steps to reproduce the behavior:
Error message:
Expected behavior
Should be able to install and build
habitat-sim
.Additional context
I tried
I also followed the suggestions from the instruction in the
Common build issues
section:cd habitat-sim
gedit build.sh
-DEGL_LIBRARY=/usr/lib/x86_64-linux-gnu/nvidia-opengl/libEGL.so
to the end ofbuild.sh
python setup.py build_ext --parallel 2 install --headless
But still got the same error.
The
libEGL.so
is located in/usr/lib/x86_64-linux-gnu/libEGL.so
in my system specifically, I did the same steps1-6
above except in step5
-DEGL_LIBRARY=/usr/lib/x86_64-linux-gnu/libEGL.so
.But still got the same error.
System Info
Any help would be appreciated!