Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my error is :Failed building wheel for lapsolver,How can I install lapsolver on Ubuntu 24.04 with Python 3.8.19? #23

Open
WMXJY opened this issue Jan 25, 2025 · 1 comment

Comments

@WMXJY
Copy link

WMXJY commented Jan 25, 2025

wmxjy@wmxjy-Legion-R9000P-ARX8:$ conda activate argoverse
(argoverse) wmxjy@wmxjy-Legion-R9000P-ARX8:
$ pip install lapsolver
Collecting lapsolver
Using cached lapsolver-1.1.0.tar.gz (261 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: lapsolver
Building wheel for lapsolver (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [204 lines of output]
/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568/setup.py:9: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

          ********************************************************************************
          Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
  
          This deprecation is overdue, please update your project and remove deprecated
          calls to avoid build errors in the future.
          ********************************************************************************
  
  !!
    from setuptools.command.test import test
  /home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/__init__.py:94: _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)
  /home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  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/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/command/build_py.py:218: _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/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/command/build_py.py:218: _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/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.10 will be removed from a future version of
    CMake.
  
    Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
    to tell CMake that the project requires at least <min> but has been updated
    to work with policies introduced by <max> or earlier.
  
  
  -- The C compiler identification is GNU 10.5.0
  -- The CXX compiler identification is unknown
  -- 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
  CMake Error at CMakeLists.txt:2 (project):
    No CMAKE_CXX_COMPILER could be found.
  
    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.
  
  
  -- Configuring incomplete, errors occurred!
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568/setup.py", line 72, in <module>
      setup(
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
      self.run_command("build")
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568/setup.py", line 33, in run
      self.build_extension(ext)
    File "/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568/setup.py", line 57, in build_extension
      subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
    File "/home/wmxjy/anaconda3/envs/argoverse/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-ar8x5fuy/lapsolver_4daf3de0621746cd85a0ea8949e3c568/build/lib.linux-x86_64-cpython-38', '-DPYTHON_EXECUTABLE=/home/wmxjy/anaconda3/envs/argoverse/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  [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
Failed to build lapsolver
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lapsolver)
(argoverse) wmxjy@wmxjy-Legion-R9000P-ARX8:~$

@WMXJY
Copy link
Author

WMXJY commented Feb 7, 2025

The problem has been completely resolved. Please refer to:
https://blog.csdn.net/WMXJY/article/details/145422370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@WMXJY and others