Skip to content

NameError: name 'CCompiler' is not defined. Did you mean: 'ccompiler'? #12

@Chef-Steph

Description

@Chef-Steph

Collecting pysodmetrics
Using cached pysodmetrics-1.4.4-py3-none-any.whl.metadata (9.5 kB)
Collecting numpy~=1.18.0 (from pysodmetrics)
Using cached numpy-1.18.5.zip (5.4 MB)
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
╰─> [22 lines of output]
Running from numpy source directory.
:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
Traceback (most recent call last):
File "/users/b165213/.conda/envs/sam2-unet/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/users/b165213/.conda/envs/sam2-unet/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/users/b165213/.conda/envs/sam2-unet/lib/python3.10/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-ap9irodu/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-ap9irodu/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-ap9irodu/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 488, in
File "", line 465, in setup_package
File "/tmp/pip-install-ryu8tmdp/numpy_07b3569cf4f4409ab62cc42fcffce8f7/numpy/distutils/init.py", line 26, in
from . import ccompiler
File "/tmp/pip-install-ryu8tmdp/numpy_07b3569cf4f4409ab62cc42fcffce8f7/numpy/distutils/ccompiler.py", line 111, in
replace_method(CCompiler, 'find_executables', CCompiler_find_executables)
NameError: name 'CCompiler' is not defined. Did you mean: 'ccompiler'?
[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions