real-stanford / universal_manipulation_interface

Universal Manipulation Interface: In-The-Wild Robot Teaching Without In-The-Wild Robots
https://umi-gripper.github.io/
MIT License
702 stars 138 forks source link

CondaEnvException: Pip failed #15

Closed haoshuiwuxiang closed 8 months ago

haoshuiwuxiang commented 8 months ago

配置conda环境报错: Successfully built spnav robosuite Failed to build egl-probe Installing collected packages: ur-rtde, spnav, py-spy, opencensus-context, nvidia-ml-py, monotonic, glfw, fastcrc, egl-probe, distlib, colorful, wrapt, werkzeug, v4l2py, threadpoolctl, termcolor, tensorboardX, tensorboard-data-server, rpds-py, python-xlib, PyExifTool, pydantic, pyasn1, prometheus-client, platformdirs, imageio-ffmpeg, imageio, imagecodecs, h5py, grpcio, googleapis-common-protos, fasteners, evdev, cachetools, blessed, absl-py, virtualenv, smart-open, rsa, referencing, pynput, pyasn1-modules, markdown, gpustat, free-mujoco-py, atomics, tensorboard, robosuite, jsonschema-specifications, google-auth, aiohttp-cors, robomimic, jsonschema, google-api-core, ray, opencensus Running setup.py install for egl-probe: started Running setup.py install for egl-probe: finished with status 'error'

