CtrlHair icon indicating copy to clipboard operation
CtrlHair copied to clipboard

ImportError: cannot import name 'mesh_core_cython'

Open RAOMMA opened this issue 1 year ago • 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)

RAOMMA avatar May 26 '23 09:05 RAOMMA

+1 with the above.

NicolaGugole avatar May 30 '23 06:05 NicolaGugole

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

RAOMMA avatar May 30 '23 08:05 RAOMMA