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 'geometry_hash' from 'trimesh.viewer.windowed' #2311

Closed
JBKacerovsky opened this issue Oct 29, 2024 · 1 comment · Fixed by #2312
Closed

Comments

@JBKacerovsky
Copy link

Thanks for a fantastic library. It comes in very useful for me all the time!

I ran into a small bug though. Trying to run the example examples/widget.py I got this error:
ImportError: cannot import name 'geometry_hash' from 'trimesh.viewer.windowed'

It seems this function was renamed from geometry_hash to _geometry_hash in commit e68432c but the import was not updated in trimesh/viewer/widget.py.

Changing the widget.py import in my venv site-packages to

from .. import rendering
from .trackball import Trackball
from .windowed import SceneViewer
from .windowed import _geometry_hash as geometry_hash 

fixed the issue for me.

mikedh added a commit that referenced this issue Oct 29, 2024
@mikedh
Copy link
Owner

mikedh commented Oct 31, 2024

Thanks for the report! Should be fixed when #2312 is released.

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

Successfully merging a pull request may close this issue.

2 participants