bohning / usdb_syncer

MIT License
58 stars 9 forks source link

Build fails on Ubuntu #259

Open theRoboxx opened 1 month ago

theRoboxx commented 1 month ago

Does someone know how to fix this? I did follow every step from the https://github.com/bohning/usdb_syncer?tab=readme-ov-file#development section.

main@Fractalix:~/Downloads/usdb_syncer-commit$ pipenv sync --dev
Loading .env environment variables...
Installing dependencies from Pipfile.lock (489901)...
[pipenv.exceptions.InstallError]: Ignoring beautifulsoup4: markers 'python_full_version >= "3.6.0"' don't match your environment
[pipenv.exceptions.InstallError]: Ignoring charset-normalizer: markers 'python_full_version >= "3.7.0"' don't match your environment
[pipenv.exceptions.InstallError]: Ignoring macholib: markers 'sys_platform == "darwin"' don't match your environment
[pipenv.exceptions.InstallError]: Ignoring pefile: markers 'sys_platform == "win32"' don't match your environment
[pipenv.exceptions.InstallError]: Ignoring pywin32-ctypes: markers 'sys_platform == "win32"' don't match your environment
[pipenv.exceptions.InstallError]: Collecting altgraph==0.17.4 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 1))
[pipenv.exceptions.InstallError]:   Using cached altgraph-0.17.4-py2.py3-none-any.whl (21 kB)
[pipenv.exceptions.InstallError]: Collecting appdirs==1.4.4 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 2))
[pipenv.exceptions.InstallError]:   Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
[pipenv.exceptions.InstallError]: Collecting attrs==23.2.0 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 3))
[pipenv.exceptions.InstallError]:   Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
[pipenv.exceptions.InstallError]: Collecting backports.tarfile==1.2.0 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 4))
[pipenv.exceptions.InstallError]:   Using cached backports.tarfile-1.2.0-py3-none-any.whl (30 kB)
[pipenv.exceptions.InstallError]: Collecting brotli==1.1.0 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 6))
[pipenv.exceptions.InstallError]:   Using cached Brotli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB)
[pipenv.exceptions.InstallError]: Collecting browser-cookie3==0.19.1 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 7))
[pipenv.exceptions.InstallError]:   Using cached browser_cookie3-0.19.1-py3-none-any.whl (14 kB)
[pipenv.exceptions.InstallError]: Collecting certifi==2024.6.2 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 8))
[pipenv.exceptions.InstallError]:   Using cached certifi-2024.6.2-py3-none-any.whl (164 kB)
[pipenv.exceptions.InstallError]: Collecting colorama==0.4.6 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 10))
[pipenv.exceptions.InstallError]:   Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
[pipenv.exceptions.InstallError]: Collecting colorlog==6.8.2 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 11))
[pipenv.exceptions.InstallError]:   Using cached colorlog-6.8.2-py3-none-any.whl (11 kB)
[pipenv.exceptions.InstallError]: Collecting dbus-python==1.3.2 (from -r /tmp/pipenv-8s5ykqcx-requirements/pipenv-tgrpoxpn-hashed-reqs.txt (line 12))
[pipenv.exceptions.InstallError]:   Using cached dbus-python-1.3.2.tar.gz (605 kB)
[pipenv.exceptions.InstallError]:   Installing build dependencies: started
[pipenv.exceptions.InstallError]:   Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]:   Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]:   Getting requirements to build wheel: finished with status 'done'
[pipenv.exceptions.InstallError]:   Preparing metadata (pyproject.toml): started
[pipenv.exceptions.InstallError]:   Preparing metadata (pyproject.toml): finished with status 'error'
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:   
[pipenv.exceptions.InstallError]:   × Preparing metadata (pyproject.toml) did not run successfully.
[pipenv.exceptions.InstallError]:   │ exit code: 1
[pipenv.exceptions.InstallError]:   ╰─> [101 lines of output]
[pipenv.exceptions.InstallError]:       + meson setup /tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca /tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca/.mesonpy-los6uj6e -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca/.mesonpy-los6uj6e/meson-python-native-file.ini
[pipenv.exceptions.InstallError]:       The Meson build system
[pipenv.exceptions.InstallError]:       Version: 1.4.1
[pipenv.exceptions.InstallError]:       Source dir: /tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca
[pipenv.exceptions.InstallError]:       Build dir: /tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca/.mesonpy-los6uj6e
[pipenv.exceptions.InstallError]:       Build type: native build
[pipenv.exceptions.InstallError]:       Project name: dbus-python
[pipenv.exceptions.InstallError]:       Project version: 1.3.2
[pipenv.exceptions.InstallError]:       C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
[pipenv.exceptions.InstallError]:       C linker for the host machine: cc ld.bfd 2.38
[pipenv.exceptions.InstallError]:       Host machine cpu family: x86_64
[pipenv.exceptions.InstallError]:       Host machine cpu: x86_64
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -fno-common: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-missing-field-initializers: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-declaration-after-statement: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-inline: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-redundant-decls: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-switch-default: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wno-write-strings: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wcast-align: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wdouble-promotion: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wduplicated-cond: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wfloat-equal: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wformat-nonliteral: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wformat-security: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wformat=2: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Winit-self: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wlogical-op: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wmissing-declarations: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wmissing-format-attribute: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wmissing-include-dirs: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wmissing-noreturn: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wnull-dereference: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wpacked: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wpointer-arith: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wshadow: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wswitch-enum: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wundef: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wunused-but-set-variable: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wjump-misses-init: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wmissing-prototypes: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wnested-externs: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wold-style-definition: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wpointer-sign: YES
[pipenv.exceptions.InstallError]:       Compiler for C supports arguments -Wstrict-prototypes: YES
[pipenv.exceptions.InstallError]:       Configuring _dbus-python-config.h using configuration
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       Executing subproject dbus-gmain
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       dbus-gmain| Project name: dbus-gmain
[pipenv.exceptions.InstallError]:       dbus-gmain| Project version: undefined
[pipenv.exceptions.InstallError]:       dbus-gmain| C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
[pipenv.exceptions.InstallError]:       dbus-gmain| C linker for the host machine: cc ld.bfd 2.38
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -fno-common: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wno-missing-field-initializers: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wcast-align: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wdouble-promotion: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wduplicated-branches: YES
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wduplicated-cond: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wfloat-equal: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wformat-nonliteral: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wformat-security: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wformat=2: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Winit-self: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wlogical-op: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wmissing-declarations: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wmissing-format-attribute: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wmissing-include-dirs: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wmissing-noreturn: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wnull-dereference: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wpacked: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wpointer-arith: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wredundant-decls: YES
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wshadow: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wswitch-default: YES
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wswitch-enum: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wundef: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wunused-but-set-variable: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wwrite-strings: YES
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wdeclaration-after-statement: YES
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wjump-misses-init: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wnested-externs: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wold-style-definition: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wpointer-sign: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Compiler for C supports arguments -Wstrict-prototypes: YES (cached)
[pipenv.exceptions.InstallError]:       dbus-gmain| Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
[pipenv.exceptions.InstallError]:       dbus-gmain| Run-time dependency dbus-1 found: YES 1.12.20
[pipenv.exceptions.InstallError]:       dbus-gmain| Run-time dependency glib-2.0 found: YES 2.72.4
[pipenv.exceptions.InstallError]:       dbus-gmain| Run-time dependency gthread-2.0 found: YES 2.72.4
[pipenv.exceptions.InstallError]:       dbus-gmain| Program dbus-run-session found: YES (/usr/bin/dbus-run-session)
[pipenv.exceptions.InstallError]:       dbus-gmain| Build targets in project: 1
[pipenv.exceptions.InstallError]:       dbus-gmain| Subproject dbus-gmain finished.
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       Program python found: YES (/home/main/Downloads/usdb_syncer-commit/.venv/bin/python)
[pipenv.exceptions.InstallError]:       Dependency dbus-1 found: YES 1.12.20 (cached)
[pipenv.exceptions.InstallError]:       Run-time dependency python found: NO (tried pkgconfig, pkgconfig and sysconfig)
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       ../meson.build:175:11: ERROR: Python dependency not found
[pipenv.exceptions.InstallError]:       
[pipenv.exceptions.InstallError]:       A full log can be found at /tmp/pip-install-pk_rddyo/dbus-python_220af9712ccf406ba41aa7e0560b47ca/.mesonpy-los6uj6e/meson-logs/meson-log.txt
[pipenv.exceptions.InstallError]:       [end of output]
[pipenv.exceptions.InstallError]:   
[pipenv.exceptions.InstallError]:   note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: error: metadata-generation-failed
[pipenv.exceptions.InstallError]: 
[pipenv.exceptions.InstallError]: × Encountered error while generating package metadata.
[pipenv.exceptions.InstallError]: ╰─> See above for output.
[pipenv.exceptions.InstallError]: 
[pipenv.exceptions.InstallError]: note: This is an issue with the package mentioned above, not pip.
[pipenv.exceptions.InstallError]: hint: See above for details.
ERROR: Couldn't install package: {}
 Package installation failed...
RumovZ commented 1 month ago

We have updated our Linux dependencies. Maybe that helped? If not, we can't really help, unfortunately, since we mostly develop on Windows and macOS. But please let us know if you find the issue, so we can update our README for other Linux developers.

DeinAlptraum commented 1 month ago

@theRoboxx which distribution are you on? Apparently on some distros such as RedHat or Debian, running this requires installing a package called python3-dev or similar.