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

Compiling with Alpine on Mac Silicone #62

Closed
vkozmik opened this issue Nov 9, 2024 · 1 comment
Closed

Compiling with Alpine on Mac Silicone #62

vkozmik opened this issue Nov 9, 2024 · 1 comment

Comments

@vkozmik
Copy link

vkozmik commented Nov 9, 2024

Hi, I am trying to build a Docker image based on Alpine Python 3.12 and I am facing issues when compiling this package. Could you please advise?

Error log

1079.6   ChefBuildError
1079.6 
1079.6   Backend subprocess exited when trying to invoke get_requires_for_build_wheel
1079.6   
1079.6   /tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/tmp2tm4ne8k/sklearn_pmml_model-1.0.7/sklearn_pmml_model/ensemble/_gradient_boosting.pyx
1079.6     tree = Parsing.p_module(s, pxd, full_module_name)
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_splitter.pxd:96:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_splitter.pxd:98:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_tree.pxd:36:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:45:53: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:263:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:116:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               New starting index position of the samples in the right child
1079.6           """
1079.6   
1079.6           pass
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:116:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:126:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           primary function of the criterion class.
1079.6           """
1079.6   
1079.6           pass
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:126:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:146:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               stored
1079.6           """
1079.6   
1079.6           pass
1079.6   
1079.6       cdef void node_value(self, double* dest) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:146:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6                           ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:160:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               The memory address where the node value should be stored.
1079.6           """
1079.6   
1079.6           pass
1079.6   
1079.6       cdef double proxy_impurity_improvement(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:160:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6       cdef double impurity_improvement(self, double impurity) nogil
1079.6       cdef double proxy_impurity_improvement(self) nogil
1079.6                                             ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:178:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           self.children_impurity(&impurity_left, &impurity_right)
1079.6   
1079.6           return (- self.weighted_n_right * impurity_right
1079.6                   - self.weighted_n_left * impurity_left)
1079.6   
1079.6       cdef double impurity_improvement(self, double impurity) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:178:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6       cdef double impurity_improvement(self, double impurity) nogil
1079.6                                       ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:492:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               sum_total += self.sum_stride
1079.6   
1079.6           self.pos = new_pos
1079.6           return 0
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:492:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:495:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           return 0
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6           pass
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:495:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:499:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil:
1079.6           pass
1079.6   
1079.6       cdef void node_value(self, double* dest) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:499:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6                           ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:534:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       The cross-entropy is then defined as
1079.6   
1079.6           cross-entropy = -\sum_{k=0}^{K-1} count_k log(count_k)
1079.6       """
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:534:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:556:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6               sum_total += self.sum_stride
1079.6   
1079.6           return entropy / self.n_outputs
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:556:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:616:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6           index = \sum_{k=0}^{K-1} count_k (1 - count_k)
1079.6                 = 1 - \sum_{k=0}^{K-1} count_k ** 2
1079.6       """
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:616:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:643:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6               sum_total += self.sum_stride
1079.6   
1079.6           return gini / self.n_outputs
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:643:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:883:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               sum_right[k] = sum_total[k] - sum_left[k]
1079.6   
1079.6           self.pos = new_pos
1079.6           return 0
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:883:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:886:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           return 0
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6           pass
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:886:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:890:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil:
1079.6           pass
1079.6   
1079.6       cdef void node_value(self, double* dest) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:890:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6                           ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:905:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       """Mean squared error impurity criterion.
1079.6   
1079.6           MSE = var_left + var_right
1079.6       """
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:905:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:919:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           for k in range(self.n_outputs):
1079.6               impurity -= (sum_total[k] / self.weighted_n_node_samples)**2.0
1079.6   
1079.6           return impurity / self.n_outputs
1079.6   
1079.6       cdef double proxy_impurity_improvement(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:919:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6       cdef double impurity_improvement(self, double impurity) nogil
1079.6       cdef double proxy_impurity_improvement(self) nogil
1079.6                                             ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:945:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6               proxy_impurity_right += sum_right[k] * sum_right[k]
1079.6   
1079.6           return (proxy_impurity_left / self.weighted_n_left +
1079.6                   proxy_impurity_right / self.weighted_n_right)
1079.6   
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:945:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:1226:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           self.weighted_n_right = (self.weighted_n_node_samples -
1079.6                                    self.weighted_n_left)
1079.6           self.pos = new_pos
1079.6           return 0
1079.6   
1079.6       cdef void node_value(self, double* dest) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:1226:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6                           ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:1233:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6           cdef SIZE_t k
1079.6           for k in range(self.n_outputs):
1079.6               dest[k] = <double> self.node_medians[k]
1079.6   
1079.6       cdef double node_impurity(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:1233:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     double weighted_n_samples, SIZE_t* samples, SIZE_t start,
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6                                ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:1258:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6                   impurity += fabs(y_ik - self.node_medians[k]) * w
1079.6   
1079.6           return impurity / (self.weighted_n_node_samples * self.n_outputs)
1079.6   
1079.6       cdef void children_impurity(self, double* p_impurity_left,
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:1258:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6                     SIZE_t end) except -1 nogil
1079.6       cdef int reset(self) except -1 nogil
1079.6       cdef int reverse_reset(self) except -1 nogil
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                  ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:1321:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6   
1079.6           diff = mean_left - mean_right
1079.6           improvement = n_left * n_right * diff^2 / (n_left + n_right)
1079.6       """
1079.6   
1079.6       cdef double proxy_impurity_improvement(self) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:1321:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6       cdef double impurity_improvement(self, double impurity) nogil
1079.6       cdef double proxy_impurity_improvement(self) nogil
1079.6                                             ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
1079.6   warning: sklearn_pmml_model/tree/_criterion.pyx:1351:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6           diff = (self.weighted_n_right * total_sum_left -
1079.6                   self.weighted_n_left * total_sum_right)
1079.6   
1079.6           return diff * diff / (self.weighted_n_left * self.weighted_n_right)
1079.6   
1079.6       cdef double impurity_improvement(self, double impurity) nogil:
1079.6            ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pyx:1351:9: Signature not compatible with previous declaration
1079.6   
1079.6   Error compiling Cython file:
1079.6   ------------------------------------------------------------
1079.6   ...
1079.6       cdef int update(self, SIZE_t new_pos) except -1 nogil
1079.6       cdef double node_impurity(self) nogil
1079.6       cdef void children_impurity(self, double* impurity_left,
1079.6                                   double* impurity_right) nogil
1079.6       cdef void node_value(self, double* dest) nogil
1079.6       cdef double impurity_improvement(self, double impurity) nogil
1079.6                                       ^
1079.6   ------------------------------------------------------------
1079.6   
1079.6   sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
1079.6   build configuration selected: optimized
1079.6   Compiling sklearn_pmml_model/tree/_tree.pyx because it changed.
1079.6   Compiling sklearn_pmml_model/tree/quad_tree.pyx because it changed.
1079.6   Compiling sklearn_pmml_model/tree/_criterion.pyx because it changed.
1079.6   Compiling sklearn_pmml_model/tree/_splitter.pyx because it changed.
1079.6   Compiling sklearn_pmml_model/tree/_utils.pyx because it changed.
1079.6   Compiling sklearn_pmml_model/ensemble/_gradient_boosting.pyx because it changed.
1079.6   [1/6] Cythonizing sklearn_pmml_model/ensemble/_gradient_boosting.pyx
1079.6   [2/6] Cythonizing sklearn_pmml_model/tree/_criterion.pyx
1079.6   Traceback (most recent call last):
1079.6     File "/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
1079.6       main()
1079.6     File "/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
1079.6       json_out["return_val"] = hook(**hook_input["kwargs"])
1079.6                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1079.6     File "/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
1079.6       return hook(config_settings)
1079.6              ^^^^^^^^^^^^^^^^^^^^^
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
1079.6       return self._get_build_requires(config_settings, requirements=[])
1079.6              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
1079.6       self.run_setup()
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 521, in run_setup
1079.6       super().run_setup(setup_script=setup_script)
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 319, in run_setup
1079.6       exec(code, locals())
1079.6     File "<string>", line 165, in <module>
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
1079.6       cythonize_one(*args)
1079.6     File "/tmp/tmpop4j2qmq/.venv/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
1079.6       raise CompileError(None, pyx_file)
1079.6   Cython.Compiler.Errors.CompileError: sklearn_pmml_model/tree/_criterion.pyx
1079.6   
1079.6 
1079.6   at /usr/local/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
1079.7       160│ 
1079.7       161│                 error = ChefBuildError("\n\n".join(message_parts))
1079.7       162│ 
1079.7       163│             if error is not None:
1079.7     → 164│                 raise error from None
1079.7       165│ 
1079.7       166│             return path
1079.7       167│ 
1079.7       168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
1079.7 
1079.7 Note: This error originates from the build backend, and is likely not a problem with poetry but with sklearn-pmml-model (1.0.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "sklearn-pmml-model (==1.0.7)"'.
1079.7 
------

@iamDecode
Copy link
Owner

This is likely due to an issue or imcompatibility with Cython 3.0.11. Using Cython 3.0.10 the module builds fine with any python version, including 3.13. I've updated the requirements.txt to reflect this.

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

No branches or pull requests

2 participants