Skip to content

Unable to install cpp-logger on Ubuntu 24.01 #18

@Yash9060

Description

@Yash9060

Hey I am trying to install cpp-logger on Ubuntu 24.10 VM using pip and it fails with following message.

Offcourse I understand that using pip to install system wide package is not the best approach

pip install dlio_profiler_py==0.0.5 --break-system-packages --root-user-action=ignore
Collecting dlio_profiler_py==0.0.5
  Downloading dlio_profiler_py-0.0.5.tar.gz (39 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pybind11 (from dlio_profiler_py==0.0.5)
  Using cached pybind11-2.13.6-py3-none-any.whl.metadata (9.5 kB)
Using cached pybind11-2.13.6-py3-none-any.whl (243 kB)
Building wheels for collected packages: dlio_profiler_py
  Building wheel for dlio_profiler_py (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for dlio_profiler_py (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [253 lines of output]
      /tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      ['/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py', 'bdist_wheel', '--dist-info-dir', '/tmp/pip-modern-metadata-hkljf2df/dlio_profiler_py-0.0.5.dist-info', '--dist-dir', '/tmp/pip-wheel-4a_5xpdn/.tmp-7bqbm7rw']
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-312/dlio_profiler
      copying dlio_profiler/__init__.py -> build/lib.linux-x86_64-cpython-312/dlio_profiler
      copying dlio_profiler/logger.py -> build/lib.linux-x86_64-cpython-312/dlio_profiler
      creating build/lib.linux-x86_64-cpython-312/dlp_analyzer
      copying dlp_analyzer/__init__.py -> build/lib.linux-x86_64-cpython-312/dlp_analyzer
      copying dlp_analyzer/main.py -> build/lib.linux-x86_64-cpython-312/dlp_analyzer
      copying dlp_analyzer/plots.py -> build/lib.linux-x86_64-cpython-312/dlp_analyzer
      running build_ext
      https://github.com/hariharan-devarajan/cpp-logger.git /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger /usr/lib/python3/dist-packages/dlio_profiler v0.0.3 1
      Removing cloned dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger
      cloning https://github.com/hariharan-devarajan/cpp-logger.git
      Cloning into '/tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger'...
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Switched to a new branch 'v0.0.3'
      There is no tracking information for the current branch.
      Please specify which branch you want to merge with.
      See git-pull(1) for details.

          git pull <remote> <branch>

      If you wish to set tracking information for this branch you can do so with:

          git branch --set-upstream-to=origin/<branch> v0.0.3

      Installing /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger
      cmake . -B build -DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler
      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from 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.

        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


      -- Configuring incomplete, errors occurred!
      Error: could not find CMAKE_PROJECT_NAME in Cache
      CMake Error: Not a file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger/build/cmake_install.cmake
      CMake Error: Error processing file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger/build/cmake_install.cmake
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Clean source dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/cpp-logger
      https://github.com/LLNL/GOTCHA.git /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha /usr/lib/python3/dist-packages/dlio_profiler 1.0.5 1
      Removing cloned dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha
      cloning https://github.com/LLNL/GOTCHA.git
      Cloning into '/tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha'...
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Switched to a new branch '1.0.5'
      There is no tracking information for the current branch.
      Please specify which branch you want to merge with.
      See git-pull(1) for details.

          git pull <remote> <branch>

      If you wish to set tracking information for this branch you can do so with:

          git branch --set-upstream-to=origin/<branch> 1.0.5

      Installing /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha
      cmake . -B build -DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler
      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from 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.

        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


      -- Configuring incomplete, errors occurred!
      Error: could not find CMAKE_PROJECT_NAME in Cache
      CMake Error: Not a file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha/build/cmake_install.cmake
      CMake Error: Error processing file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha/build/cmake_install.cmake
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Clean source dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/gotcha
      https://github.com/hariharan-devarajan/brahma.git /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma /usr/lib/python3/dist-packages/dlio_profiler v0.0.3 1
      Removing cloned dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma
      cloning https://github.com/hariharan-devarajan/brahma.git
      Cloning into '/tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma'...
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Switched to a new branch 'v0.0.3'
      There is no tracking information for the current branch.
      Please specify which branch you want to merge with.
      See git-pull(1) for details.

          git pull <remote> <branch>

      If you wish to set tracking information for this branch you can do so with:

          git branch --set-upstream-to=origin/<branch> v0.0.3

      Installing /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma
      cmake . -B build -DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler
      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from 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.

        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


      -- Configuring incomplete, errors occurred!
      Error: could not find CMAKE_PROJECT_NAME in Cache
      CMake Error: Not a file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma/build/cmake_install.cmake
      CMake Error: Error processing file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma/build/cmake_install.cmake
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Clean source dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/brahma
      https://github.com/jbeder/yaml-cpp.git /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp /usr/lib/python3/dist-packages/dlio_profiler yaml-cpp-0.6.3 1
      Removing cloned dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp
      cloning https://github.com/jbeder/yaml-cpp.git
      Cloning into '/tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp'...
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Switched to a new branch 'yaml-cpp-0.6.3'
      There is no tracking information for the current branch.
      Please specify which branch you want to merge with.
      See git-pull(1) for details.

          git pull <remote> <branch>

      If you wish to set tracking information for this branch you can do so with:

          git branch --set-upstream-to=origin/<branch> yaml-cpp-0.6.3

      Installing /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp
      cmake . -B build -DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler -DYAML_BUILD_SHARED_LIBS=On
      CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from 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.

        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


      -- Configuring incomplete, errors occurred!
      Error: could not find CMAKE_PROJECT_NAME in Cache
      CMake Error: Not a file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp/build/cmake_install.cmake
      CMake Error: Error processing file: /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp/build/cmake_install.cmake
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a
      Clean source dir /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/dependency/yaml-cpp
      -- The C compiler identification is GNU 14.2.0
      -- The CXX compiler identification is GNU 14.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 Error at CMakeLists.txt:17 (cmake_minimum_required):
        Compatibility with CMake < 3.5 has been removed from 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.

        Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


      -- Configuring incomplete, errors occurred!
      /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a/build/lib.linux-x86_64-cpython-312
      Installing cpp-logger into /usr/lib/python3/dist-packages/dlio_profiler
      Installing gotcha into /usr/lib/python3/dist-packages/dlio_profiler
      Installing brahma into /usr/lib/python3/dist-packages/dlio_profiler
      Installing yaml-cpp into /usr/lib/python3/dist-packages/dlio_profiler
      ['-DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler', '-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler', '-Dpybind11_DIR=/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/pybind11/share/cmake/pybind11']
      cmake /tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a ['-DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler', '-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler', '-Dpybind11_DIR=/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/pybind11/share/cmake/pybind11', '-DCMAKE_BUILD_TYPE=Release', '-DDISABLE_HWLOC=On', '-DDLIO_PROFILER_ENABLE_TESTS=Off', '-DENABLE_DLIO_BENCHMARK_TESTS=Off', '-DENABLE_PAPER_TESTS=Off', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DEXAMPLE_VERSION_INFO=0.0.5']
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/build_meta.py", line 438, in build_wheel
          return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/build_meta.py", line 426, in _build
          return self._build_with_temp_dir(
When using Powerlevel10k with instant prompt, console output during zsh
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 130, in <module>
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/dist.py", line 1104, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/command/bdist_wheel.py", line 370, in run
          self.run_command("build")
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/dist.py", line 1104, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/dist.py", line 1104, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/command/build_ext.py", line 99, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
          self.build_extensions()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions
          self._build_extensions_serial()
        File "/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial
          self.build_extension(ext)
        File "<string>", line 115, in build_extension
        File "/usr/lib/python3.12/subprocess.py", line 571, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-o9cth53m/dlio-profiler-py_158d6c11e87b4843b7058734c2b8c69a', '-DCMAKE_INSTALL_PREFIX=/usr/lib/python3/dist-packages/dlio_profiler', '-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages/dlio_profiler', '-Dpybind11_DIR=/tmp/pip-build-env-l_uw35r4/overlay/local/lib/python3.12/dist-packages/pybind11/share/cmake/pybind11', '-DCMAKE_BUILD_TYPE=Release', '-DDISABLE_HWLOC=On', '-DDLIO_PROFILER_ENABLE_TESTS=Off', '-DENABLE_DLIO_BENCHMARK_TESTS=Off', '-DENABLE_PAPER_TESTS=Off', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DEXAMPLE_VERSION_INFO=0.0.5']' 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 dlio_profiler_py
Failed to build dlio_profiler_py
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlio_profiler_py)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions