Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError when using mesh_extract_tetrahedra.py #53

Open
LucioSunj opened this issue Sep 12, 2024 · 2 comments
Open

ImportError when using mesh_extract_tetrahedra.py #53

LucioSunj opened this issue Sep 12, 2024 · 2 comments

Comments

@LucioSunj
Copy link

LucioSunj commented Sep 12, 2024

Hi when I use mesh_extract_tetrahedra.py, I encountered the ImportError that:

mesh_extract_tetrahedra.py", line 14, in <module>
    from tetranerf.utils.extension import cpp
  File "/home/qizhong/miniconda3/envs/radegs/lib/python3.9/site-packages/tetranerf/utils/extension/__init__.py", line 1, in <module>
    from . import tetranerf_cpp_extension as cpp
ImportError: cannot import name 'tetranerf_cpp_extension' from partially initialized module 'tetranerf.utils.extension' (most likely due to a circular import) (/home/qizhong/miniconda3/envs/radegs/lib/python3.9/site-packages/tetranerf/utils/extension/__init__.py)

Could you please help me with that?

@wenkaier
Copy link

I also faced the same issue.

@XBXiaoBei
Copy link

I deleted all the newly generated files in submodules/tetra-triangulation, reinstalled tera-nerf, and it ran.

cd submodules/tetra-triangulation
conda install cmake
conda install conda-forge::gmp
conda install conda-forge::cgal
cmake .
# you can specify your own cuda path
# export CPATH=/usr/local/cuda-11.3/targets/x86_64-linux/include:$CPATH
make
pip install -e .

The reason why I reported an error here may be because I moved the location of RaDe-GS after I just started cmake. As a result, there may be problems with the contents of CMakeCache.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants