XuyangGuo/CtrlHair

ImportError: cannot import name 'mesh_core_cython'

Opened this issue · 2 comments

Traceback (most recent call last):
File "/content/CtrlHair/ui/frontend_demo.py", line 24, in
from ui.backend import Backend
File "/content/CtrlHair/./ui/backend.py", line 25, in
from wrap_codes.mask_adaptor import wrap_by_imgs
File "/content/CtrlHair/./wrap_codes/mask_adaptor.py", line 6, in
from wrap_codes.wrap_triangle import triangle_wrap_hair
File "/content/CtrlHair/./wrap_codes/wrap_triangle/triangle_wrap_hair.py", line 12, in
from wrap_codes.wrap_triangle.step_4.help_warp import get_warpedUV
File "/content/CtrlHair/./wrap_codes/wrap_triangle/step_4/help_warp.py", line 9, in
from external_code.my_cython import mesh_core_cython
File "/content/CtrlHair/./external_code/my_cython/init.py", line 3, in
from . import mesh_core_cython
ImportError: cannot import name 'mesh_core_cython' from partially initialized module 'external_code.my_cython' (most likely due to a circular import) (/content/CtrlHair/./external_code/my_cython/init.py)

+1 with the above.

@NicolaGugole I solved this using the following command
cd CtrlHair/external_code/my_cython
python setup.py build_ext --inplace