RoBoLoG

[Python] pip install dbus-python 설치 오류 본문

Error Solution

[Python] pip install dbus-python 설치 오류

SKJun 2024. 7. 4. 18:33

 

1. 오류 메시지

Collecting dbus-python
  Using cached dbus-python-1.3.2.tar.gz (605 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/rc_sw/release/Beryl-R1/common/vision_ws/vis_venv/bin/python /tmp/tmpz0cdfxxn prepare_metadata_for_build_wheel /tmp/tmpz7cwupxy
         cwd: /tmp/pip-install-mlh6wz12/dbus-python
    Complete output (93 lines):
    + meson setup /tmp/pip-install-mlh6wz12/dbus-python /tmp/pip-install-mlh6wz12/dbus-python/.mesonpy-219uvppx -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-mlh6wz12/dbus-python/.mesonpy-219uvppx/meson-python-native-file.ini
    The Meson build system
    Version: 1.4.1
    Source dir: /tmp/pip-install-mlh6wz12/dbus-python
    Build dir: /tmp/pip-install-mlh6wz12/dbus-python/.mesonpy-219uvppx
    Build type: native build
    Project name: dbus-python
    Project version: 1.3.2
    C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
    C linker for the host machine: cc ld.bfd 2.34
    Host machine cpu family: x86_64
    Host machine cpu: x86_64
    Compiler for C supports arguments -fno-common: YES
    Compiler for C supports arguments -Wno-missing-field-initializers: YES
    Compiler for C supports arguments -Wno-declaration-after-statement: YES
    Compiler for C supports arguments -Wno-inline: YES
    Compiler for C supports arguments -Wno-redundant-decls: YES
    Compiler for C supports arguments -Wno-switch-default: YES
    Compiler for C supports arguments -Wno-write-strings: YES
    Compiler for C supports arguments -Wcast-align: YES
    Compiler for C supports arguments -Wdouble-promotion: YES
    Compiler for C supports arguments -Wduplicated-cond: YES
    Compiler for C supports arguments -Wfloat-equal: YES
    Compiler for C supports arguments -Wformat-nonliteral: YES
    Compiler for C supports arguments -Wformat-security: YES
    Compiler for C supports arguments -Wformat=2: YES
    Compiler for C supports arguments -Winit-self: YES
    Compiler for C supports arguments -Wlogical-op: YES
    Compiler for C supports arguments -Wmissing-declarations: YES
    Compiler for C supports arguments -Wmissing-format-attribute: YES
    Compiler for C supports arguments -Wmissing-include-dirs: YES
    Compiler for C supports arguments -Wmissing-noreturn: YES
    Compiler for C supports arguments -Wnull-dereference: YES
    Compiler for C supports arguments -Wpacked: YES
    Compiler for C supports arguments -Wpointer-arith: YES
    Compiler for C supports arguments -Wshadow: YES
    Compiler for C supports arguments -Wswitch-enum: YES
    Compiler for C supports arguments -Wundef: YES
    Compiler for C supports arguments -Wunused-but-set-variable: YES
    Compiler for C supports arguments -Wjump-misses-init: YES
    Compiler for C supports arguments -Wmissing-prototypes: YES
    Compiler for C supports arguments -Wnested-externs: YES
    Compiler for C supports arguments -Wold-style-definition: YES
    Compiler for C supports arguments -Wpointer-sign: YES
    Compiler for C supports arguments -Wstrict-prototypes: YES
    Configuring _dbus-python-config.h using configuration
    
    Executing subproject dbus-gmain
    
    dbus-gmain| Project name: dbus-gmain
    dbus-gmain| Project version: undefined
    dbus-gmain| C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0")
    dbus-gmain| C linker for the host machine: cc ld.bfd 2.34
    dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: YES
    dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wlogical-op: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES
    dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES
    dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES
    dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES
    dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached)
    dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
    dbus-gmain| Found pkg-config: YES (/usr/bin/pkg-config) 0.29.1
    dbus-gmain| Found CMake: /usr/bin/cmake (3.28.3)
    dbus-gmain| Run-time dependency dbus-1 found: NO (tried pkgconfig and cmake)
    
    ../subprojects/dbus-gmain/meson.build:107:11: ERROR: Dependency "dbus-1" not found, tried pkgconfig and cmake
    
    A full log can be found at /tmp/pip-install-mlh6wz12/dbus-python/.mesonpy-219uvppx/meson-logs/meson-log.txt
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/rc_sw/release/Beryl-R1/common/vision_ws/vis_venv/bin/python /tmp/tmpz0cdfxxn prepare_metadata_for_build_wheel /tmp/tmpz7cwupxy Check the logs for full command output.

 

2. 해결 방법

  • sudo apt-get install libdbus-1-dev
  • pip install dbus-python
728x90
반응형