'Issue with numpy-stl package installation
I have python 3.10.4 and pip 22.1 on my Mac, and I'm trying to install numpy-stl, but it shows the following error:
% pip install numpy-stl
Collecting numpy-stl
Using cached numpy-stl-2.16.3.tar.gz (772 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/d9/w87xyhb12vgg2x5qygx_nvr80000gn/T/pip-install-vqgt3n3w/numpy-stl_29a48c7f5e8d42acba3ec15ac439e1b9/setup.py", line 19, in <module>
from stl import stl
File "/private/var/folders/d9/w87xyhb12vgg2x5qygx_nvr80000gn/T/pip-install-vqgt3n3w/numpy-stl_29a48c7f5e8d42acba3ec15ac439e1b9/stl/__init__.py", line 1, in <module>
from .stl import BUFFER_SIZE
File "/private/var/folders/d9/w87xyhb12vgg2x5qygx_nvr80000gn/T/pip-install-vqgt3n3w/numpy-stl_29a48c7f5e8d42acba3ec15ac439e1b9/stl/stl.py", line 11, in <module>
from . import base
File "/private/var/folders/d9/w87xyhb12vgg2x5qygx_nvr80000gn/T/pip-install-vqgt3n3w/numpy-stl_29a48c7f5e8d42acba3ec15ac439e1b9/stl/base.py", line 80, in <module>
class BaseMesh(logger.Logged, abc.Mapping):
File "/private/var/folders/d9/w87xyhb12vgg2x5qygx_nvr80000gn/T/pip-install-vqgt3n3w/numpy-stl_29a48c7f5e8d42acba3ec15ac439e1b9/stl/base.py", line 65, in logged
logger_name = logger.Logged._Logged__get_name(
AttributeError: type object 'Logged' has no attribute '_Logged__get_name'. Did you mean: '_LoggerBase__get_name'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Can someone please help me with this? Thanks very much!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|