text:
win10 build error

System information

OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2): windows 10
Target (e.g. desktop cpu, android arm64):
Bazel version: 6.0.0
Python version: 3.9.0
GCC/G++ version: 9.2.0
Unity version:
Android NDK version (if building for Android):
Xcode version (if building for iOS):

Describe the problem
Build error
Steps to reproduce the issue
python build.py build --desktop cpu --opencv=cmake -v
Full logs
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.py" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: C:/_bzl/d6cplb6i/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Repository rules_python instantiated at:
C:/users/asuka/desktop/intern/mediapipeunityplugin/WORKSPACE:41:23: in
C:/_bzl/d6cplb6i/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
ERROR: An error occurred during the fetch of repository 'rules_python':
Traceback (most recent call last):
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git.bzl", line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 101, column 9, in _update
init(ctx, git_repo)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 118, column 15, in init
_error(ctx.name, cl, st.stderr)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 190, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git init C:/_bzl/d6cplb6i/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/d6cplb6i/external/rules_python): ??????????????????
(error: 2)
ERROR: C:/users/asuka/desktop/intern/mediapipeunityplugin/WORKSPACE:41:23: fetching git_repository rule //external:rules_python: Traceback (most recent call last):
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git.bzl", line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 101, column 9, in _update
init(ctx, git_repo)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 118, column 15, in init
_error(ctx.name, cl, st.stderr)
File "C:/_bzl/d6cplb6i/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 190, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git init C:/_bzl/d6cplb6i/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/d6cplb6i/external/rules_python): ??????????????????
(error: 2)
ERROR: C:/users/asuka/desktop/intern/mediapipeunityplugin/mediapipe_api/BUILD:175:8: //mediapipe_api:mediapipe_proto_srcs depends on @rules_pkg//:build_zip in repository @rules_pkg which failed to fetch. no such package '@rules_python//python': error running 'git init C:/_bzl/d6cplb6i/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/d6cplb6i/external/rules_python): ??????????????????
(error: 2)
ERROR: Analysis of target '//mediapipe_api:mediapipe_proto_srcs' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.644s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
currently loading: @rules_pkg//
Traceback (most recent call last):
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin\build.py", line 444, in
Argument().command().run()
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin\build.py", line 112, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin\build.py", line 52, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.py" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.
Additional context
can anyone help me ?

Error in fail: error running 'git init C:/_bzl/d6cplb6i/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/d6cplb6i/external/rules_python): ??????????????????

I can't read the error message because it's garbled, but it's probably same as #262, #273, #353.

I tried the command below, but it didn't work correctly.
python build.py build --desktop cpu --include_opencv_libs -vvv
set BAZEL_WINSDK_FULL_VERSION=10.0.19041.0
python version is 3.9.0
Umm....

I've also reconfigured the PATH, but it doesn't work.
RUN setx path "C:\msys64\usr\bin;%PATH%"

I've also reconfigured the PATH, but it doesn't work.

In any case, I'm pretty sure that git path had not been resolved, but I don't know what's going on if you just say "it doesn't work". The error messages are all same or have changed?
By the way, it seems that you're using bazel 6.0.0, but this plugin is not tested against it, so I recommend you use bazel <= 4.2.1.

If you don't know how to set environment variables, see https://www.computerhope.com/issues/ch000549.htm

Sorry for the late reply
I'll post the error message later
In the meantime, I'd like to try and do it with bazel <= 4.2.1

In addition, I will try the latest version of this app.

already

INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs
WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/toolchains/archive/d781e89e2ee797ea7afd0c8391e761616fc5d50d.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/0a8c6996bd6a58eb0e7e2fe049ac67bf663e1950.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Repository rules_python instantiated at:
C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/WORKSPACE:41:23: in
C:/_bzl/ucxiujo2/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
ERROR: An error occurred during the fetch of repository 'rules_python':
Traceback (most recent call last):
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl", line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 101, column 9, in _update
init(ctx, git_repo)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 118, column 15, in init
_error(ctx.name, cl, st.stderr)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 190, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git init C:/_bzl/ucxiujo2/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/ucxiujo2/external/rules_python): ??????????????????
(error: 2)
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl", line 181, column 30, in _git_repository_implementation
update = _clone_or_update(ctx)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, column 20, in clone_or_update
git = git_repo(ctx, directory)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, column 12, in git_repo
_update(ctx, git_repo)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 101, column 9, in _update
init(ctx, git_repo)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 118, column 15, in init
_error(ctx.name, cl, st.stderr)
File "C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 190, column 9, in _error
fail("error running '%s' while working with @%s:\n%s" % (command_text, name, stderr))
Error in fail: error running 'git init C:/_bzl/ucxiujo2/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/ucxiujo2/external/rules_python): ??????????????????
(error: 2)
ERROR: C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/mediapipe_api/BUILD:176:8: //mediapipe_api:mediapipe_proto_srcs depends on @rules_pkg//:build_zip in repository @rules_pkg which failed to fetch. no such package '@rules_python//python': error running 'git init C:/_bzl/ucxiujo2/external/rules_python' while working with @rules_python:
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("git" init C:/_bzl/ucxiujo2/external/rules_python): ??????????????????
(error: 2)
ERROR: Analysis of target '//mediapipe_api:mediapipe_proto_srcs' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.940s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
currently loading: @rules_pkg//
Traceback (most recent call last):
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 444, in
Argument().command().run()
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 112, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 52, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.

What matters here is not if you set C:\msys64\usr\bin to PATH, but if you can run git command from cmd.exe.
Have you installed git using pacman?
If so, what is the output of the below command?
which git

