Closed liuxiaozhu01 closed 1 year ago
Hi, can you please try to manually clone and run "cmake . && make"?
"cmake . && make" runs well, and the extension (*.so) exists in tetranerf/utils/extension.
But when i try to python setup.py install
, it still outputs the same error.
Hi, can you please try to manually clone and run "cmake . && make"?
Can you confim the path to the created .so? Can you try to add the tetranerf repo directory to the pythonpath and test if you can run the code?
and i add the repo directory to pythonpath, export PYTHONPATH=$PYTHONPATH:/root/home/workspace/tetra-nerf
but it still not working.
Ok, so it compiles fine. What is the exact error message when you set the pythonpath and try running some code?
The complete error message is
workspace/tetra-nerf ‹master*›# python setup.py install
running install
/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
running egg_info
writing tetra_nerf.egg-info/PKG-INFO
writing dependency_links to tetra_nerf.egg-info/dependency_links.txt
writing entry points to tetra_nerf.egg-info/entry_points.txt
writing requirements to tetra_nerf.egg-info/requires.txt
writing top-level names to tetra_nerf.egg-info/top_level.txt
reading manifest file 'tetra_nerf.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'tetra_nerf.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
-- Using torch libraries: /usr/local/lib/python3.10/dist-packages/torch/lib
-- Using torch includes: /usr/local/lib/python3.10/dist-packages/torch/include;/usr/local/lib/python3.10/dist-packages/torch/include/torch/csrc/api/include;/usr/local/lib/python3.10/dist-packages/torch/include/TH;/usr/local/lib/python3.10/dist-packages/torch/include/THC
-- Using CUDA toolkit: /usr/local/cuda-11.8
-- Using CUDA architectures: 70
CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/CGAL/CGALConfig.cmake:92 (message):
CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the
default value of CGAL::data_file_path()
Call Stack (most recent call first):
CMakeLists.txt:15 (find_package)
-- Using header-only CGAL
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Boost include dirs: /usr/include
-- Boost libraries:
-- Using gcc version 4 or later. Adding -frounding-math
-- pybind11 v2.9.2
-- Configuring done
-- Generating done
-- Build files have been written to: /root/home/workspace/tetra-nerf
Consolidate compiler generated dependencies of target tetranerf_cpp_extension
[100%] Built target tetranerf_cpp_extension
warning: install_lib: 'build/lib.linux-x86_64-cpython-310' does not exist -- no Python modules to install
Traceback (most recent call last):
File "/remote-home/lzj/workspace/tetra-nerf/setup.py", line 122, in <module>
setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/install.py", line 80, in run
self.do_egg_install()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/install.py", line 129, in do_egg_install
self.run_command('bdist_egg')
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/bdist_egg.py", line 167, in run
all_outputs, ext_outputs = self.get_ext_outputs()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/bdist_egg.py", line 299, in get_ext_outputs
for ext in build_cmd.extensions:
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
raise AttributeError(attr)
AttributeError: extensions
oh yeah! I dive deep into the error message and i notice that python setup.py install
has already been given up, as https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
and i replace the command with pip install .
and i finally installed it successfully.
Sorry for the disturbance I've caused you through my carelessness.
Thanks for your help. Looking forward to seeing your better work in the future :)
Thanks for investigating the issue!
I have already installed all dependency well. And as I try to install it by the following command
The error occurs:
it seems that
#include <iomanip>
is needed insrc/tetrahedra_tracer.cpp
. So I try to install manually byand it failed again
Can you please help? Thank you.