Hi, I am trying to install hemopi2 but keep getting the following error.
Thank you.
(hemopi2) swijegun@bio-g-1:~$ pip install hemopi2
Collecting hemopi2
Downloading hemopi2-1.3-py3-none-any.whl.metadata (11 kB)
Collecting numpy (from hemopi2)
Downloading numpy-2.3.1-cp313-cp313-manylinux_2_28_x86_64.whl.metadata (62 kB)
Collecting pandas (from hemopi2)
Downloading pandas-2.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (91 kB)
Collecting scikit-learn==1.3.1 (from hemopi2)
Downloading scikit-learn-1.3.1.tar.gz (7.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 3.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [642 lines of output]
Partial import of sklearn during the build process.
Compiling sklearn/__check_build/_check_build.pyx because it changed.
Compiling sklearn/_isotonic.pyx because it changed.
Compiling sklearn/_loss/_loss.pyx because it changed.
Compiling sklearn/cluster/_dbscan_inner.pyx because it changed.
Compiling sklearn/cluster/_hierarchical_fast.pyx because it changed.
Compiling sklearn/cluster/_k_means_common.pyx because it changed.
Compiling sklearn/cluster/_k_means_lloyd.pyx because it changed.
Compiling sklearn/cluster/_k_means_elkan.pyx because it changed.
Compiling sklearn/cluster/_k_means_minibatch.pyx because it changed.
Compiling sklearn/cluster/_hdbscan/_linkage.pyx because it changed.
Compiling sklearn/cluster/_hdbscan/_reachability.pyx because it changed.
Compiling sklearn/cluster/_hdbscan/_tree.pyx because it changed.
Compiling sklearn/datasets/_svmlight_format_fast.pyx because it changed.
Compiling sklearn/decomposition/_online_lda_fast.pyx because it changed.
Compiling sklearn/decomposition/_cdnmf_fast.pyx because it changed.
Compiling sklearn/ensemble/_gradient_boosting.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/histogram.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/splitting.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/_binning.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/common.pyx because it changed.
Compiling sklearn/ensemble/_hist_gradient_boosting/utils.pyx because it changed.
Compiling sklearn/feature_extraction/_hashing_fast.pyx because it changed.
Compiling sklearn/linear_model/_cd_fast.pyx because it changed.
Compiling sklearn/linear_model/_sgd_fast.pyx because it changed.
Compiling sklearn/linear_model/_sag_fast.pyx because it changed.
Compiling sklearn/manifold/_utils.pyx because it changed.
Compiling sklearn/manifold/_barnes_hut_tsne.pyx because it changed.
Compiling sklearn/metrics/_pairwise_fast.pyx because it changed.
Compiling sklearn/metrics/_dist_metrics.pyx because it changed.
Compiling sklearn/metrics/cluster/_expected_mutual_info_fast.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_base.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_argkmin.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_argkmin_classmode.pyx because it changed.
Compiling sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.pyx because it changed.
Compiling sklearn/preprocessing/_csr_polynomial_expansion.pyx because it changed.
Compiling sklearn/preprocessing/_target_encoder_fast.pyx because it changed.
Compiling sklearn/neighbors/_ball_tree.pyx because it changed.
Compiling sklearn/neighbors/_kd_tree.pyx because it changed.
Compiling sklearn/neighbors/_partition_nodes.pyx because it changed.
Compiling sklearn/neighbors/_quad_tree.pyx because it changed.
Compiling sklearn/svm/_newrand.pyx because it changed.
Compiling sklearn/svm/_libsvm.pyx because it changed.
Compiling sklearn/svm/_liblinear.pyx because it changed.
Compiling sklearn/svm/_libsvm_sparse.pyx because it changed.
Compiling sklearn/tree/_tree.pyx because it changed.
Compiling sklearn/tree/_splitter.pyx because it changed.
Compiling sklearn/tree/_criterion.pyx because it changed.
Compiling sklearn/tree/_utils.pyx because it changed.
Compiling sklearn/utils/sparsefuncs_fast.pyx because it changed.
Compiling sklearn/utils/_cython_blas.pyx because it changed.
Compiling sklearn/utils/arrayfuncs.pyx because it changed.
Compiling sklearn/utils/murmurhash.pyx because it changed.
Compiling sklearn/utils/_fast_dict.pyx because it changed.
Compiling sklearn/utils/_openmp_helpers.pyx because it changed.
Compiling sklearn/utils/_seq_dataset.pyx because it changed.
Compiling sklearn/utils/_weight_vector.pyx because it changed.
Compiling sklearn/utils/_random.pyx because it changed.
Compiling sklearn/utils/_logistic_sigmoid.pyx because it changed.
Compiling sklearn/utils/_typedefs.pyx because it changed.
Compiling sklearn/utils/_heap.pyx because it changed.
Compiling sklearn/utils/_sorting.pyx because it changed.
Compiling sklearn/utils/_vector_sentinel.pyx because it changed.
Compiling sklearn/utils/_isfinite.pyx because it changed.
Error compiling Cython file:
------------------------------------------------------------
...
# particularly tiny on Windows/MSVC.
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:19:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:20:33: 'int_t' is not a type identifier
Traceback (most recent call last):
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1262, in cythonize_one_helper
return cythonize_one(*m)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1238, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/linear_model/_cd_fast.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# particularly tiny on Windows/MSVC.
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:19:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:20:33: 'int_t' is not a type identifier
Traceback (most recent call last):
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1262, in cythonize_one_helper
return cythonize_one(*m)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1238, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/tree/_utils.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# particularly tiny on Windows/MSVC.
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:19:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:20:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
from . import check_random_state
cdef UINT32_t DEFAULT_SEED = 1
cpdef _sample_without_replacement_check_input(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:22:46: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef UINT32_t DEFAULT_SEED = 1
cpdef _sample_without_replacement_check_input(cnp.int_t n_population,
cnp.int_t n_samples):
^
------------------------------------------------------------
sklearn/utils/_random.pyx:23:46: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
'n_samples, got n_samples > n_population (%s > %s)'
% (n_samples, n_population))
cpdef _sample_without_replacement_with_tracking_selection(
cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:36:8: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
% (n_samples, n_population))
cpdef _sample_without_replacement_with_tracking_selection(
cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:37:8: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
out[i] = j
return np.asarray(out)
cpdef _sample_without_replacement_with_pool(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:100:44: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
return np.asarray(out)
cpdef _sample_without_replacement_with_pool(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:101:44: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
return np.asarray(out)
cpdef _sample_without_replacement_with_reservoir_sampling(
cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:157:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
return np.asarray(out)
cpdef _sample_without_replacement_with_reservoir_sampling(
cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:158:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
out[j] = i
return np.asarray(out)
cpdef sample_without_replacement(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:216:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
return np.asarray(out)
cpdef sample_without_replacement(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pyx:217:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
out : ndarray of shape (n_samples,)
The sampled subsets of integer.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
^
------------------------------------------------------------
sklearn/utils/_random.pyx:79:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
The sampled subsets of integer.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
^
------------------------------------------------------------
sklearn/utils/_random.pyx:80:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
cdef cnp.int_t[::1] out = np.empty((n_samples, ), dtype=int)
^
------------------------------------------------------------
sklearn/utils/_random.pyx:81:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
out : ndarray of shape (n_samples,)
The sampled subsets of integer.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
^
------------------------------------------------------------
sklearn/utils/_random.pyx:134:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
The sampled subsets of integer.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
^
------------------------------------------------------------
sklearn/utils/_random.pyx:135:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
cdef cnp.int_t[::1] out = np.empty((n_samples,), dtype=int)
^
------------------------------------------------------------
sklearn/utils/_random.pyx:136:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
cdef cnp.int_t[::1] out = np.empty((n_samples,), dtype=int)
cdef cnp.int_t[::1] pool = np.empty((n_population,), dtype=int)
^
------------------------------------------------------------
sklearn/utils/_random.pyx:137:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
necessarily random. Use a random permutation of the array if the order
of the items has to be randomized.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
^
------------------------------------------------------------
sklearn/utils/_random.pyx:194:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
of the items has to be randomized.
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
^
------------------------------------------------------------
sklearn/utils/_random.pyx:195:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
"""
_sample_without_replacement_check_input(n_population, n_samples)
cdef cnp.int_t i
cdef cnp.int_t j
cdef cnp.int_t[::1] out = np.empty((n_samples, ), dtype=int)
^
------------------------------------------------------------
sklearn/utils/_random.pyx:196:9: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# 054289.html
#
for i in range(n_samples):
out[i] = i
for i from n_samples <= i < n_population:
^
------------------------------------------------------------
sklearn/utils/_random.pyx:208:4: Compiler crash in AnalyseExpressionsTransform
ModuleNode.body = StatListNode(_random.pyx:13:0)
StatListNode.stats[8] = StatListNode(_random.pyx:156:6)
StatListNode.stats[0] = CFuncDefNode(_random.pyx:156:6,
args = [...]/3,
doc = 'Sample integers without replacement.\n\n Select n_samples integers from the set [0, n_population) without\n replacement.\n\n Time complexity of\n O((n_population - n_samples) * O(np.random.randint) + n_samples)\n Space complexity of O(n_samples)\n\n\n Parameters\n ----------\n n_population : int\n The size of the set to sample from.\n\n n_samples : int\n The number of integer to sample.\n\n random_state : int, RandomState instance or None, default=None\n If int, random_state is the seed used by the random number generator;\n If RandomState instance, random_state is the random number generator;\n If None, the random number generator is the RandomState instance used\n by `np.random`.\n\n Returns\n -------\n out : ndarray of shape (n_samples,)\n The sampled subsets of integer. The order of the items is not\n necessarily random. Use a random permutation of the array if the order\n of the items has to be randomized.\n ',
modifiers = [...]/0,
overridable = 1,
visibility = 'private')
File 'Nodes.py', line 435, in analyse_expressions: StatListNode(_random.pyx:161:4,
is_terminator = True)
File 'Nodes.py', line 6853, in analyse_expressions: ForFromStatNode(_random.pyx:208:4,
relation1 = '<=',
relation2 = '<')
File 'Nodes.py', line 6875, in set_up_loop: ForFromStatNode(_random.pyx:208:4,
relation1 = '<=',
relation2 = '<')
Compiler crash traceback from this point on:
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Compiler/Nodes.py", line 6875, in set_up_loop
loop_type = PyrexTypes.widest_numeric_type(loop_type, self.bound1.type)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Compiler/PyrexTypes.py", line 4481, in widest_numeric_type
elif type1.rank < type2.rank:
^^^^^^^^^^
AttributeError: 'ErrorType' object has no attribute 'rank'
Traceback (most recent call last):
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1262, in cythonize_one_helper
return cythonize_one(*m)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1238, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/utils/_random.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# particularly tiny on Windows/MSVC.
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:19:33: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# It corresponds to the maximum representable value for
# 32-bit signed integers (i.e. 2^31 - 1).
RAND_R_MAX = 2147483647
cpdef sample_without_replacement(cnp.int_t n_population,
cnp.int_t n_samples,
^
------------------------------------------------------------
sklearn/utils/_random.pxd:20:33: 'int_t' is not a type identifier
Traceback (most recent call last):
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1262, in cythonize_one_helper
return cythonize_one(*m)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1238, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/utils/_seq_dataset.pyx
[ 1/68] Cythonizing sklearn/__check_build/_check_build.pyx
[ 2/68] Cythonizing sklearn/_isotonic.pyx
[ 3/68] Cythonizing sklearn/_loss/_loss.pyx
[ 4/68] Cythonizing sklearn/cluster/_dbscan_inner.pyx
[ 5/68] Cythonizing sklearn/cluster/_hdbscan/_linkage.pyx
[ 6/68] Cythonizing sklearn/cluster/_hdbscan/_reachability.pyx
[ 7/68] Cythonizing sklearn/cluster/_hdbscan/_tree.pyx
[ 8/68] Cythonizing sklearn/cluster/_hierarchical_fast.pyx
[ 9/68] Cythonizing sklearn/cluster/_k_means_common.pyx
[10/68] Cythonizing sklearn/cluster/_k_means_elkan.pyx
[11/68] Cythonizing sklearn/cluster/_k_means_lloyd.pyx
[12/68] Cythonizing sklearn/cluster/_k_means_minibatch.pyx
[13/68] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx
[14/68] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx
[15/68] Cythonizing sklearn/decomposition/_online_lda_fast.pyx
[16/68] Cythonizing sklearn/ensemble/_gradient_boosting.pyx
[17/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx
[18/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx
[19/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx
[20/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx
[21/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx
[22/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx
[23/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
[24/68] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx
[25/68] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx
[26/68] Cythonizing sklearn/linear_model/_cd_fast.pyx
[27/68] Cythonizing sklearn/linear_model/_sag_fast.pyx
[28/68] Cythonizing sklearn/linear_model/_sgd_fast.pyx
[29/68] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx
[30/68] Cythonizing sklearn/manifold/_utils.pyx
[31/68] Cythonizing sklearn/metrics/_dist_metrics.pyx
[32/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_argkmin.pyx
[33/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_argkmin_classmode.pyx
[34/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_base.pyx
[35/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.pyx
[36/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_middle_term_computer.pyx
[37/68] Cythonizing sklearn/metrics/_pairwise_distances_reduction/_radius_neighbors.pyx
[38/68] Cythonizing sklearn/metrics/_pairwise_fast.pyx
[39/68] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx
[40/68] Cythonizing sklearn/neighbors/_ball_tree.pyx
[41/68] Cythonizing sklearn/neighbors/_kd_tree.pyx
[42/68] Cythonizing sklearn/neighbors/_partition_nodes.pyx
[43/68] Cythonizing sklearn/neighbors/_quad_tree.pyx
[44/68] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx
[45/68] Cythonizing sklearn/preprocessing/_target_encoder_fast.pyx
[46/68] Cythonizing sklearn/svm/_liblinear.pyx
[47/68] Cythonizing sklearn/svm/_libsvm.pyx
[48/68] Cythonizing sklearn/svm/_libsvm_sparse.pyx
[49/68] Cythonizing sklearn/svm/_newrand.pyx
[50/68] Cythonizing sklearn/tree/_criterion.pyx
[51/68] Cythonizing sklearn/tree/_splitter.pyx
[52/68] Cythonizing sklearn/tree/_tree.pyx
[53/68] Cythonizing sklearn/tree/_utils.pyx
[54/68] Cythonizing sklearn/utils/_cython_blas.pyx
[55/68] Cythonizing sklearn/utils/_fast_dict.pyx
[56/68] Cythonizing sklearn/utils/_heap.pyx
[57/68] Cythonizing sklearn/utils/_isfinite.pyx
[58/68] Cythonizing sklearn/utils/_logistic_sigmoid.pyx
[59/68] Cythonizing sklearn/utils/_openmp_helpers.pyx
[60/68] Cythonizing sklearn/utils/_random.pyx
[61/68] Cythonizing sklearn/utils/_seq_dataset.pyx
[62/68] Cythonizing sklearn/utils/_sorting.pyx
[63/68] Cythonizing sklearn/utils/_typedefs.pyx
[64/68] Cythonizing sklearn/utils/_vector_sentinel.pyx
[65/68] Cythonizing sklearn/utils/_weight_vector.pyx
[66/68] Cythonizing sklearn/utils/arrayfuncs.pyx
[67/68] Cythonizing sklearn/utils/murmurhash.pyx
[68/68] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
~~~~^^^^^^^^^^^^^^^
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1262, in cythonize_one_helper
return cythonize_one(*m)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1238, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn/linear_model/_cd_fast.pyx
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
~~~~^^
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 632, in <module>
File "<string>", line 626, in setup_package
File "<string>", line 554, in configure_extension_modules
File "/tmp/pip-install-lsi8wmhz/scikit-learn_1168130b13e948acbabd149cac55ebb4/sklearn/_build_utils/__init__.py", line 80, in cythonize_extensions
return cythonize(
extension,
nthreads=n_jobs,
compiler_directives=compiler_directives,
)
File "/tmp/pip-build-env-03_x9pgt/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1106, in cythonize
result.get(99999) # seconds
~~~~~~~~~~^^^^^^^
File "/home/swijegun/miniconda3/envs/hemopi2/lib/python3.13/multiprocessing/pool.py", line 774, in get
raise self._value
Cython.Compiler.Errors.CompileError: sklearn/linear_model/_cd_fast.pyx
[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.
Hi, I am trying to install hemopi2 but keep getting the following error.
Thank you.