OS Monterey 12.5.1
M1 pro
I have installed all the prerequisites, as well as re-installed xcode. What am I missing?
Thanks in advance! And thank you for writing this software.
(env) samhilll@Sams-MacBook-Pro-2 topogreat % pip3 install stl_tools
Collecting stl_tools
Using cached stl_tools-0.3.0.tar.gz (105 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in ./env/lib/python3.11/site-packages (from stl_tools) (2.2.2)
Requirement already satisfied: scipy in ./env/lib/python3.11/site-packages (from stl_tools) (1.15.1)
Requirement already satisfied: matplotlib in ./env/lib/python3.11/site-packages (from stl_tools) (3.10.0)
Requirement already satisfied: contourpy>=1.0.1 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (1.3.1)
Requirement already satisfied: cycler>=0.10 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (4.55.3)
Requirement already satisfied: kiwisolver>=1.3.1 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (1.4.8)
Requirement already satisfied: packaging>=20.0 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (24.2)
Requirement already satisfied: pillow>=8 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (11.1.0)
Requirement already satisfied: pyparsing>=2.3.1 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (3.2.1)
Requirement already satisfied: python-dateutil>=2.7 in ./env/lib/python3.11/site-packages (from matplotlib->stl_tools) (2.9.0.post0)
Requirement already satisfied: six>=1.5 in ./env/lib/python3.11/site-packages (from python-dateutil>=2.7->matplotlib->stl_tools) (1.17.0)
Building wheels for collected packages: stl_tools
Building wheel for stl_tools (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [193 lines of output]
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
/Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:124: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
!!
********************************************************************************
With Python 2.7 end-of-life, support for building universal wheels
(i.e., wheels that support both Python 2 and Python 3)
is being obviated.
Please discontinue using this option, or if you still need it,
file an issue with pypa/setuptools describing your use case.
By 2025-Aug-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
********************************************************************************
!!
self.finalize_options()
running build
running build_py
creating build/lib.macosx-12.0-arm64-cpython-311/stl_tools
copying stl_tools/numpy2stl.py -> build/lib.macosx-12.0-arm64-cpython-311/stl_tools
copying stl_tools/image2stl.py -> build/lib.macosx-12.0-arm64-cpython-311/stl_tools
copying stl_tools/text2png.py -> build/lib.macosx-12.0-arm64-cpython-311/stl_tools
copying stl_tools/__init__.py -> build/lib.macosx-12.0-arm64-cpython-311/stl_tools
running build_ext
building 'stl_tools.cwrapped' extension
creating build/temp.macosx-12.0-arm64-cpython-311/stl_tools
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/numpy/_core/include -I/Users/samhilll/Documents/opensource/topogreat/env/include -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c stl_tools/cwrapped.c -o build/temp.macosx-12.0-arm64-cpython-311/stl_tools/cwrapped.o
In file included from stl_tools/cwrapped.c:314:
In file included from /Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/numpy/_core/include/numpy/arrayobject.h:5:
In file included from /Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12:
In file included from /Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1913:
/Users/samhilll/Documents/opensource/topogreat/env/lib/python3.11/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
stl_tools/cwrapped.c:1075:23: error: expression is not assignable
Py_SIZE(list) = len+1;
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:1187:23: error: expression is not assignable
Py_SIZE(list) = len+1;
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:4050:11: warning: explicitly assigning value of variable of type '__Pyx_memviewslice' to itself [-Wself-assign]
__pyx_r = __pyx_r;
~~~~~~~ ^ ~~~~~~~
stl_tools/cwrapped.c:5200:44: error: no member named 'names' in 'struct _PyArray_Descr'
if (unlikely(((PyObject *)__pyx_v_descr->names) == Py_None)) {
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:468:45: note: expanded from macro 'unlikely'
#define unlikely(x) __builtin_expect(!!(x), 0)
^
stl_tools/cwrapped.c:5204:43: error: no member named 'names' in 'struct _PyArray_Descr'
__pyx_t_1 = ((PyObject *)__pyx_v_descr->names); __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:5223:49: error: no member named 'fields' in 'struct _PyArray_Descr'
__pyx_t_3 = PyObject_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (!__pyx_t_3) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:5435:83: error: no member named 'elsize' in 'struct _PyArray_Descr'
(__pyx_v_offset[__pyx_t_11]) = ((__pyx_v_offset[__pyx_t_11]) + __pyx_v_child->elsize);
~~~~~~~~~~~~~ ^
stl_tools/cwrapped.c:16121:5: error: expression is not assignable
++Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:16124:5: error: expression is not assignable
--Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:16358:5: error: expression is not assignable
++Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:16361:5: error: expression is not assignable
--Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:16643:5: error: expression is not assignable
++Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:16646:5: error: expression is not assignable
--Py_REFCNT(o);
^ ~~~~~~~~~~~~
stl_tools/cwrapped.c:17133:35: error: too few arguments to function call, expected 17, have 15
__pyx_k_codeobj_49 = (PyObject*)__Pyx_PyCode_New(4, 0, 23, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_k_tuple_48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_50, __pyx_n_s__tessellate, 18, __pyx_empty_bytes); if (unlikely(!__pyx_k_codeobj_49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stl_tools/cwrapped.c:119:83: note: expanded from macro '__Pyx_PyCode_New'
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
~~~~~~~~~~ ^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/code.h:148:28: note: 'PyCode_New' declared here
PyAPI_FUNC(PyCodeObject *) PyCode_New(
^
stl_tools/cwrapped.c:17754:22: warning: 'PyUnicode_GET_SIZE' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:664:34: note: expanded from macro 'PyUnicode_GET_SIZE'
# define PyUnicode_GET_SIZE(op) PyUnicode_GET_SIZE(_PyObject_CAST(op))
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:651:1: note: 'PyUnicode_GET_SIZE' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:17754:52: warning: 'PyUnicode_GET_SIZE' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:664:34: note: expanded from macro 'PyUnicode_GET_SIZE'
# define PyUnicode_GET_SIZE(op) PyUnicode_GET_SIZE(_PyObject_CAST(op))
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:651:1: note: 'PyUnicode_GET_SIZE' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:17770:26: warning: 'PyUnicode_GET_SIZE' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:664:34: note: expanded from macro 'PyUnicode_GET_SIZE'
# define PyUnicode_GET_SIZE(op) PyUnicode_GET_SIZE(_PyObject_CAST(op))
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:651:1: note: 'PyUnicode_GET_SIZE' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:17770:59: warning: 'PyUnicode_GET_SIZE' is deprecated [-Wdeprecated-declarations]
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:664:34: note: expanded from macro 'PyUnicode_GET_SIZE'
# define PyUnicode_GET_SIZE(op) PyUnicode_GET_SIZE(_PyObject_CAST(op))
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:651:1: note: 'PyUnicode_GET_SIZE' has been explicitly marked deprecated here
Py_DEPRECATED(3.3)
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:18763:26: warning: 'PyEval_CallObjectWithKeywords' is deprecated [-Wdeprecated-declarations]
owned_instance = PyEval_CallObject(type, args);
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/ceval.h:34:5: note: expanded from macro 'PyEval_CallObject'
PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/ceval.h:27:1: note: 'PyEval_CallObjectWithKeywords' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:18951:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
return PyUnicode_FromUnicode(NULL, 0);
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/unicodeobject.h:600:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
^
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
stl_tools/cwrapped.c:18992:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
stl_tools/cwrapped.c:18993:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:119:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
stl_tools/cwrapped.c:18994:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:120:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
stl_tools/cwrapped.c:18995:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = local_type;
~~~~~~ ^
stl_tools/cwrapped.c:18996:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:119:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
stl_tools/cwrapped.c:18997:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:120:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
8 warnings and 20 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for stl_tools
Running setup.py clean for stl_tools
OS Monterey 12.5.1
M1 pro
I have installed all the prerequisites, as well as re-installed xcode. What am I missing?
Thanks in advance! And thank you for writing this software.