Package Details: python-mediapipe-git 0.10.9.r331.377f7d77b-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-02-22 01:36 (UTC)

Required by (1)

Sources (6)

Latest Comments

1 2 3 Next › Last »

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.

renyuneyun commented on 2022-01-12 22:27 (UTC)

With a recent update to opencv, this package stops working for me (it's a dependency of fake-background-webcam-git).

It yields error:

  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

Seems this file has been removed from opencv package in the recent update. Now there are only libopencv_core.so.4.5.5, libopencv_core.so.405 and /usr/lib/libopencv_core.so.

How should this be dealt with?

Mr.42 commented on 2021-12-15 13:38 (UTC)

@Premik: Amazing, that works. Thank you very much. I just failed to see that comment... or that there's a page 2. Silly me.

Premik commented on 2021-12-15 13:34 (UTC)

@Mr.42 I think I got some 404 too. But it might be red herring. Try setting java to v11 with archlinux-java. As @nikisalli suggested below. As there is some java module error:

java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.String(byte[],byte) accessible: module java.base does not "opens java.lang" to unnamed module @5e82df6a

Mr.42 commented on 2021-12-15 13:08 (UTC)

I'm not getting this installed, due to a bazel error as well as some 404s. Any ideas?

Starting local Bazel server and connecting to it...
WARNING: ignoring LD_PRELOAD in environment.
INFO: SHA256 (https://github.com/bazelbuild/rules_foreign_cc/archive/0.1.0.zip) = c2cdcf55ffaf49366725639e45dedd449b8c3fe22b54e31625eb80ce3a240f1e
DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c2cdcf55ffaf49366725639e45dedd449b8c3fe22b54e31625eb80ce3a240f1e"
DEBUG: Repository rules_foreign_cc instantiated at:
  /home/pi/.cache/yay/python-mediapipe-git/src/python-mediapipe-git/WORKSPACE:42:13: in <toplevel>
Repository rule http_archive defined at:
  /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a32ecd248dd7612d75d2177125ed14541367.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/org_tensorflow/third_party/repo.bzl:122:14: 
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/main.zip) = 3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /home/pi/.cache/yay/python-mediapipe-git/src/python-mediapipe-git/WORKSPACE:36:13: in <toplevel>
Repository rule http_archive defined at:
  /home/pi/.cache/bazel/_bazel_pi/77eac508c650bd91dfc68065ef5ac145/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: /home/pi/.cache/yay/python-mediapipe-git/src/python-mediapipe-git/mediapipe/framework/BUILD:54:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /home/pi/.cache/yay/python-mediapipe-git/src/python-mediapipe-git/mediapipe/framework/tool/BUILD:182:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/0d6a1194ff36f59c79089336d7a3b446c3c6a39d.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: Analyzed target //mediapipe/modules/face_detection:face_detection_short_range_cpu (114 packages loaded, 5523 targets configured).
INFO: Found 1 target...
[0 / 14] [Prepa] BazelWorkspaceStatusAction stable-status.txt
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.ExceptionInInitializerError
        at com.google.devtools.build.lib.actions.ParameterFile.writeContent(ParameterFile.java:118)
        at com.google.devtools.build.lib.actions.ParameterFile.writeParameterFile(ParameterFile.java:111)
        at com.google.devtools.build.lib.analysis.actions.ParameterFileWriteAction$ParamFileWriter.writeOutputFile(ParameterFileWriteAction.java:175)
        at com.google.devtools.build.lib.exec.FileWriteStrategy.beginWriteOutputToFile(FileWriteStrategy.java:58)
        at com.google.devtools.build.lib.analysis.actions.AbstractFileWriteAction.beginExecution(AbstractFileWriteAction.java:66)
        at com.google.devtools.build.lib.actions.Action.execute(Action.java:127)
        at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$5.execute(SkyframeActionExecutor.java:855)
        at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$ActionRunner.continueAction(SkyframeActionExecutor.java:1016)
        at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor$ActionRunner.run(SkyframeActionExecutor.java:975)
        at com.google.devtools.build.lib.skyframe.ActionExecutionState.runStateMachine(ActionExecutionState.java:129)
        at com.google.devtools.build.lib.skyframe.ActionExecutionState.getResultOrDependOnFuture(ActionExecutionState.java:81)
        at com.google.devtools.build.lib.skyframe.SkyframeActionExecutor.executeAction(SkyframeActionExecutor.java:472)
        at com.google.devtools.build.lib.skyframe.ActionExecutionFunction.checkCacheAndExecuteIfNeeded(ActionExecutionFunction.java:834)
        at com.google.devtools.build.lib.skyframe.ActionExecutionFunction.compute(ActionExecutionFunction.java:307)
        at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:477)
        at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.String(byte[],byte) accessible: module java.base does not "opens java.lang" to unnamed module @5e82df6a
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:188)
        at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:181)
        at com.google.devtools.build.lib.unsafe.StringUnsafe.<init>(StringUnsafe.java:75)
        at com.google.devtools.build.lib.unsafe.StringUnsafe.initInstance(StringUnsafe.java:56)
        at com.google.devtools.build.lib.unsafe.StringUnsafe.<clinit>(StringUnsafe.java:37)
        ... 19 more
==> ERROR: A failure occurred in package().
    Aborting...