Package Details: python-mediapipe-git 0.10.13.r41.9fcc392d8-1

Git Clone URL: https://aur.archlinux.org/python-mediapipe-git.git (read-only, click to copy)
Package Base: python-mediapipe-git
Description: A cross-platform, customizable ML solutions for live and streaming media
Upstream URL: https://github.com/google/mediapipe
Licenses: Apache-2.0
Conflicts: python-mediapipe
Provides: python-mediapipe
Submitter: Premik
Maintainer: Premik (hottea)
Last Packager: hottea
Votes: 1
Popularity: 0.000000
First Submitted: 2021-07-07 23:12 (UTC)
Last Updated: 2024-05-12 06:23 (UTC)

Required by (1)

Sources (5)

Latest Comments

1 2 3 4 Next › Last »

hottea commented on 2024-05-12 14:11 (UTC)

Build it in a clean chroot, see also this wiki

git clone https://aur.archlinux.org/python-mediapipe-git.git
cd python-mediapipe-git
extra-x86_64-build

If you have already git clone the repo, you could git pull the latest commit and then build it in a clean chroot.

bogdansv commented on 2024-05-12 07:24 (UTC)

@hottea Please forgive my ignorance. Perhaps I am doing something wrong. I cloned this repo and makepkg -si and ran into that error. How can I use the commit you provided? Again, please excuse me if I am doing something really stupid :).

hottea commented on 2024-05-12 06:25 (UTC)

@bogdansv this is fixed in this commit

bogdansv commented on 2024-05-11 15:57 (UTC)

Build fails.

Cloning into 'python-mediapipe-git'...
done.
==> Starting prepare()...
patching file WORKSPACE
Hunk #1 succeeded at 117 (offset 7 lines).
patching file WORKSPACE
Hunk #1 succeeded at 64 (offset 6 lines).
patching file third_party/com_google_audio_tools_fixes.diff
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file third_party/com_google_audio_tools_fixes.diff.rej

Premik commented on 2024-02-21 09:23 (UTC)

Hello @hottea, Well done, thanks. Don't you want to maintain this package then? I've added you to the maintainers list..

hottea commented on 2024-02-21 06:31 (UTC)

Hello, we could build this pkg from the source now, and GPU support by opengl is also enabled. See https://github.com/hubutui/python-mediapipe-pkgbuild. This also works for the current master branch.

hottea commented on 2024-02-05 04:35 (UTC)

fail to build due to:

ERROR: /build/.cache/bazel/_bazel_builduser/02a78b61074867989b71b033f1e43ab9/external/com_google_audio_tools/audio/dsp/BUILD:53:11: Compiling audio/dsp/bessel_functions.cc failed: (Exit 1): gcc failed: error executing CppCompile command (from target @@com_google_audio_tools//audio/dsp:bessel_functions) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 30 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/com_google_audio_tools/audio/dsp/bessel_functions.h:29,
                 from external/com_google_audio_tools/audio/dsp/bessel_functions.cc:17:
external/com_google_audio_tools/audio/dsp/porting.h:26:9: error: 'uint8_t' does not name a type
   26 | typedef uint8_t uint8;
      |         ^~~~~~~
external/com_google_audio_tools/audio/dsp/porting.h:22:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   21 | #include <cmath>
  +++ |+#include <cstdint>
   22 | #include <string>
Target //mediapipe/python:_framework_bindings.so failed to build

also, we need to update WORKSPACE, see also https://github.com/google/mediapipe/issues/5105

toynbeeidea commented on 2023-05-21 13:53 (UTC) (edited on 2023-05-21 13:55 (UTC) by toynbeeidea)

==> Starting package()...
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/setuptools/_normalization.py", line 62, in safe_version
return str(packaging.version.Version(v))
File "/usr/lib/python3.10/site-packages/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'dev'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/erik/.cache/yay/python-mediapipe-git/src/python-mediapipe-git/setup.py", line 493, in <module>
setuptools.setup(
File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 483, in __init__
self.patch_missing_pkg_info(attrs)
File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 472, in patch_missing_pkg_info
dist._version = _normalization.safe_version(str(attrs['version']))
File "/usr/lib/python3.10/site-packages/setuptools/_normalization.py", line 65, in safe_version
return str(packaging.version.Version(attempt))
File "/usr/lib/python3.10/site-packages/packaging/version.py", line 197, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'dev'
==> ERROR: A failure occurred in package().
Aborting...

invade_r commented on 2022-04-08 13:15 (UTC) (edited on 2022-04-08 13:16 (UTC) by invade_r)

For exception:

  File "/usr/lib/python3.10/site-packages/mediapipe/python/__init__.py", line 17, in <module>
    from mediapipe.python._framework_bindings import resource_util
ImportError: libopencv_core.so.4.5: cannot open shared object file: No such file or directory

yay -Sy python-mediapipe-git --rebuild do the trick

Premik commented on 2022-01-18 23:22 (UTC)

@renyuneyun I couldn't reproduce. Generally AUR packages have to be recompiled when there is system update which changes the shared libs. Try to rebuild both mediapipe and fakewebcam.