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: cannot import name 'mesh_core_cython' #9

Open
RAOMMA opened this issue May 26, 2023 · 2 comments
Open

ImportError: cannot import name 'mesh_core_cython' #9

RAOMMA opened this issue May 26, 2023 · 2 comments

Comments

@RAOMMA
Copy link

RAOMMA commented May 26, 2023

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)

@NicolaGugole
Copy link

+1 with the above.

@RAOMMA
Copy link
Author

RAOMMA commented May 30, 2023

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

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

2 participants