Open zzy-ucas opened 1 month ago
How can I resolve this problem when I run
pip install -e ./argoverse-api/
? Thanks!My Env: Ubuntu 24.04 LTS, Nvidia Driver Version: 535.183.01, CUDA Version: 11.7, Python=3.8
Obtaining file:///home/jd/Documents/code/SIMPL/argoverse-api Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: colour in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (0.1.5) Requirement already satisfied: descartes in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (1.1.0) Requirement already satisfied: h5py in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (3.11.0) Requirement already satisfied: hydra-core==1.1.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (1.1.0) Requirement already satisfied: imageio in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (2.34.2) Collecting lapsolver (from argoverse==1.1.0) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/48/2a/fb5465c016ae279444009942b8696de5010b2d01dbf98206b0762aaafb56/lapsolver-1.1.0.tar.gz (261 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: matplotlib in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (3.7.5) Requirement already satisfied: motmetrics==1.1.3 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (1.1.3) Requirement already satisfied: numba in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (0.56.4) Collecting numpy==1.19 (from argoverse==1.1.0) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/57/55/5366b0afed57facaf887b05f0e98c887a9e27021e3f4e78a26a6d535e538/numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB) Requirement already satisfied: omegaconf==2.1.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (2.1.0) Requirement already satisfied: opencv-python>=4.1.0.25 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (4.10.0.84) Requirement already satisfied: pandas>=0.23.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (2.0.3) Requirement already satisfied: pillow in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (10.4.0) Requirement already satisfied: polars in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/polars-1.2.1-py3.8-linux-x86_64.egg (from argoverse==1.1.0) (1.2.1) Requirement already satisfied: pyntcloud>=0.1.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/pyntcloud-0.3.1-py3.8.egg (from argoverse==1.1.0) (0.3.1) Requirement already satisfied: scipy>=1.4.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (1.10.1) Requirement already satisfied: shapely in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (2.0.5) Requirement already satisfied: scikit-learn in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (1.3.2) Requirement already satisfied: tqdm in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (4.66.4) Requirement already satisfied: typing-extensions in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from argoverse==1.1.0) (4.12.2) Requirement already satisfied: antlr4-python3-runtime==4.8 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from hydra-core==1.1.0->argoverse==1.1.0) (4.8) Requirement already satisfied: importlib-resources in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from hydra-core==1.1.0->argoverse==1.1.0) (6.4.0) Requirement already satisfied: PyYAML>=5.1.* in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from omegaconf==2.1.0->argoverse==1.1.0) (6.0.1) Requirement already satisfied: python-dateutil>=2.8.2 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from pandas>=0.23.1->argoverse==1.1.0) (2.9.0.post0) Requirement already satisfied: pytz>=2020.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from pandas>=0.23.1->argoverse==1.1.0) (2024.1) Requirement already satisfied: tzdata>=2022.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from pandas>=0.23.1->argoverse==1.1.0) (2024.1) INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while. Collecting pandas>=0.23.1 (from argoverse==1.1.0) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9b/52/18c98eb7cc3965faf26b7a49453c2d0145b50143b2e417ead4e97707e2c2/pandas-2.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 85.4 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/16/75/924e3a52c35cb105a152d29622d0f06bb0f48a677e77ddd6e11ef0004164/pandas-2.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 90.9 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/23/c0/4b71d4a9fbfe2fbe3e379bebc22bc935e4d09b7802899a5ac1b90bf090bb/pandas-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 90.8 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/a0/c62d63c5c69be9aae07836e4d7e25e7a6f5590be3d8f2d53f43eeec5c475/pandas-1.5.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 89.8 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/9c/6c/3bfce7f343360c1b537fb59ecbf6865e21d5c8d9e07a632bc6725744e919/pandas-1.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 90.7 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/b4/f9d5339c96449af3321a923e239cc00e08e69f0ca1c1544654028da950e4/pandas-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 91.6 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/4a/a0c8d3ba8d875a25578bcb3032b6ac9b2db3d016b0a762ab41e1a13f3b52/pandas-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 87.5 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of pandas to determine which version is compatible with other requirements. This could take a while. Downloading https://pypi.tuna.tsinghua.edu.cn/packages/91/b6/d8b292b084233b2fe46eb514af6b48238530e85b97d2b28a25d12faac1bc/pandas-1.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.7/11.7 MB 91.2 MB/s eta 0:00:00 INFO: pip is looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while. Collecting scipy>=1.4.0 (from argoverse==1.1.0) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d9/9c/ed263f84bb54ce0a4b0774f8ef21b45a70d54196a1b4bca9bb7a3c837437/scipy-1.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 34.5/34.5 MB 61.2 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/56/af/6a2b90fe280e89466d84747054667f74b84a8304f75931a173090919991f/scipy-1.9.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.8/33.8 MB 61.9 MB/s eta 0:00:00 Requirement already satisfied: contourpy>=1.0.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (1.1.1) Requirement already satisfied: cycler>=0.10 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (4.53.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (1.4.5) INFO: pip is looking at multiple versions of matplotlib to determine which version is compatible with other requirements. This could take a while. Collecting matplotlib (from argoverse==1.1.0) Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3c/25/c63fb77ceece3fbd85142381f97c7aeae6aeaf9a2993a20322fc9ae1ca7b/matplotlib-3.7.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 93.9 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/08/73/a4af3493a81d6e5e1fdb4c72f4d3573a7e94b60f7c2c69ab0275fdc7cd8e/matplotlib-3.7.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 86.3 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b4/c2/f74e0deb26379aead0956a6ecf9acd4587debba0c7abe4bd8fe53fe04ec2/matplotlib-3.7.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 94.8 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5d/22/f55638bea4af17edf23e1c919ad5d256141bbeec0196c450be9785f1dcb6/matplotlib-3.7.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 96.1 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/25/a3/ac5c470d1e448d80c67c901ecc332ff1c9f8549290ffe6f70bed9df9d79e/matplotlib-3.7.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 95.2 MB/s eta 0:00:00 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c4/49/80590115bcae4bd8ffb30fc52df459d785dd0f1542312c8c996b7206747c/matplotlib-3.6.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/9.4 MB 93.9 MB/s eta 0:00:00 Requirement already satisfied: packaging>=20.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (24.1) Requirement already satisfied: pyparsing>=2.2.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from matplotlib->argoverse==1.1.0) (3.1.2) Requirement already satisfied: llvmlite<0.40,>=0.39.0dev0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from numba->argoverse==1.1.0) (0.39.1) Requirement already satisfied: setuptools in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from numba->argoverse==1.1.0) (71.0.4) Requirement already satisfied: importlib-metadata in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from numba->argoverse==1.1.0) (8.0.0) Requirement already satisfied: joblib>=1.1.1 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from scikit-learn->argoverse==1.1.0) (1.4.2) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from scikit-learn->argoverse==1.1.0) (3.5.0) Requirement already satisfied: six>=1.5 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from python-dateutil>=2.8.2->pandas>=0.23.1->argoverse==1.1.0) (1.16.0) Requirement already satisfied: zipp>=0.5 in /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages (from importlib-metadata->numba->argoverse==1.1.0) (3.19.2) Building wheels for collected packages: argoverse, lapsolver Building editable for argoverse (pyproject.toml) ... done Created wheel for argoverse: filename=argoverse-1.1.0-0.editable-py3-none-any.whl size=12506 sha256=2a5572266661de2feaa3c68539e84bb7147529a28ab440ef732bbf4e562d2887 Stored in directory: /tmp/pip-ephem-wheel-cache-i1def903/wheels/88/1c/67/cef9ba05e87c5261c2e590c58367d537877d13efa2062e48fe Building wheel for lapsolver (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [332 lines of output] /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/lapsolver copying lapsolver/__init__.py -> build/lib.linux-x86_64-cpython-38/lapsolver creating build/lib.linux-x86_64-cpython-38/lapsolver/tests copying lapsolver/tests/test_files.py -> build/lib.linux-x86_64-cpython-38/lapsolver/tests copying lapsolver/tests/__init__.py -> build/lib.linux-x86_64-cpython-38/lapsolver/tests copying lapsolver/tests/test_dense.py -> build/lib.linux-x86_64-cpython-38/lapsolver/tests running egg_info writing lapsolver.egg-info/PKG-INFO writing dependency_links to lapsolver.egg-info/dependency_links.txt writing top-level names to lapsolver.egg-info/top_level.txt reading manifest file 'lapsolver.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'lapsolver.egg-info/SOURCES.txt' /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'lapsolver.data.dense' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'lapsolver.data.dense' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'lapsolver.data.dense' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'lapsolver.data.dense' to be distributed and are already explicitly excluding 'lapsolver.data.dense' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) /home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'lapsolver.etc' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'lapsolver.etc' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'lapsolver.etc' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'lapsolver.etc' to be distributed and are already explicitly excluding 'lapsolver.etc' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! check.warn(importable) creating build/lib.linux-x86_64-cpython-38/lapsolver/data creating build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs0.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs1.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs10.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs2.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs3.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs4.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs5.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs6.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs7.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs8.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense copying lapsolver/data/dense/costs9.npz -> build/lib.linux-x86_64-cpython-38/lapsolver/data/dense creating build/lib.linux-x86_64-cpython-38/lapsolver/etc copying lapsolver/etc/benchmark-dtype-int.png -> build/lib.linux-x86_64-cpython-38/lapsolver/etc copying lapsolver/etc/benchmark-dtype-numpy.float32.png -> build/lib.linux-x86_64-cpython-38/lapsolver/etc running build_ext CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at pybind11/tools/pybind11Tools.cmake:8 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. Call Stack (most recent call first): pybind11/CMakeLists.txt:33 (include) CMake Warning (dev) at pybind11/tools/FindPythonLibsNew.cmake:60 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): pybind11/tools/pybind11Tools.cmake:16 (find_package) pybind11/CMakeLists.txt:33 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Found PythonInterp: /home/jd/miniforge3/envs/simpl/bin/python (found version "3.8.19") -- Found PythonLibs: /home/jd/miniforge3/envs/simpl/lib/libpython3.8.so -- Performing Test HAS_CPP14_FLAG -- Performing Test HAS_CPP14_FLAG - Success -- pybind11 v2.2.1 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- LTO enabled -- Configuring done (0.5s) -- Generating done (0.0s) -- Build files have been written to: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/build/temp.linux-x86_64-cpython-38 [ 50%] Building CXX object CMakeFiles/lapsolverc.dir/src/lapsolverc.cpp.o In file included from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/cast.h:16, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h:13, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:43, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/src/lapsolverc.cpp:1: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/internals.h:82:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ~~~~~~~~~~~~~~~~~~~^~ In file included from /home/jd/miniforge3/envs/simpl/include/python3.8/pystate.h:10, from /home/jd/miniforge3/envs/simpl/include/python3.8/genobject.h:11, from /home/jd/miniforge3/envs/simpl/include/python3.8/Python.h:121, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/common.h:111, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pytypes.h:12, from /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/cast.h:13: /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/internals.h:82:33: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 82 | decltype(PyThread_create_key()) tstate = 0; // Usually an int but a long on Cygwin64 with Python 3.x | ~~~~~~~~~~~~~~~~~~~^~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/internals.h:167:52: warning: ‘int PyThread_create_key()’ is deprecated [-Wdeprecated-declarations] 167 | internals_ptr->tstate = PyThread_create_key(); | ~~~~~~~~~~~~~~~~~~~^~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:100:36: note: declared here 100 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_create_key(void); | ^~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/detail/internals.h:168:31: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 168 | PyThread_set_key_value(internals_ptr->tstate, tstate); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h: At global scope: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h:185:10: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 185 | std::uint16_t nargs; | ^~~~~~~~ | wint_t /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h: In constructor ‘pybind11::detail::function_call::function_call(pybind11::detail::function_record&, pybind11::handle)’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h:283:20: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’? 283 | args.reserve(f.nargs); | ^~~~~ | args /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/attr.h:284:28: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’? 284 | args_convert.reserve(f.nargs); | ^~~~~ | args /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, const char*, const std::type_info* const*, pybind11::size_t)’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:294:14: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’? 294 | rec->nargs = (std::uint16_t) args; | ^~~~~ | args /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:294:28: error: ‘uint16_t’ is not a member of ‘std’; did you mean ‘wint_t’? 294 | rec->nargs = (std::uint16_t) args; | ^~~~~~~~ | wint_t /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In static member function ‘static PyObject* pybind11::cpp_function::dispatcher(PyObject*, PyObject*, PyObject*)’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:492:40: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’? 492 | size_t pos_args = func.nargs; // Number of positional arguments that we need | ^~~~~ | args /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:622:53: error: ‘struct pybind11::detail::function_record’ has no member named ‘nargs’; did you mean ‘args’? 622 | second_pass_convert.resize(func.nargs, false); | ^~~~~ | args /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_acquire::gil_scoped_acquire()’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:1741:58: warning: ‘void* PyThread_get_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1741 | tstate = (PyThreadState *) PyThread_get_key_value(internals.tstate); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:104:39: note: declared here 104 | Py_DEPRECATED(3.7) PyAPI_FUNC(void *) PyThread_get_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:1753:35: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1753 | PyThread_set_key_value(internals.tstate, tstate); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In member function ‘void pybind11::gil_scoped_acquire::dec_ref()’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:1792:38: warning: ‘void PyThread_delete_key_value(int)’ is deprecated [-Wdeprecated-declarations] 1792 | PyThread_delete_key_value(detail::get_internals().tstate); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:105:37: note: declared here 105 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyThread_delete_key_value(int key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In constructor ‘pybind11::gil_scoped_release::gil_scoped_release(bool)’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:1820:39: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1820 | PyThread_set_key_value(key, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h: In destructor ‘pybind11::gil_scoped_release::~gil_scoped_release()’: /tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/pybind11/include/pybind11/pybind11.h:1833:35: warning: ‘int PyThread_set_key_value(int, void*)’ is deprecated [-Wdeprecated-declarations] 1833 | PyThread_set_key_value(key, tstate); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /home/jd/miniforge3/envs/simpl/include/python3.8/pythread.h:102:36: note: declared here 102 | Py_DEPRECATED(3.7) PyAPI_FUNC(int) PyThread_set_key_value(int key, | ^~~~~~~~~~~~~~~~~~~~~~ gmake[2]: *** [CMakeFiles/lapsolverc.dir/build.make:76: CMakeFiles/lapsolverc.dir/src/lapsolverc.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/lapsolverc.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2 Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/setup.py", line 72, in <module> setup( File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup return distutils.core.setup(**attrs) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands self.run_command(cmd) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/dist.py", line 956, in run_command super().run_command(command) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command cmd_obj.run() File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/command/bdist_wheel.py", line 373, in run self.run_command("build") File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/dist.py", line 956, in run_command super().run_command(command) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command cmd_obj.run() File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command self.distribution.run_command(command) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/dist.py", line 956, in run_command super().run_command(command) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 989, in run_command cmd_obj.run() File "/tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/setup.py", line 33, in run self.build_extension(ext) File "/tmp/pip-install-1qwwjnwa/lapsolver_a71b01e3f0b641d483d2bf783b570173/setup.py", line 58, in build_extension subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp) File "/home/jd/miniforge3/envs/simpl/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lapsolver Running setup.py clean for lapsolver Successfully built argoverse Failed to build lapsolver ERROR: Could not build wheels for lapsolver, which is required to install pyproject.toml-based projects WARNING: There was an error checking the latest version of pip.
pip list
----------------------- ------------ absl-py 2.1.0 antlr4-python3-runtime 4.8 argcomplete 3.4.0 argoverse 1.1.0 asttokens 2.4.1 av 12.3.0 av2 0.2.1 backcall 0.2.0 cachetools 5.4.0 certifi 2024.7.4 charset-normalizer 3.3.2 click 8.1.7 cmake 3.30.1 coloredlogs 15.0.1 colorlog 6.8.2 colour 0.1.5 contourpy 1.1.1 cycler 0.12.1 Cython 3.0.10 decorator 5.1.1 descartes 1.1.0 distlib 0.3.8 executing 2.0.1 filelock 3.15.4 flatbuffers 24.3.25 fonttools 4.53.1 google-auth 2.32.0 google-auth-oauthlib 1.0.0 grpcio 1.65.1 h5py 3.11.0 humanfriendly 10.0 hydra-core 1.1.0 idna 3.7 imageio 2.34.2 importlib_metadata 8.0.0 importlib_resources 6.4.0 ipdb 0.13.13 ipython 8.12.3 jedi 0.19.1 joblib 1.4.2 kiwisolver 1.4.5 lap 0.4.0 lazy_loader 0.4 llvmlite 0.39.1 Markdown 3.6 markdown-it-py 3.0.0 MarkupSafe 2.1.5 matplotlib 3.7.5 matplotlib-inline 0.1.7 mdurl 0.1.2 motmetrics 1.1.3 mpmath 1.3.0 networkx 3.1 nox 2024.4.15 numba 0.56.4 numpy 1.21.1 oauthlib 3.2.2 omegaconf 2.1.0 onnx 1.16.1 onnxruntime 1.18.1 onnxsim 0.4.36 opencv-python 4.10.0.84 packaging 24.1 pandas 2.0.3 parso 0.8.4 pexpect 4.9.0 pickleshare 0.7.5 pillow 10.4.0 pip 23.1.2 platformdirs 4.2.2 polars 1.2.1 prompt_toolkit 3.0.47 protobuf 5.27.2 ptyprocess 0.7.0 pure_eval 0.2.3 pyarrow 17.0.0 pyasn1 0.6.0 pyasn1_modules 0.4.0 Pygments 2.18.0 pyntcloud 0.3.1 pyparsing 3.1.2 pyproj 3.5.0 python-dateutil 2.9.0.post0 pytz 2024.1 PyWavelets 1.4.1 PyYAML 6.0.1 requests 2.32.3 requests-oauthlib 2.0.0 rich 13.7.1 rsa 4.9 scikit-image 0.21.0 scikit-learn 1.3.2 scipy 1.10.1 setuptools 71.0.4 shapely 2.0.5 six 1.16.0 stack-data 0.6.3 sympy 1.13.1 tensorboard 2.14.0 tensorboard-data-server 0.7.2 threadpoolctl 3.5.0 tifffile 2023.7.10 tomli 2.0.1 torch 1.12.0+cu116 torchvision 0.13.0+cu116 tqdm 4.66.4 traitlets 5.14.3 typing_extensions 4.12.2 tzdata 2024.1 urllib3 2.2.2 virtualenv 20.26.3 wcwidth 0.2.13 Werkzeug 3.0.3 wheel 0.43.0 xmltodict 0.13.0 zipp 3.19.2
Hi, I was facing the same issues and a lot of them were solved by downgrading to python 3.8.19.
The error still exists, but I can train & evaluate models by executing pip install setuptools==69.5.1
. It may help.
How can I resolve this problem when I run
pip install -e ./argoverse-api/
? Thanks!