ucsb-seclab/karonte

Error:metadata-generation-fail while installing requirements.txt

nyw0102 opened this issue · 0 comments

To install required libraries in karonte/tools,
I build them using "pip3 install -r requirements.txt". But there is 'metadata-generation.txt' error while installing scikit-learn.
Below is the log after installing:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 174, in prepare_metadata_for_build_wheel
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
[ 1/53] Cythonizing sklearn/__check_build/_check_build.pyx
[ 2/53] Cythonizing sklearn/_isotonic.pyx
[ 3/53] Cythonizing sklearn/cluster/_dbscan_inner.pyx
[ 4/53] Cythonizing sklearn/cluster/_hierarchical_fast.pyx
[ 5/53] Cythonizing sklearn/cluster/_k_means_elkan.pyx
[ 6/53] Cythonizing sklearn/cluster/_k_means_fast.pyx
[ 7/53] Cythonizing sklearn/cluster/_k_means_lloyd.pyx
[ 8/53] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx
[ 9/53] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx
[10/53] Cythonizing sklearn/decomposition/_online_lda_fast.pyx
[11/53] Cythonizing sklearn/ensemble/_gradient_boosting.pyx
[12/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_binning.pyx
[13/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx
[14/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_gradient_boosting.pyx
[15/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_loss.pyx
[16/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/_predictor.pyx
[17/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/common.pyx
[18/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/histogram.pyx
[19/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
[20/53] Cythonizing sklearn/ensemble/_hist_gradient_boosting/utils.pyx
[21/53] Cythonizing sklearn/feature_extraction/_hashing_fast.pyx
[22/53] Cythonizing sklearn/linear_model/_cd_fast.pyx
[23/53] Cythonizing sklearn/linear_model/_sag_fast.pyx
[24/53] Cythonizing sklearn/linear_model/_sgd_fast.pyx
[25/53] Cythonizing sklearn/manifold/_barnes_hut_tsne.pyx
[26/53] Cythonizing sklearn/manifold/_utils.pyx
[27/53] Cythonizing sklearn/metrics/_pairwise_fast.pyx
[28/53] Cythonizing sklearn/metrics/cluster/_expected_mutual_info_fast.pyx
[29/53] Cythonizing sklearn/neighbors/_ball_tree.pyx
[30/53] Cythonizing sklearn/neighbors/_dist_metrics.pyx
[31/53] Cythonizing sklearn/neighbors/_kd_tree.pyx
[32/53] Cythonizing sklearn/neighbors/_quad_tree.pyx
[33/53] Cythonizing sklearn/neighbors/_typedefs.pyx
[34/53] Cythonizing sklearn/preprocessing/_csr_polynomial_expansion.pyx
[35/53] Cythonizing sklearn/svm/_liblinear.pyx
[36/53] Cythonizing sklearn/svm/_libsvm.pyx
[37/53] Cythonizing sklearn/svm/_libsvm_sparse.pyx
[38/53] Cythonizing sklearn/svm/_newrand.pyx
[39/53] Cythonizing sklearn/tree/_criterion.pyx
[40/53] Cythonizing sklearn/tree/_splitter.pyx
[41/53] Cythonizing sklearn/tree/_tree.pyx
[42/53] Cythonizing sklearn/tree/_utils.pyx
[43/53] Cythonizing sklearn/utils/_cython_blas.pyx
[44/53] Cythonizing sklearn/utils/_fast_dict.pyx
[45/53] Cythonizing sklearn/utils/_logistic_sigmoid.pyx
[46/53] Cythonizing sklearn/utils/_openmp_helpers.pyx
[47/53] Cythonizing sklearn/utils/_random.pyx
[48/53] Cythonizing sklearn/utils/_seq_dataset.pyx
[49/53] Cythonizing sklearn/utils/_weight_vector.pyx
[50/53] Cythonizing sklearn/utils/arrayfuncs.pyx
[51/53] Cythonizing sklearn/utils/graph_shortest_path.pyx
[52/53] Cythonizing sklearn/utils/murmurhash.pyx
[53/53] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 301, in
setup_package()
File "setup.py", line 297, in setup_package
setup(**metadata)
File "/tmp/pip-build-env-16c_d1ts/overlay/local/lib/python3.10/dist-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "setup.py", line 188, in configuration
config.add_subpackage('sklearn')
File "/tmp/pip-build-env-16c_d1ts/overlay/local/lib/python3.10/dist-packages/numpy/distutils/misc_util.py", line 1050, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "/tmp/pip-build-env-16c_d1ts/overlay/local/lib/python3.10/dist-packages/numpy/distutils/misc_util.py", line 1016, in get_subpackage
config = self._get_configuration_from_setup_py(
File "/tmp/pip-build-env-16c_d1ts/overlay/local/lib/python3.10/dist-packages/numpy/distutils/misc_util.py", line 958, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "/tmp/pip-install-z1hhjb96/scikit-learn/sklearn/setup.py", line 83, in configuration
cythonize_extensions(top_path, config)
File "/tmp/pip-install-z1hhjb96/scikit-learn/sklearn/_build_utils/init.py", line 70, in cythonize_extensions
config.ext_modules = cythonize(
File "/tmp/pip-build-env-16c_d1ts/overlay/local/lib/python3.10/dist-packages/Cython/Build/Dependencies.py", line 1125, in cythonize
result.get(99999) # seconds
File "/usr/lib/python3.10/multiprocessing/pool.py", line 774, in get
raise self._value
Cython.Compiler.Errors.CompileError: sklearn/ensemble/_hist_gradient_boosting/splitting.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.
╰─> scikit-learn

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.