AttributeError: module 'trimesh' has no attribute 'util'
postnubilaphoebus opened this issue · comments
Python 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import trimesh
trimesh.util.attach_to_log()
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'trimesh' has no attribute 'util'
trimesh.version
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'trimesh' has no attribute 'version'
import sys
if "trimesh" in sys.modules:
... print("trimesh installed")
...
trimesh installed
System: Ubuntu 22.04.4 LTS
Hey, how did you install trimesh? Have you tried running pip install --upgrade trimesh
, or on a local checkout pip install -e .
?
This can also happen if you run your script next to a folder named trimesh
that doesn't contain the trimesh
library.
@mikedh
Hi, thank you for the quick reply. I first tried pip install trimesh
, and after that didn't work, I uninstalled it, and used pip install trimesh[easy]
. The problem was first fixed when I rebooted my machine and ran Python from the shell. However, when I imported trimesh in my Python file as part of other modules, the error re-emerged.
Edit: Nevermind, I had a file called trimesh in my local folder. Deleting that file solved the problem.