P.S. Again (https://github.com/homuler/MediaPipeUnityPlugin/issues/358#issuecomment-978890480 ), the output is garbled, so please fix it when posting logs.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chcp

I did not have git installed, so I installed it.
I don't think I used pacman as I referred to the page below.
https://ralacode.com/blog/post/git-initial-setting/
The results of running "which git" are shown below.
/c/Program Files/Git/cmd/git
I will fix the garbled text and put up the error message again.

I tried all the parameters shown under chcp referring to the url page you gave me, but I couldn't get rid of the garbled characters.
437,850,852,855,857,860,861,863,865,866,869,936

Well, I think chcp 65001 (UTF-8) is the correct one.

I don't think I used pacman as I referred to the page below.

If you hadn't installed it, I think you should have installed git using MSYS, but maybe it's OK (I don't guarantee it will work).

The same garbled characters occur with chcp 65001
ok

If the same error still occurs, then install git with pacman.

Sorry for the late reply.
I see

Error messages can now be read.
I did the build again referring to the page below.
https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#windows-10

python build.py build --desktop cpu --opencv=cmake -v
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs
Starting local Bazel server and connecting to it...
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/WORKSPACE:41:23: in
C:/_bzl/ucxiujo2/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
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:
C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/WORKSPACE:84:13: in
Repository rule http_archive defined at:
C:/_bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Repository local_execution_config_python instantiated at:
C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/WORKSPACE:463:14: in
C:/_bzl/ucxiujo2/external/org_tensorflow/tensorflow/workspace2.bzl:1085:19: in workspace
C:/_bzl/ucxiujo2/external/org_tensorflow/tensorflow/workspace2.bzl:85:27: in _tf_toolchains
C:/_bzl/ucxiujo2/external/tf_toolchains/toolchains/remote_config/configs.bzl:6:28: in initialize_rbe_configs
C:/_bzl/ucxiujo2/external/tf_toolchains/toolchains/remote_config/rbe_config.bzl:158:27: in _tensorflow_local_config
Repository rule local_python_configure defined at:
C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/py/python_configure.bzl:275:41: in
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 39, in _create_local_python_repository
numpy_include = _get_numpy_include(repository_ctx, python_bin) + "/numpy"
File "C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/py/python_configure.bzl", line 187, column 19, in _get_numpy_include
return execute(
File "C:/bzl/ucxiujo2/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Problem getting numpy include path.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_init.py", line 148, in
from . import distributor_init
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_distributor_init.py", line 26, in
WinDLL(os.path.abspath(filename))
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\ctypes_init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 は有効な Win32 アプリケーションではありません。
Is numpy installed?
ERROR: Error fetching repository: Traceback (most recent call last):
File "C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 39, in _create_local_python_repository
numpy_include = _get_numpy_include(repository_ctx, python_bin) + "/numpy"
File "C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/py/python_configure.bzl", line 187, column 19, in _get_numpy_include
return execute(
File "C:/bzl/ucxiujo2/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Problem getting numpy include path.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_init.py", line 148, in
from . import distributor_init
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_distributor_init.py", line 26, in
WinDLL(os.path.abspath(filename))
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\ctypes_init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 は有効な Win32 アプリケーションではありません。
Is numpy installed?
INFO: Repository com_google_protobuf instantiated at:
C:/users/asuka/desktop/intern/mediapipeunityplugin-0.8.0/WORKSPACE:177:13: in
Repository rule http_archive defined at:
C:/bzl/ucxiujo2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
ERROR: Analysis of target '//mediapipe_api:mediapipe_proto_srcs' failed; build aborted: Problem getting numpy include path.
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_init.py", line 148, in
from . import distributor_init
File "C:\Users\asuka\AppData\Roaming\Python\Python39\site-packages\numpy_distributor_init.py", line 26, in
WinDLL(os.path.abspath(filename))
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\ctypes_init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 は有効な Win32 アプリケーションではありません。
Is numpy installed?
INFO: Elapsed time: 16.487s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (27 packages loaded, 22 targets configured)
currently loading: @com_google_mediapipe//mediapipe/framework ... (7 packages)
Traceback (most recent call last):
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 444, in
Argument().command().run()
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 112, in run
self._run_command(self._build_proto_srcs_commands())
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 52, in _run_command
return subprocess.run(' '.join(command_list), check=True, shell=shell)
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION //mediapipe_api:mediapipe_proto_srcs' returned non-zero exit status 1.

If you translate the error message, you will get the following text.
OSError: [WinError 193] %1 is not a valid Win32 application.
Is numpy installed?
→I thought I installed it. PATH problem?

See https://github.com/homuler/MediaPipeUnityPlugin/issues/191#issuecomment-945319087

okay thanks

Requirement already satisfied: numpy in c:\users\asuka\appdata\roaming\python\python39\site-packages (1.21.4)
I need uninstall & install?

Please write not only the output but also the exact command you're running.
If you're sure you've installed numpy correctly, then I think you should uninstall Python and reinstall it.

Sorry for the late reply.
After reinstalling numpy and building, I no longer get the error I was getting.
However, I got an error like the one below.
shutil.ReadError: C:\Users\asuka\AppData\Local\Programs\Python\Python39\python.exe\mediapipe_api\mediapipe_proto_srcs.zip is not a zip file
The commands we ran are listed below.
python build.py build --desktop cpu --opencv=cmake -v

At the same time, a number of warnings occurred, which I will also note.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.

@ito415 Run python build.py build --desktop cpu --opencv=cmake -vv (note -vv) and share the full log, please.
You can ignore warnings safely.

python build.py build --desktop cpu --opencv=cmake -vv
The result of executing the above command is shown below.
C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0>python build.py build --desktop cpu --opencv=cmake -vv
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel --output_user_root C:/_bzl build -c opt --action_env PYTHON_BIN_PATH="C://Users//asuka//AppData//Local//Programs//Python//Python39//python.exe" --action_env ProgramData --action_env PROCESSOR_ARCHITECTURE --action_env PROCESSOR_IDENTIFIER --action_env PROCESSOR_LEVEL --action_env PROCESSOR_REVISION --verbose_failures //mediapipe_api:mediapipe_proto_srcs
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: C:/_bzl/ucxiujo2/external/org_tensorflow/third_party/repo.bzl:109:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_proto_srcs up-to-date:
bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip
INFO: Elapsed time: 18.544s, Critical Path: 0.28s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'C:\Users\asuka\AppData\Local\Programs\Python\Python39\python.exe\mediapipe_api\mediapipe_proto_srcs.zip' to 'build\Scripts\Protobuf'...
Traceback (most recent call last):
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 444, in
Argument().command().run()
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 113, in run
self._unzip(
File "C:\Users\asuka\Desktop\Intern\MediaPipeUnityPlugin-0.8.0\build.py", line 91, in _unzip
shutil.unpack_archive(source, dest)
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 1242, in unpack_archive
func(filename, extract_dir, **kwargs)
File "C:\Users\asuka\AppData\Local\Programs\Python\Python39\lib\shutil.py", line 1137, in _unpack_zipfile
raise ReadError("%s is not a zip file" % filename)
shutil.ReadError: C:\Users\asuka\AppData\Local\Programs\Python\Python39\python.exe\mediapipe_api\mediapipe_proto_srcs.zip is not a zip file

Have you modified build.py?

DEBUG (build.py): Unarchiving 'C:\Users\asuka\AppData\Local\Programs\Python\Python39\python.exe\mediapipe_api\mediapipe_proto_srcs.zip' to 'build\Scripts\Protobuf'...

I cannot get why the above message is output with the below code (it looks like PYTHON_BIN_PATH is assigned to _BAZEL_BIN_PATH).
https://github.com/homuler/MediaPipeUnityPlugin/blob/35fdfbc47e4d5a976c99223edf849f084e4cb5cc/build.py#L114

yes.
I had changed it after seeing someone's comment.
How can I change _BAZEL_BIN_PATH?

Well...just run git checkout build.py and run again.

I get error...

git checkout build.py
fatal: not a git repository (or any of the parent directories): .git

OK, then just download the source code again.
But note that this plugin is for developers, so it may not be suitable for your use.

i see

A newer version(0.8.2) was available, so I downloaded that one and ran the command shown below.

pacman -S git patch unzip
set BAZEL_VS=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
set BAZEL_VC=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC
set PYTHON_BIN_PATH=C:\Users\asuka\AppData\Local\Programs\Python\Python39\python.exe
python build.py build --desktop cpu --opencv=cmake -v

The build stopped at the statement below.
[4,149 / 4,311] Foreign Cc - CMake: Building opencv_cmake; 1817s local

Maybe it worked(?).

If 1817s part is counting up, then the process is simply taking a very long time on your machine.
You can also use local OpenCV instead and skip building OpenCV.

ok,thanks.
I'll try to use that next time I build.
At any rate, the build seems to have been successful, so I'll just try it this time.
When importing into Unity, is it ok to just put all the files in?

When importing into Unity, is it ok to just put all the files in?

I'm working on getting the documentation ready, but for now, just read https://github.com/homuler/MediaPipeUnityPlugin/issues/252.
I

Sorry for the late reply.
okay, I'm sorry for the hassle.

I'll share the error I got when I played the Start Scene within Unity.
Scene with build index: 1 couldn't be loaded because it has not been added to the build settings.
To add a scene to the build settings use the menu File->Build Settings...
UnityEngine.SceneManagement.SceneManager:LoadSceneAsync (int)
Mediapipe.Unity.Bootstrap/d__17:MoveNext () (at Assets/Mediapipe/Samples/Common/Scripts/Bootstrap.cs:109)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
NullReferenceException: Object reference not set to an instance of an object
Mediapipe.Unity.Bootstrap+<>c__DisplayClass17_0.b__0 () (at Assets/Mediapipe/Samples/Common/Scripts/Bootstrap.cs:110)
UnityEngine.WaitUntil.get_keepWaiting () (at :0)
UnityEngine.CustomYieldInstruction.MoveNext () (at :0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Judging from the conversations we've had so far, are you trying to run the sample app in another project, where you have imported this plugin?
You can use this plugin in another project, but if you'd like to try the sample app, please use this project as is.

okay,I see

repo: homuler/MediaPipeUnityPlugin


text:
Can we cut out a new release please?

To include this fix - https://github.com/honeybadger-io/honeybadger-crystal/commit/2eeb7d56ae1faf12851980ffcbcfa12b59d433ef

All set. Thanks again @gmartsenkov!

hold please for a re-tag, i flubbed the release by not baking in the right version number

source: gharchive/issue

authors: gmartsenkov robacarp

repo: honeybadger-io/honeybadger-crystal

license: MIT

license_type: permissive

license_source: github-api


text:
Add filter to ignore traffic coming from from the agent

Is your feature request related to a problem? Please describe.
We suspect some of the traffic being captured and converted to events is the agent sending events to Honeycomb, eg libhoney sending events. Should the act of sending telemetry cause more telemetry to be generated?
Describe the solution you'd like
Have a way to filter out traffic generated directly by the agent.
Describe alternatives you've considered
We trialed a potential solution in the following PR that used the agent pod's IP in the bpf filter. However, because we use hostnetwork:true in our Kubernetes deployment, the agent's pod IP is the same as the node IP which leads us to filter out more traffic than intended. For example, node->pod health checks and any other service that uses hostnetwork:true.

#194

Additional context

To consider as an intermediate: don't add k8s metadata to these events.

authors: JamieDanielson MikeGoldsmith

repo: honeycombio/honeycomb-network-agent


text:
feat: publish refinery instance ID during pubsub peer comms

Which problem is this PR solving?
When publishing peers via redis pubsub, we need a way to identify whether a node can receive keep and drop decision messages. This is important when performing migrations that update an older deployment that does not support keep/drop decisions to one that does.
Also, it would also be nice to not have to rely purely on a peer address as a means of testing whether the instance if the same for determining whether we need to re-send trace decisions. For example, it's possible the same IP address is used even though the refinery instance has restarted.
This PR updates refinery to generate a new instance ID on start up and then publish the refinery's instance ID as part of it's peer register/unregister commands. As the message format is changing, any messages that does not conform to the new format will not be added as valid peers.
Short description of the changes

Generate and inject an instance ID during process start up in main.go
Update redis pubsub to take the instance ID via injection
Update redis pubsub peer commands to also specify the instance ID
Update marshal and unmarshall funcs to handle and require instance ID
Update peers to be a set of peerRecord's that has both ID and address
Update pubsub tests

I apologize in advance -- I started playing with this on my own machine, and decided to try writing MapWithTTL, and I liked that better, so I ended up creating #1420 because it was going to be hard to do as a modification to this PR.
If you dislike it we can use this one instead.

source: gharchive/pull-request

authors: MikeGoldsmith kentquirk

repo: honeycombio/refinery


text:
请教：post上传图片成功还是error：404

如题，这是什么原因啊

需要详细的描述。

接口是这样的
`File file = new File(Environment.getExternalStorageDirectory(), "123456.jpg");
    Log.i("test", "uploadFile: filePath  " + file.getAbsolutePath());
    Log.i("test", "uploadFile: length  " + file.length());

    if (!file.exists()) {
        Log.i("test", "uploadFile: error ");
        return;
    }
    Map<String, String> params = new HashMap<>();
    params.put("functionId", "testFile");
    params.put("fileType", ".jpg");
    params.put("maxSize", file.length() + "");

    OkHttpUtils.post()
            .addFile("myfiles", "123465.jpg", file)//
            .url(API.HOST + methodName)//
            .params(params)//
            .build()//
            .execute(stringCallback);`

调用时
` OkHttpRequestUtils.SINGLEOKHTTPREQUESTUTILS.uploadFile("upload", new MyResultCallback() {
@Override
public void onError(Call call, Exception e) {
Log.i("test", "onError: " + e);
}
                @Override
                public void onResponse(String s) {
                    Log.i("test", "onResponse: " + s);
                }
            });`

服务器可以接收到上传的文件，但是回调 onError: java.io.IOException: request failed , reponse's code is : 404

 .addFile("myfiles", "123465.jpg", file)//
第一个参数对应服务端接收的key.
建议让服务端检查下代码，看看是不是哪一步出错了，需要跳转到错误页面，结果没有错误页返回的404。

好了，谢谢，是服务器那边处理的有问题

authors: JerryJson hongyangAndroid

repo: hongyangAndroid/okhttp-utils

license_source: bigquery


text:
Focus is lost on the textarea

What version of Hono are you using?
4.0.0-rc.1
What runtime/platform is your app running on?
client
What steps can reproduce the bug?
import { render } from 'hono/jsx/dom'
import { useState } from 'hono/jsx'

const TextArea = () => {
  const [value, setValue] = useState('')

  const handleChange = (e: Event) => {
    const target = e.target as HTMLTextAreaElement
    setValue(target.value)
  }

  return (

      <textarea onChange={handleChange} />

{value}

  )
}

const root = document.getElementById('root') as HTMLElement

render(<TextArea />, root)

What is the expected behavior?
As the same as React:
https://github.com/honojs/hono/assets/10682/674e1c32-3386-4544-8aef-a7e1d3ac5fce
What do you see instead?
After typing a single character in the text area, the focus is lost and I cannot type continually.
https://github.com/honojs/hono/assets/10682/313bdef0-ff22-432b-8b85-d975f07fa54a
Demo: https://hono-client-components.pages.dev/,
Additional information
No response

Fixed!

repo: honojs/hono


text:
K6 Loadtests throws tons of error against Hono + Bun

What version of Hono are you using?
4.5.0
What runtime/platform is your app running on?
Bun
What steps can reproduce the bug?
Make a simple bun hono server which serves a single index.html file
import { Hono } from "hono";
import { serveStatic } from "hono/bun";
const app = new Hono();
export type App = typeof app;
app.get("/", serveStatic({ path: "./static/index.html" }));
export default app;

run a k6 load test against it
import http from "k6/http";
import { check } from "k6";
import { Rate } from "k6/metrics";

export let errorRate = new Rate("errors");

export let options = {
  vus: 10,
  duration: "10s",
  thresholds: {
    errors: ["rate<0.01"], // <1% errors
    http_req_duration: ["p(99)<1000"], // 99% of requests must complete below 1s
  },
};

export default function () {
  let res = http.get("http://localhost:3000");
  check(res, {
    "status is 200": (r) => r.status === 200,
  });
  errorRate.add(res.status !== 200);
}

you'll get tons of errors
024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
WARN[0000] Request Failed                                error="Get \"http://localhost:3000\": net/http: HTTP/1.x transport connection broken: malformed HTTP response \"\""
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/24 15:08:20 Unsolicited response received on idle HTTP channel starting with "\r\n"; err=<nil>
INFO[0000] 2024/07/2

I've tried this with express, I've tried with hono/node-server, I've tried this with uWebSocket.  This issue seems to only happen when using bun + hono.
What is the expected behavior?
I wouldn't expect any errors when running a k6 load test
What do you see instead?
No response
Additional information
No response

Is there any possibility that this is a problem of Bun?

I'll try using elyisa and get back to you

Is there any possibility that this is a problem of Bun?

I also verified using https://elysiajs.com/ with bun, no issues.  This seems very specific to Hono and Bun

@EdamAme-x I was able to reproduce using Elysia.js as well, so it's looking more like a bun issue

cc @Jarred-Sumner

authors: EdamAme-x rafaell-lycan webdevcody


text:
fix(validator): return HTTP 400 on malformed JSON request

This PR should close #562. The Validator middleware will now return a HTTP 400 Bad Request response whenever JSON in the request body fails to parse, or if the body is empty.

Hi @ThatOneBro !
This is good! One request. Please do denoify?

Hey @yusukebe!
Sorry about that, totally forgot! 😅 Should be good to go now!

Thank you!!

authors: ThatOneBro yusukebe


text:
Changing the colorscheme at runtime also effects lualine's colors

Changing the colorscheme at runtime using :colorscheme <scheme> also alters lualine's own colors, even though it's set to gruvbox in the config.
This does not occur, for example, with vim-airline when g:airline_theme is set in the config.

Nice catch! This is definitely and unwanted behavior, I will look into it

Nice catch! This is definitely and unwanted behavior, I will look into it

resolved with https://github.com/hoob3rt/lualine.nvim/commit/3ab706671898746c268f59ca7f02a4919072690f

resolved with https://github.com/hoob3rt/lualine.nvim/commit/3ab706671898746c268f59ca7f02a4919072690f


text:
bug: Hitting save closes all open edit inputs

If you hit edit on many items and then save on only one, the save will close out of the edit view for all items not just the one you clicked.

@jsimplicio  i think this is not a bug,or maybe we need to redesign the UX, at the moment, the list view is re-render after any item has been changed,  (if use React, this will be very easy to solve)
it means, after ONE item data change event fired, the previous view (that you clicked many edit of the items) is replaced by the new view of new set of data rendered to the DOM.

PR Allow only one item to be edited at a time https://github.com/hoodiehq/hoodie-app-tracker/pull/177 - This avoids the issue of editing multiple items and the edits not being saved

authors: fozy81 jsimplicio vickenliu

repo: hoodiehq/hoodie-app-tracker


text:
tried it and it crashed

Thanks for filling the issue.
can you include your code and also flutter doctor output

Thanks for filling the issue. @sgehrman
can you include your code and also flutter doctor output

authors: hoomanmmd sgehrman


text:
🛑 FWAw is down

In 99f86f0, FWAw ($FWA_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FWAw is back up in 0421237 after 12 minutes.

repo: hoopybe/uptime


text:
🛑 FWAw is down

In 2b454e8, FWAw ($FWA_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FWAw is back up in c8e0643 after 12 minutes.


text:
avoid panic if output terminates due to a downstream pipe

It would be clean to support an expected end of output due to a downstream pipe:
$ tail -n 100000 potfile | cut -d: -f2- | pack2 unhex | head
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
[redacted]
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', src/unhex.rs:15:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

As of 9ba3fbe all errors are reported except if it's due to a broken pipe which are silently dropped.
I'll leave this issue open until someone was able to test it on Windows.

Confirmed to be working on Windows as well, therefore I'm closing this.

Awesome, thanks!

authors: hops roycewilliams


text:
Concat UDF does not work

CONCAT was assumed to be a calcite built-in function, however the calcite parser returns it as a unresolved user defined function. Due to this, to topology deployment code tries to download and package the jar which fails.

Merged https://github.com/hortonworks/streamline/pull/830

repo: hortonworks/streamline


text:
fix: building asset bundle failed with CE

https://misskey.niri.la/notes/9mkk7romjg

ご報告とご指摘ありがとうございます。
GitHubを使うのがほぼ初めてなもので、プルリクエストに気づく前に、自分で修正してしまいました。
(スクリプト全体を#if UNITY_EDITORで囲み、不要なusingを削除しただけですが。)
こちらのプルリクエストをマージした後、バージョンのみ、1.0.4とさせていただこうと思います。


text:
PBF exports not filtered

Hello everyone. Ever since yesterday's temporary halt in the exporting function, the "pbf" exports I'm getting now are unfiltered means that if the export filters out only transportation-->roads data, I still get all linestring data from OSM.
In short, feature filter is no longer working apparently.

Hi, thanks for reporting this. I understand what the issue is now :)
Previously, the "PBF" exports were filtered down to the specified tags for performance reasons, with the changes I made yesterday this is no longer necessary. But I understand now that you were relying on this to download a filtered PBF file. What I'll likely do is make the filtered PBF the default and add a checkbox option for unfiltered PBFs.

@Melegy90 can you try using http://export-staging.hotosm.org and see if the result filtered PBF is correct like you expect? I have updated that site with the change you requested.

@Melegy90 can you try using http://export-staging.hotosm.org and see if the result filtered PBF is correct like you expect? I have updated that site with the change you requested.

Yes thank you Brandon, the staging version works as expected!

There is now an "unfiltered" option for PBF files - the default behavior is filtered like before.

repo: hotosm/osm-export-tool


text:
Allow order filter exclusion

What is the motivation for adding/enhancing this feature?

Allow order filters to be exclusion based. Need to build UI for this. Backend support exists, need front end support

Closing this against another issue having UI for the same https://github.com/hotwax/order-routing/issues/248

UI added here:

repo: hotwax/order-routing


text:
Recently removed product from the presell category do not show their last active PO information

Current behavior
Products which are recently removed from the presell (pre-order/backorder)category do not show their last active PO information in the Purchase Order card.
Expected behavior
If products are recently removed from the presell category, they must show their last active PO information.
Steps to reproduce the issue

Can you handle fixing this bug by yourself?

[ ] YES
[ ] NO

Environment details

Browser:
OS:
Code Version:

Additional information

if a product is removed from pre-order. we will not show last active anymore. this is a design choice

repo: hotwax/preorder


text:
feature:support map field

Hi, there.
Thanks for creating such a passionative tool, it really helped me out from the insert efficiency of the ck java-based client. Just noticed that map field hasn't been support by default so far and I think it would be a graceful to having it. Check it out and thanks for all your effort! Any question pls be free to approaching:)

Thanks for contribution, have a quick look on the PR, could you please also add unit test to verify the code works as expected, and we has some code style check and license rules, you can check the fail messages in CI log.

Thanks for contribution, have a quick look on the PR, could you please also add unit test to verify the code works as expected, and we has some code style check and license rules, you can check the fail messages in CI log.

Hi, there.
This is my first PR and I am currently not quite sure about how to solve the  error PR comment error(you can check it in the CI log). Is it supposed relating to any mechanism on first PR? Best regards!

Thanks for contributions. Just ignore the PR comment error, it's a known issue. I will take a look when have time.

Great Job ! 👍

authors: JasonBabylon TheXs pan3793

repo: housepower/ClickHouse-Native-JDBC


text:
Feature - suggest activity implement

suggest activity implement

:+1: There are no linter violations.

repo: hovansuit/FoodAndFitness

license: mit


text:
add botkit-middleware-facebookuser

create for developers to view code. In connection between botkit and facebookapi

@third1021 Looks cool! Thanks!

repo: howdyai/botkit


text:
Config manager

Global config manager similar to Pandas

#113

repo: hpcgroup/pipit


text:
Fix Initial Positioning

As a user I want the widget open centered and not on the side of the screen initially, to be able to recognize it immidiatly.

This is a result of the squeak window manager alligning them where there is space seemingly always opening it at the side of the screen.

repo: hpi-swa-teaching/MensaWidget


text:
(fix) Attempt to clear username/password fields after login/signup

This still doesn't work because I think the navigator saves the state, so even if you clear the states, after navigating back to the page, the credentials the user entered are still there...

Still not working, although the fields do seem to be 'clearing' since if you try to re-login after logging out without retyping it shows the alert that one or both fields are required (therefore, empty). They just visually look like text has been entered.....

repo: hr-memories/greenfield


text:
fix: use vim.treesitter.query instead of deprecated nvim-treesitter.t…

…s_utils
Using vim.treesitter.query instead of deprecated nvim-treesitter.ts_query in https://github.com/nvim-treesitter/nvim-treesitter/commit/c3848e713a8272e524a7eabe9eb0897cf2d6932e
Fixes:

Thank you for contribution!

LGTM. Thank you~!

It seems that if we are to get the first line only, both function behaves the same.

f9f6d8dc49d5ae8c92cad79974b754e7e7f0417b


text:
Feature request: support preview for source info field

Hey @hrsh7th
I wonder if there is a support for source like iced-vim that provide info field having documentation in it.
If so can you share a quick snippet for vim source I can start with.
Thanks

You should implement soirce.datermie by yourself.
See compe_vsnip source.

Nice thanks

hmmm I'm getting the following error
Error executing vim.schedule lua callback: Vim(let):E474: Unidentified byte: clojure.core/defn-
([name & decls])
Macro
  same as defn, yielding non-public def

Something about callback I'm not getting
function! s:documentation(args) abort
  let l:completed_item = a:args.completed_item
  if empty(get(l:completed_item, 'info', ''))
    return a:args.abort()
  endif
  if type(l:completed_item.info) == type('')
    let l:user_data = json_decode(l:completed_item.info)
  else
    let l:user_data = l:completed_item.info
  endif
  if !has_key(l:user_data, 'iced')
    return a:args.abort()
  endif

  call a:args.callback(l:user_data.info)
endfunction

Could you try it?
You can print debug echomsg string(l:completed_item).
function! s:documentation(args) abort
  let l:completed_item = a:args.completed_item
  if empty(get(l:completed_item, 'info', ''))
    return a:args.abort()
  endif
  call a:args.callback(l:completed_item.info)
endfunction

With the above I'm getting Error executing vim.schedule lua callback: Vim(call):E5108: Error executing lua Vim(for):E714: List required
Its an issue with callback. What does args.callback accept?

From original version tried return l:user_data but same err ``
Error executing vim.schedule lua callback: Vim(let):E474: Unidentified byte: clojure.core/defn
([name doc-string? attr-map? [params*] prepost-map? body] [name doc-string? attr-map? ([params*] prepost-map? body) + attr-map?])
Macro
  Same as (def name (fn [params* ] exprs*)) or (def
    name (fn ([params* ] exprs*)+)) with any doc-string or attrs added
    to the var metadata. prepost-map defines a map with optional keys
    :pre and :post that contain collections of pre or post conditions.

It should be work.
function! s:documentation(args) abort
  let l:completed_item = a:args.completed_item
  if empty(get(l:completed_item, 'info', ''))
    return a:args.abort()
  endif
  call a:args.callback(split(l:completed_item.info, "\n", v:true))
endfunction

Nice Thanks a lot, Is it parsed as markdown? also, I noticed with different source that the first match doesn't show documentation, and if its the only match also not show. Should I report

Yes. The documentation must be markdown.
If you want to show documentation as specific filetype, You can simply add the \``%FILETYPE``` and \`` for document text.

Currently, nvim-compe does not show item that selected by auto_preselect feature.
I think to support it is difficult by performance, user-experience.
But I will try it.

I disabled auto_preselect feature and still the same
Also @hrsh7th is there a method where I can transact the additonal text beyond threshold with .....
https://i.imgur.com/e6VHDN2.png

Probably, I couldn't understand your mean...
Could you explain me the your expectation by more simple way?

So the window is very wide because of the source function args  (multi). I want to shortent the width of completion popup and not let it stretch to the end of the screen

OK. I understand.
So we shoulda add max pum width option?

Oh thats really useful to have. so sources can't hijack compe popup


text:
Python Auto Completion Error

I got error From commit f3b722fb9c0a5a072a4991c10674252e6b516019 to 397cf7e073970736dbae6eec7e1fd7bc7494d997.
When I switch to commit 077329e6bd1704d1acdff087ef1a73df23e92789, it works well.
NVIM v0.5.0
Build type: Release
LuaJIT 2.1.0-beta3
Python 3.6.8

I've fixed it. Could you test with latest master?

This is fixed for me

I've fixed it. Could you test with latest master?

It works well by using commit 00ebf180d01f7f020c6c19bd8caed59f722ccc04
Thank you for fixing it.

Hello! Thanks for your hard work on the plugin! I love it. Just wanted to mention that I was experiencing the same with lua files but latest commit fixed it all. Thanks :+1:


text:
ERROR in node_modules/ion2-calendar/dist/calendar.controller.d.ts:1:33 - error TS2307: Cannot find module 'ionic-angular'. [ng] 1 import { ModalController } from 'ionic-angular';

Ionic version:  (check one with "x")
[ ] 2.x
[ ] 3.x
[ x] 4.x
Ion2-calendar mode:  (check one with "x")
[x ] components mode
[ ] modal mode
I'm submitting a ...  (check one with "x")
[x ] bug report
[ ] feature request
[ ] help me
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:
insert short code snippets here
ERROR in node_modules/ion2-calendar/dist/calendar.controller.d.ts:1:33 - error TS2307: Cannot find module 'ionic-angular'.
[ng] 1 import { ModalController } from 'ionic-angular';

Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here

I had the same problem and I solved it with npm install ion2-calendar@next moment --save

I had the same problem and I solved it with npm install ion2-calendar@next moment --save

Thanks @EDcasa .. it worked for me.

I tried the command above and still got the same error

same problem here

authors: EDcasa VigneshMohanrajInvensis tatianilima tomavic


text:
Not supported on WebStorm 2017.2.2

Hello!
I've just updated WebStorm to its latest version and when I've restarted it I got this message saying that .ignore plugin is not compatible.
This is my set up:

Build
#WS-172.3757.55, built on August 15, 2017
JRE: 1.8.0_152-release-915-b10 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Node version: 8.4.0

Thanks!

@FedeMarshall duplicate of #408

authors: FedeMarshall hsz

repo: hsz/idea-gitignore


text:
POM file is incorrect

Compilation yield 0 compiled classes:
$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------< de.uni.bielefeld.sc.hterhors.psink.obie:OBIEMLFramework >-------
[INFO] Building OBIEMLFramework 0.0.1-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ OBIEMLFramework ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.419 s
[INFO] Finished at: 2018-09-22T12:47:48+02:00
[INFO] ------------------------------------------------------------------------

The target/ folder is not created, none of the .class files is generated and the JARs are not there too.

Fixed

authors: berezovskyi hterhors

repo: hterhors/OBIEMachineLearningFramework


text:
Update types to include optional parameters

Solution for Issue #35

Cool, but I think it should also be added to the capture function source code, right?


text:
Refactored CurlClient to smaller components

In order to work on #64 and #62 , I decided to refactor CurlClient to smaller components to simplify the problem.

Each component encapsulates some portion of the logic
Lifetime management of objects is passed to GC instead of manual management
As each component has encapsulation, having separate dispatchers is easy and send and recv have their own sequential dispatchers instead of a global parallel one (closes #53 )
Functionality should be the same as before

Fixed Slist memory leakage problem as well, it was a tiny change.
closes #62

Added a fix for #64 too, I think we might make it simpler, but it fixes hang issues and would be better than none for now.

Lifetime management of objects is passed to GC instead of manual management

This is very interesting! What's an example of this?

Lifetime management of objects is passed to GC instead of manual management

This is very interesting! What's an example of this?

All the callback data (read, write, header) that were set in handler options to be passed to callback.

authors: armanbilge hnaderi


text:
Make EntityEncoder headers depend on value?

I just integrated twirl:
  implicit val HtmlEncoder: EntityEncoder[Html] =
    EntityEncoder[String].contramap[Html](_.body).withContentType(MediaType.`text/html`)

Html is a subtype of Content, which is a body and a media type.  This encoder could be genericized to Content if EntityEncoder.headers considered the entity.
Secondary question: anybody interested in http4s-twirl? :)

topic/xml-tags and topic/xml-implicit-media-type illustrate two options we have if Content-Type does not depend on the instance.

I've prodded at this from multiple angles and not made it better.  Closing.

There is renewed discussion of this on Gitter.  Examples we have of this being useful:

Multipart[F]

the boundary in Content-Type. Sorely needed.

File / Path

Content-Type from the Java APIs: nice to have
Content-Disposition: nice to have
Last-Modified: nice to have
Content-Encoding: From the suffix?  Janky.

Stream / InputStream / Reader

Content-Type, Content-Encoding, Content-Language: through file magic. Super Janky.

NodeSeq

Content-Type: from the root element. Nice to have

Does rho make use of headers aside from the static Content-Type and Content-Length?  If not, maybe headers could move into Entity itself.  The question then is if an instance-level Content-Type overrides the static one.  Then rho is lying.

Hi. I've just been hit by this, and working around has found pretty annoying : one API I'm testing allows the user to send  request bodies encoded either in json or in binary, and obviously I need to test both options.
The inability for the user to set the headers dynamically, according to what they're trying to encode makes writing encoders for ADTs harder/impossible, as the encoder has to be explicitly summoned and passed around, rather than implicitly. The alternative is for content-types headers to be dissociated from the encoders and passed manually.
The UX would be much better (imho) if the headers were function of the encoded instance.

@zarthross: How terrible would this be for rho? I think it's the primary reason not to move forward with this.  Would we need the compromise of static headers and instance headers?

authors: Baccata rossabaker


text:
GZip client middleware should not decompres empty response body

This PR generlizes the solution to the "GZip client middleware crashes when processing an HTTP HEAD response" issue as was suggested from the prevoius PR, by not decompresing a response body regardless of the corresponding request method.
The GZip client middleware inspects the response stream whether it's empty, by trying to peek the first byte from it without consuming it. If there is at least on byte in the stream, then the stream is considered non empty and the decompression process is applied; otherwise it just returns an empty stream.
I only was able to signal whether the stream is empty via the error channel, because the fs2.compression.gunzip method before proceeding with the decompression creates a java.util.zip.Inflater and encloses it using a Stream.bracket. If I run the decompression either inside the Pull (line 63) or outside (line 66), in the process of flattening the inner stream, it seems like it gets terminated and the Inflater is disposed before the decompression completes and it throws a java.lang.NullPointerException: Inflater has been closed exception.

One of the steps from the CI pipeline failed unrelated to the changes in this PR. It could not fetch some dependency.

This looks binary compatible, but I didn't do the backport of #3476 right, so I'll PR a backport of this separately instead of messing up twice.

authors: nelusnegur rossabaker


text:
CaseInsensitiveString improvements

no more lazy folded form
record hash code in a var, similar to our optimistic scheme for parsed headers
provide all the right Scalaz instances
for giggles, make it as StringLike as we can

Even making it a Seq[Char] is on shaky ground: like, should filter be case insensitive?  Probably.  I got carried away trying to make it more StringLike.  I think we should keep the instances and drop the Scala collection integration, which nobody asked for.  It just seemed easy to do.

i'd probably want to explain why the hashCode var is thread safe in a comment.

Codecov Report

Merging #900 into master will increase coverage by 0.28%.

@@            Coverage Diff             @@
##           master     #900      +/-   ##
==========================================
+ Coverage   68.68%   68.96%   +0.28%
==========================================
  Files         214      214
  Lines        4429     4447      +18
  Branches      451      454       +3
==========================================
+ Hits         3042     3067      +25
+ Misses       1387     1380       -7

Impacted Files
Coverage Δ

.../scala/org/http4s/util/CaseInsensitiveString.scala
96% <100%> (+8.5%)
:white_check_mark:

.../scala/org/http4s/testing/ArbitraryInstances.scala
80% <100%> (+30%)
:white_check_mark:

core/src/main/scala/org/http4s/Uri.scala
85.45% <ø> (+1.81%)
:white_check_mark:

core/src/main/scala/org/http4s/HttpVersion.scala
100% <ø> (+12.5%)
:white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfb9d45...76dc2ca. Read the comment docs.

Me too. 😆

Is this now a game to see who merges this last?

Did I not hit the button a second time? :confounded:

authors: ChristopherDavenport codecov-io ritschwumm rossabaker


text:
Allow specifying default hostnames (instead of localhost)

This seems to be related to #215 and #180, but is not a pure duplicate:
I would like to be able to create an alias or shell function for accessing a certain rest API requiring authentication. I started with
function girder {
    https --session=~/.girder_session.json girder.host.local.lan/api/v1/$1 ${@:2}
}

but my main problem is that I cannot change the HTTP method (e.g. to PUT or PATCH) this way. I would like to be able to have a different way of specifying the default host, so that I do not have to add a commandline parsing around httpie. And I do have some hope, since httpie already supports a default hostname, only that it's hardcoded to be localhost.
I see two potential solutions:

#215 contains a small change introducing an environment variable for the default host, which would solve my issue.
Another idea I had (more in the line of #180) would be to make the default hostname an optional part of the sessions. Maybe that could even be made to work with named sessions, by looking into a "default" host directory: ~/.httpie/sessions/default/<name>.json

With both solutions, the above shell function could be turned into a simple alias passing the desired --session parameter.

FYI, I've worked around this for local scripting use by defining a function (in Fish, as that's the shell I use). I'm still working out the kinks, but here's the basic structure:
function http
  argparse --ignore-unknown 'base-url=' -- $argv # extract --base-url if specified as option
  set opts (string match -rae  '^-' -- $argv) # extract args that start with '-' into $opts
  set rest (string match -raev '^-' -- $argv) # extract args that do not start with '-' into $rest
  command http $opts (string join $flag_base_url $rest[1]) $rest[2..-1] # put $opts before $rest
end

Hmm, I just realized as I was posting https://github.com/httpie/httpie/issues/838#issuecomment-1110055759 that this doesn't work when an http verb (get, post, put, etc.) is explicitly passed as the first argument, as this function statically prepends $flag_base_url to the first non-option argument.
I think what I'll likely do statically check if $rest[1] is in the list of expected http verbs → prepend $flag_base_url to $rest[2] if so, else prepend to $rest[1].

This has been open for a while. Will it be released soon?

Draft PR remains open: https://github.com/httpie/cli/pull/1377
I haven't had time nor motivation to push it to completion.
However AFAIK it has not received any official confirmation that it would be accepted if it's cleaned up. So if a maintainer would be willing to confirm they'd be comfortable with this change before anybody puts more effort in that would be nice!

authors: MoyeMoixa hmeine vergenzt

repo: httpie/cli


text:
Combine global timeout with per operation timeout

I believe at the moment it's only possibly to either specify a per operation timeout or a global timeout. Would be good if it were possible to combine both timeouts, e.g.
HTTP.timeout(global: 60, connect: 5, write: 2, read: 10).get 'http://example.com'
This is needed to handle servers that send unending responses or that send out data very slowly.

Hm... But global timeout is doing a bit different thing, it's basically timeout for connect + write + read. IN other words it won't solve your problem if I understand correctly.

In that case perhaps a different term is needed, e.g.

elapsed time timeout
overall timeout
total time timeout
cumulative time timeout

Closing in favor of #773

authors: ixti shaicoleman tarcieri

repo: httprb/http


text:
大佬，locust功能什么时候回归，是基于什么原因暂时下架了locust功能？

背景描述

重点描述遇到的问题：在什么场景下，HttpRunner 当前的功能特性不能（很好地）实现需求。

大佬，如题，谢谢

HttpRunner V3 进行了重写，暂时去除了 locust，后续会再添加回来。

@zcyuefan 在 3.1.0 版本中已重新集成 locust。

authors: debugtalk zcyuefan

repo: httprunner/httprunner


text:
Small Typo in C3W3_Assignment.ipynb

In the global variables markdown cell, OOV_TOKEN line, it should be written as:
Defaults to \"\<OOV>\".
There is an extra \ in the middle.

Thank you, Omar! Next time, you can also post feedback in the community for better visibility. There are instructions in Week 1 on how to join. Thanks again!


text:
🛑 Oldmai WEBUI is down

In 5bb1070, Oldmai WEBUI (https://my-aime.cn) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Oldmai WEBUI is back up in 8b1cbff after 5 minutes.

repo: huajip/uptime


text:
Firefox fagyás mobilon

Bizonyos oldalak lefagynak, ha engedélyezve van a hufilter a ublock-ban, mobil Firefox alatt.
Pl.:
https://totalcar.hu/magazin/hirek/2022/09/20/kozel-9-ezer-forintba-fog-kerulni-a-havi-sztradamatrica---megis-hozzanyultak-az-arakhoz/

https://github.com/uBlockOrigin/uAssets/issues/14945

repo: hufilter/hufilter-dev


text:
[Question] 手动初始化hbase后，启动进程报错

Problem Type (问题类型)
No response
Before submit

[X] 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题

Environment (环境信息)

Server Version: 最新
Backend: hbase
OS: xx CPUs, xx G RAM, Centos 7.x
Data Size:  xx vertices, xx edges

Your Question (问题描述)
手动初始化hbase，包括

建ns 和 table，成功
通过执行this.storeProvider.initSystemInfo(this);向表内插入元数据，成功

表里已有元数据

此时启动进程，报错如下，The backend store of 'HUGEGRAPH' has not been initialized

如果重新执行init-store.sh，则报错：Already exists backend info of graph 'HUGEGRAPH' in backend 'hbase'

辛苦帮看下是什么原因呢？感谢
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response

通过执行 this.storeProvider.initSystemInfo (this); 向表内插入元数据，成功

细节应该是执行这个步骤的时候有些出入吧, 核心思路差不多, 可以看看检查初始化完成以及图完成那块的代码上下文, 看看是不是少了点啥.

查了半天，原因是线上集群没有对namespace授权，所以本来初始化完成的，再去check的时候由于拿不到namespace就报错了。对namespace授权之后就没问题了

authors: imbajin wuchaojing

repo: hugegraph/hugegraph


text:
Order of the columns is not consistent between /first-rows and /rows

See /first-rows:

/rows

reported here: https://huggingface.slack.com/archives/C04BP5S7858/p1707758563241469 (internal)

Maybe related to this?

https://github.com/huggingface/datasets/issues/6663

OK, so it should be fixed with the next release of datasets.

the issue, once upgraded, will be to define what we have to recompute... first-rows? parquet files (ie. nearly everything)? possibly we can restrict by the date of last update.

Fixed. See https://huggingface.co/datasets/teknium/OpenHermes-2.5

Note that the order is different from the two divergent ones before the fix 😬

The orders are still different, aren't they?

oh right!!! I didn't check well

Also: it's weird because in /first-rows, the feature for "title" is... "null"! while it's "string" in /rows

As found by @albertvillanova : the cause of the difference of order comes from columns inference. One is done from streaming only 100 rows, while the other one is done on at least 5GB. The solution explained above (always compute first rows from parquet when possible) should fix the incoherence:

if no parquet: we just have one /first-rows response, so: no possibility of incoherence
if parquet: the /first-rows responses is recomputed, to use the same columns as /rows

split-first-rows computing with streaming, parquet still being computed. The dataset page and the dataset viewer page show /first-rows, ie: the same column order

Then, parquet has been computed, now: the first rows are computed from parquet. We have the same columns order for /first-rows (the dataset page) and /rows (the dataset viewer page)

The issue is fixed!

authors: albertvillanova severo

repo: huggingface/datasets-server


text:
Generate random cache subdirectory for dataset job runner

Generate random cache subdirectory for dataset job runner.
This might fix the stale file handle error:
OSError: [Errno 116] Stale file handle

See: https://huggingface.co/datasets/tapaco/discussions/4

OK, as you prefer... :smile:


text:
Add not-in-place implementations for several dataset transforms

Should we deprecate in-place versions of such methods?

@lhoestq I am not sure how to test dictionary_encode_column (in-place version was not tested before)

I can take a look at dictionary_encode_column tomorrow.
Although it's likely that it doesn't work then. It was added at the beginning of the lib and never tested nor used afaik.

Now let's update the documentation to use the new methods x)

authors: SBrandeis lhoestq

repo: huggingface/datasets


text:
Small fixes, rebased

This is a rebase of #29.

@McPatate This is a rebase of #29 with the changes that hadn't been applied to main.


text:
PG-19

Hi, and thanks for all your open-sourced work, as always!
I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling.

Sounds good! Do you want to give it a try?

Ok, I'll see if I can figure it out tomorrow!

Got around to this today, and so far so good, I'm able to download and load pg19 locally. However, I think there may be an issue with the dummy data, and testing in general.
The problem lies in the fact that each book from pg19 actually resides as its own text file in a google cloud folder that denotes the split, where the book id is the name of the text file. https://console.cloud.google.com/storage/browser/deepmind-gutenberg/train/ I don't believe there's anywhere else (even in the supplied metadata), where the mapping of id -> split can be found.
Therefore I end up making a network call tf.io.gfile.listdir to get all the files within each of the split directories. https://github.com/lucidrains/nlp/commit/adbacbd85decc80db2347d0882e7dab4faa6fd03#diff-cece8f166a85dd927caf574ba303d39bR78
Does this network call need to be eventually stubbed out for testing?

Ohh nevermind, I think I can use download_custom here with listdir as the custom function. Ok, I'll keep trying to make the dummy data work!

authors: lucidrains thomwolf

repo: huggingface/nlp


text:
Sasarkar/437 llama

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

@ssarkar2 Can you let me know the changes you applied to modeling_attn_mask_utils.py? It will be easier to review

For this file some changes made were:
cast removal
https://github.com/huggingface/optimum-habana/pull/671/commits/ba81579eab7412a09664261d06eafeac8705c75b
@MohitIntel saw an error without this change, he might have more details
remove "all" check:
elif not is_tracing:# and torch.all(attention_mask == 1):
This was done for speed up

repo: huggingface/optimum-habana


text:
Is it possible to support the new Bone method?

Feature request
In the paper "https://arxiv.org/pdf/2409.15371", we introduce a brand new PEFT (Parameter-Efficient Fine-Tuning) method: BONE (BLOCK AFFINE). This is a completely new structure that differs from the LoRA series. In terms of performance, it has already surpassed PISSA.
Therefore, I hope that Bone can be added to the PEFT repository. Would it be possible for PEFT members to help with the adaptation, or provide a simple template for me to adapt it myself? （You can learn more about the structure of Bone in detail in the Bone repository.）
Motivation
We hope that the PEFT repository will add Bone.
Your contribution
I have written the paper and code for Bone, and will subsequently verify and test it on PEFT.

Yes, it's possible to add new methods such as the one you propose.
From reading the paper, the Bone method would correspond to a completely new method and is not a modification of an existing method (e.g. PiSSA is a modification of LoRA). As a new method, a little bit of extra work is required. It's probably easiest to work with an example. In the recent past, we added HRA as a new method, you can check the pull request here: #1864. For Bone, something similar would be required.
To get you started, you could create a draft PR without any examples or documentation. Start with a simple test, e.g. by extending the test matrix here similar to what HRA did.
From this draft, we can iterate until the we finalize the contribution. Does that work for you?
Also, just some feedback on the paper (of course take it or leave it, I'm not a ML researcher):

I saw a couple of typos in the text, it would be good to get someone to proof-read.
The graphs with the losses are hard to read at times, as they are very small and the lines are very close.
For table 4, the LoRA score for Math is very low, is that right? Is it lower than from the base model?
For table 7, how exactly was memory measured, is it peak memory during training? Would it not make sense to also show LoRA + checkpointing?

Thank you very much for your reply and feedback.

Regarding LoRA's performance in math in Table 4, it is indeed strange and very low. I conducted two training sessions, and both resulted in very low performance, with training settings identical to PISSA (I will retrain it again later).
The memory measurements in Table 7 represent the peak memory usage during training. Additionally, LoRA + checkpointing is the actual training setup used on RWKV6 (when the model is large or when users want to use a larger batch size, which generally leads to insufficient memory).

I retrained LORA and tested it on math. Here are the results:

The test script can be found in the Bone repository, and Bone was tested under the same parameters (the Bone method was adapted to PEFT in the PEFT-Bone repository). Here are the results:

I retrained LORA and tested it on math. Here are the results:

Thanks for re-testing. So the results are not much different from what you reported in the paper. I checked the training script, I assume it's this one and you used the default arguments except for the ones defined here, is that right?
In that case, the learning rate would be 5e-5, right? Maybe you could try a higher one for LoRA, like 5e-4 or maybe even higher. I also see lora_alpha=32 for a rank of 8, could you try 16 instead?

Now you can check the settings in hf-ft/scripts within Bone. The parameters for bone, pissa, and lora are all the same except for their respective structural differences (consistent with the experimental settings in the paper). The settings for lora are based on those in the pissa paper and have not been deliberately optimized to their best configuration (I believe we don't need to worry about whether lora's settings are optimal because olora and pissa already significantly outperform lora, so ensuring that pissa and olora are correctly set up is sufficient). Lora's performance on math is indeed surprisingly poor, but it still performs normally on gsm8k (having been retrained three times and tested three times). The math tests were conducted using the opencompass repository. I am very confident about Bone's performance; however, during computation, intermediate values cause high memory usage, so checkpointing is currently needed to address this issue (slower than the lora series, but if checkpointing is also required for training with the lora series, then there isn't much difference in speed between them when training a 12B model).

authors: BenjaminBossan JL-er

repo: huggingface/peft


text:
DRAFT: Custom logits processors

What does this PR do?
This PR is meant for discussion purposes, around the idea to add custom logits processors, discussed here:
https://github.com/huggingface/text-generation-inference/issues/1269
It is not fully implemented yet, but the interfaces are there, and the design discussion can be held.
The idea is, how can we add custom logits processing code, allowing individual generation requests to control them, without injecting new dependencies to the text-generation-inference server.
Example use case:
The lm-format-enforcer library supports JSON Schema and Regex decoding using logits processing. Can we use the text-generation-inference server to decode different JSON schemas and regexes for different requests?
This PR proposes the following solution:

The NextTokenChooserParameters message will contain optional LogitsProcessorParameters objects, each containing the name of the processor, and a list of strings as its parameters (staying as generic as possible to make the grpc layer simple).
The server will have a central repository of named "logits processor factories" that can receive these parameters and create a request-specific logits warper
The server will have a command line module loader option, to enable loading of these modules, that will register themselves in the central repository when they loaded.

This will allow external libraries to register logits processors, that will be used when requests that mention them are given.
Example flow:

Server is loaded with --custom_modules=lmformatenforcer.integrations.text_generation_inference flag
The module is loaded, and its __init__.py code calls CustomLogitsProcessorsManager.register_factory(JsonSchemaFactory)
A request arrives, with name=jsonschema, parameters=["<str of json schema>"] in the logits parameters
The NextTokenChooser constructor finds the factory in the central repository, and creates a logits warper for decoding the specific JSON schema
After every timestep, the warper is called, putting -inf in the logits of the tokens that would violate the json schema
The result is a valid json string that conforms to the schema

What do you think of this design? You can look at the branch comparison for most of the key ideas. Can I go ahead and continue the full implementation?
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[x] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

this will change my life. if I can help with testing in any way let me know

I am still waiting for feedback from the team before I continue with the implementation. @Narsil @OlivierDehaene can you have a look and tell me what you think?

I am still waiting for feedback from the team before I continue with the implementation. @Narsil @OlivierDehaene can you have a look and tell me what you think?
Thanks, still very interested in this. in the meantime will switch to vllm.

repo: huggingface/text-generation-inference


text:
[Torch Compile]Fix to perf regression caused by OH update

This is a fix to perf regression in Torch compiled causal models introduced by update of Optiumum Habana. Optimum Habana introduce a path suitable for torch compile and a path for lazy. This paths are now to be choses with lazy_mode kwarg and this lazy_mode was set to True by default in OH 1.11.1 , so for Torch compile we had to switch this lazy_mode to False.
@kdamaszk Please review

@regisss Please review this PR

repo: huggingface/tgi-gaudi


text:
Absence of ref_model_name in the file which located in docs/source/best_of_n.mdx

System Info

from transformers import pipeline, AutoTokenizer
from trl import AutoModelForCausalLMWithValueHead
from trl.core import LengthSampler
from trl.extras import BestOfNSampler

ref_model = AutoModelForCausalLMWithValueHead.from_pretrained(ref_model_name)
reward_pipe = pipeline("sentiment-analysis", model=reward_model, device=device)
tokenizer = AutoTokenizer.from_pretrained(ref_model_name)
tokenizer.pad_token = tokenizer.eos_token

# callable that takes a list of raw text and returns a list of corresponding reward scores
def queries_to_scores(list_of_strings):
  return [output["score"] for output in reward_pipe(list_of_strings)]

best_of_n = BestOfNSampler(model, tokenizer, queries_to_scores, length_sampler=output_length_sampler)

I pasted the code from the open-source script. The link is https://github.com/huggingface/trl/blob/main/docs/source/best_of_n.mdx
could u define the ref_model_name in the script?
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder
[ ] My own task or dataset (give details below)

Reproduction

from transformers import pipeline, AutoTokenizer
from trl import AutoModelForCausalLMWithValueHead
from trl.core import LengthSampler
from trl.extras import BestOfNSampler

ref_model = AutoModelForCausalLMWithValueHead.from_pretrained(ref_model_name)
reward_pipe = pipeline("sentiment-analysis", model=reward_model, device=device)
tokenizer = AutoTokenizer.from_pretrained(ref_model_name)
tokenizer.pad_token = tokenizer.eos_token

# callable that takes a list of raw text and returns a list of corresponding reward scores
def queries_to_scores(list_of_strings):
  return [output["score"] for output in reward_pipe(list_of_strings)]

best_of_n = BestOfNSampler(model, tokenizer, queries_to_scores, length_sampler=output_length_sampler)

outputs:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
[<ipython-input-4-6cdab4e940d5>](https://u5o1j4ybk99-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20241218-060117_RC00_707469454#) in <cell line: 6>()
      4 from trl.extras import BestOfNSampler
      5
----> 6 ref_model = AutoModelForCausalLMWithValueHead.from_pretrained(ref_model_name)
      7 reward_pipe = pipeline("sentiment-analysis", model=reward_model, device=device)
      8 tokenizer = AutoTokenizer.from_pretrained(ref_model_name)

NameError: name 'ref_model_name' is not defined

Expected behavior
Define the variable of ref_model_name, pls.
Checklist

[X] I have checked that my issue isn't already filed (see open issues)
[X] I have included my system information
[X] Any code provided is minimal, complete, and reproducible (more on MREs)
[X] Any code provided is properly formatted in code blocks, (no screenshot, more on code blocks)
[X] Any traceback provided is complete

@aivolcano There is a notebook that is related to this. The updated notebook is here: https://github.com/huggingface/trl/blob/main/examples/notebooks/best_of_n.ipynb

thank u so much

authors: aivolcano metric-space

repo: huggingface/trl