Pip subprocess error: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [356 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-39 creating build/lib.linux-x86_64-cpython-39/egl_probe copying egl_probe/get_available_devices.py -> build/lib.linux-x86_64-cpython-39/egl_probe copying egl_probe/init.py -> build/lib.linux-x86_64-cpython-39/egl_probe running egg_info writing egl_probe.egg-info/PKG-INFO writing dependency_links to egl_probe.egg-info/dependency_links.txt writing top-level names to egl_probe.egg-info/top_level.txt reading manifest file 'egl_probe.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'egl_probe.egg-info/SOURCES.txt' /home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad' is absent from the packages configuration. !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad' 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 'egl_probe.glad' 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 'egl_probe.glad' to be distributed and are
          already explicitly excluding 'egl_probe.glad' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.EGL' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.EGL' 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 'egl_probe.glad.EGL' 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 'egl_probe.glad.EGL' to be distributed and are
          already explicitly excluding 'egl_probe.glad.EGL' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.KHR' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.KHR' 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 'egl_probe.glad.KHR' 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 'egl_probe.glad.KHR' to be distributed and are
          already explicitly excluding 'egl_probe.glad.KHR' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.X11' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.X11' 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 'egl_probe.glad.X11' 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 'egl_probe.glad.X11' to be distributed and are
          already explicitly excluding 'egl_probe.glad.X11' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.X11.extensions' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.X11.extensions' 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 'egl_probe.glad.X11.extensions' 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 'egl_probe.glad.X11.extensions' to be distributed and are
          already explicitly excluding 'egl_probe.glad.X11.extensions' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.glad' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.glad' 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 'egl_probe.glad.glad' 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 'egl_probe.glad.glad' to be distributed and are
          already explicitly excluding 'egl_probe.glad.glad' 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)
  copying egl_probe/CMakeLists.txt -> build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/query_devices.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/test_device.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/egl.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/gl.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/glx_dyn.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/linmath.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/EGL
  copying egl_probe/glad/EGL/eglplatform.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/EGL
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/KHR
  copying egl_probe/glad/KHR/khrplatform.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/KHR
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/X.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/XKBlib.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xatom.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xfuncproto.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xfuncs.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xlib.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/XlibConf.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xlibint.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xmd.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xosdefs.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xproto.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xprotostr.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xutil.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/cursorfont.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/keysym.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/keysymdef.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XKB.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XKBstr.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XShm.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/Xext.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/extutil.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shape.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shapeconst.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shm.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/egl.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/gl.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/glx.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  running build_ext
  Traceback (most recent call last):
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 21, in run
      out = subprocess.check_output(['cmake', '--version'])
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 1837, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 50, in <module>
      setup(
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 23, in run
      raise RuntimeError("CMake must be installed.")
  RuntimeError: CMake must be installed.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for egl-probe error: subprocess-exited-with-error

× Running setup.py install for egl-probe did not run successfully. │ exit code: 1 ╰─> [371 lines of output] running install /home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

          ********************************************************************************
          Please avoid running ``setup.py`` directly.
          Instead, use pypa/build, pypa/installer or other
          standards-based tools.

          See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
          ********************************************************************************

  !!
    self.initialize_options()
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-39
  creating build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/get_available_devices.py -> build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/__init__.py -> build/lib.linux-x86_64-cpython-39/egl_probe
  running egg_info
  writing egl_probe.egg-info/PKG-INFO
  writing dependency_links to egl_probe.egg-info/dependency_links.txt
  writing top-level names to egl_probe.egg-info/top_level.txt
  reading manifest file 'egl_probe.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file 'egl_probe.egg-info/SOURCES.txt'
  /home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad' 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 'egl_probe.glad' 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 'egl_probe.glad' to be distributed and are
          already explicitly excluding 'egl_probe.glad' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.EGL' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.EGL' 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 'egl_probe.glad.EGL' 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 'egl_probe.glad.EGL' to be distributed and are
          already explicitly excluding 'egl_probe.glad.EGL' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.KHR' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.KHR' 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 'egl_probe.glad.KHR' 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 'egl_probe.glad.KHR' to be distributed and are
          already explicitly excluding 'egl_probe.glad.KHR' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.X11' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.X11' 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 'egl_probe.glad.X11' 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 'egl_probe.glad.X11' to be distributed and are
          already explicitly excluding 'egl_probe.glad.X11' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.X11.extensions' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.X11.extensions' 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 'egl_probe.glad.X11.extensions' 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 'egl_probe.glad.X11.extensions' to be distributed and are
          already explicitly excluding 'egl_probe.glad.X11.extensions' 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/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'egl_probe.glad.glad' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'egl_probe.glad.glad' 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 'egl_probe.glad.glad' 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 'egl_probe.glad.glad' to be distributed and are
          already explicitly excluding 'egl_probe.glad.glad' 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)
  copying egl_probe/CMakeLists.txt -> build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/query_devices.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe
  copying egl_probe/test_device.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/egl.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/gl.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/glx_dyn.cpp -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  copying egl_probe/glad/linmath.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/EGL
  copying egl_probe/glad/EGL/eglplatform.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/EGL
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/KHR
  copying egl_probe/glad/KHR/khrplatform.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/KHR
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/X.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/XKBlib.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xatom.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xfuncproto.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xfuncs.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xlib.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/XlibConf.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xlibint.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xmd.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xosdefs.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xproto.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xprotostr.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/Xutil.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/cursorfont.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/keysym.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  copying egl_probe/glad/X11/keysymdef.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XKB.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XKBstr.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/XShm.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/Xext.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/extutil.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shape.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shapeconst.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  copying egl_probe/glad/X11/extensions/shm.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/X11/extensions
  creating build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/egl.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/gl.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  copying egl_probe/glad/glad/glx.h -> build/lib.linux-x86_64-cpython-39/egl_probe/glad/glad
  running build_ext
  Traceback (most recent call last):
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 21, in run
      out = subprocess.check_output(['cmake', '--version'])
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/subprocess.py", line 1837, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 50, in <module>
      setup(
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/command/install.py", line 79, in run
      return orig.install.run(self)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 697, in run
      self.run_command('build')
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/home/zdx/anaconda3/envs/umi/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-lrh9tyyi/egl-probe_b98446fc758045bd9144862418e416d6/setup.py", line 23, in run
      raise RuntimeError("CMake must be installed.")
  RuntimeError: CMake must be installed.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> egl-probe

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

failed

CondaEnvException: Pip failed

HaMengder commented 8 months ago

让你安装cmake,sudo apt-get install cmake不就好了

cheng-chi commented 8 months ago

Yep, you need to install cmake at OS level.