wolph / numpy-stl

Simple library to make working with STL files (and 3D objects in general) fast and easy.
http://numpy-stl.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
605 stars 103 forks source link

stl broken with python-utils==3.2.0 #195

Closed jlucier closed 2 years ago

jlucier commented 2 years ago

It seems like python-utils==3.2.0 is incompatible with this package. I get the following stack trace when importing stl

    from stl.mesh import Mesh
/usr/local/lib/python3.10/dist-packages/stl/__init__.py:1: in <module>
    from .stl import BUFFER_SIZE
/usr/local/lib/python3.10/dist-packages/stl/stl.py:11: in <module>
    from . import base
/usr/local/lib/python3.10/dist-packages/stl/base.py:80: in <module>
    class BaseMesh(logger.Logged, abc.Mapping):
/usr/local/lib/python3.10/dist-packages/stl/base.py:65: in logged
    logger_name = logger.Logged._Logged__get_name(
E   AttributeError: type object 'Logged' has no attribute '_Logged__get_name'
wolph commented 2 years ago

It's silly of me not to consider this... I've released a new version of python-utils. If you install 3.2.2 you won't have the issue anymore :)

jlucier commented 2 years ago

Awesome! Thanks for the quick fix and the library itself!