You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pip list | grep mm
comm 0.2.2
mmcv 2.1.0
mmdet 3.3.0
mmengine 0.10.4
smmap 5.0.1
timm 0.9.7
torchsummary 1.5.1
Reproduces the problem - code sample
pip install -v -e .
Reproduces the problem - command or script
pip install -v -e .
Reproduces the problem - error message
pip install -v -e .
Using pip 24.0 from /home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/pip (python 3.8)
Obtaining file:///mnt/14tb_disk1/haoyu/PoseEst/mmpose
Running command python setup.py egg_info
/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/dist.py:804: SetuptoolsDeprecationWarning: Deprecated API usage.
!!
********************************************************************************
As setuptools moves its configuration towards `pyproject.toml`,
`setuptools.config.parse_configuration` became deprecated.
For the time being, you can use the `setuptools.config.setupcfg` module
to access a backward compatible API, but this module is provisional
and might be removed in the future.
To read project metadata, consider using
``build.util.project_wheel_metadata`` (https://pypi.org/project/build/).
For simple scenarios, you can also try parsing the file directly
with the help of ``configparser``.
********************************************************************************
!!
parse_configuration(
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/mnt/14tb_disk1/haoyu/PoseEst/mmpose/setup.py", line 180, in
setup(
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/init.py", line 154, in setup
_install_setup_requires(attrs)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/init.py", line 146, in _install_setup_requires
dist.parse_config_files(ignore_option_errors=True)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/dist.py", line 804, in parse_config_files
parse_configuration(
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/config/init.py", line 37, in _wrapper
return fn(*args, **kwargs)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/config/setupcfg.py", line 191, in parse_configuration
distribution._referenced_files.update(
AttributeError: 'MinimalDistribution' object has no attribute '_referenced_files'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/haoyu/anaconda3/envs/openmmlab/bin/python -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py
- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
Prerequisite
Environment
OrderedDict([('sys.platform', 'linux'), ('Python', '3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0]'), ('CUDA available', True), ('MUSA available', False), ('numpy_random_seed', 2147483648), ('GPU 0,1,2,3', 'NVIDIA TITAN Xp'), ('CUDA_HOME', '/usr/local/cuda'), ('NVCC', 'Cuda compilation tools, release 12.2, V12.2.140'), ('GCC', 'gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0'), ('PyTorch', '1.12.1'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 7.3\n - C++ Version: 201402\n - Intel(R) oneAPI Math Kernel Library Version 2023.1-Product Build 20230303 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 10.2\n - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37\n - CuDNN 7.6.5\n - Magma 2.5.2\n - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.2, CUDNN_VERSION=7.6.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, \n'), ('TorchVision', '0.13.1'), ('OpenCV', '4.10.0'), ('MMEngine', '0.10.4'), ('MMPose', '1.3.2+b9c1b54')])
pip list | grep mm
comm 0.2.2
mmcv 2.1.0
mmdet 3.3.0
mmengine 0.10.4
smmap 5.0.1
timm 0.9.7
torchsummary 1.5.1
Reproduces the problem - code sample
pip install -v -e .
Reproduces the problem - command or script
pip install -v -e .
Reproduces the problem - error message
pip install -v -e .
Using pip 24.0 from /home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/pip (python 3.8)
Obtaining file:///mnt/14tb_disk1/haoyu/PoseEst/mmpose
Running command python setup.py egg_info
/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/dist.py:804: SetuptoolsDeprecationWarning: Deprecated API usage.
!!
!!
parse_configuration(
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/mnt/14tb_disk1/haoyu/PoseEst/mmpose/setup.py", line 180, in
setup(
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/init.py", line 154, in setup
_install_setup_requires(attrs)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/init.py", line 146, in _install_setup_requires
dist.parse_config_files(ignore_option_errors=True)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/dist.py", line 804, in parse_config_files
parse_configuration(
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/config/init.py", line 37, in _wrapper
return fn(*args, **kwargs)
File "/home/haoyu/anaconda3/envs/openmmlab/lib/python3.8/site-packages/setuptools/config/setupcfg.py", line 191, in parse_configuration
distribution._referenced_files.update(
AttributeError: 'MinimalDistribution' object has no attribute '_referenced_files'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /home/haoyu/anaconda3/envs/openmmlab/bin/python -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py
- It imports setuptools before invoking setup.py, to enable projects that directly
import from
distutils.core
to work with newer packaging standards.- It provides a clear error message when setuptools is not installed.
- It sets
sys.argv[0]
to the underlyingsetup.py
, when invokingsetup.py
sosetuptools doesn'"'"'t think the script is
-c
. This avoids the following warning:manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute
setup.py
since setuptools is not available in ""the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/mnt/14tb_disk1/haoyu/PoseEst/mmpose/setup.py'"'"',), "", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-6rmigh9a
cwd: /mnt/14tb_disk1/haoyu/PoseEst/mmpose/
Preparing metadata (setup.py) ... error
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.
Additional information
No response
The text was updated successfully, but these errors were encountered: