Could not install mediapipe with tutorial code

OS Platform and Distribution
Google CoLab
Compiler version
No response
Programming Language and version
Python 3.10.12
Installed using virtualenv? pip? Conda?(if python)
No
MediaPipe version
No response
Bazel version
No response
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
I tried to run the code in CoLab shown on https://developers.google.com/mediapipe/solutions/customization/object_detector
The installation !pip install mediapipe-model-maker throws an error.

Complete Logs
Collecting mediapipe-model-maker
  Using cached mediapipe_model_maker-0.2.0-py3-none-any.whl (117 kB)
Requirement already satisfied: absl-py in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (1.4.0)
Collecting mediapipe>=0.10.0 (from mediapipe-model-maker)
  Obtaining dependency information for mediapipe>=0.10.0 from https://files.pythonhosted.org/packages/04/11/5ad75478c53a271255ca78c1236349fd60dde377301889f39bc84e6cdf36/mediapipe-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
  Using cached mediapipe-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.6 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (1.22.4)
Requirement already satisfied: opencv-python in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (<IP_ADDRESS>)
Requirement already satisfied: tensorflow>=2.10 in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (2.12.0)
Requirement already satisfied: tensorflow-datasets in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (4.9.2)
Requirement already satisfied: tensorflow-hub in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (0.14.0)
Collecting tf-models-official==2.11.6 (from mediapipe-model-maker)
  Using cached tf_models_official-2.11.6-py2.py3-none-any.whl (2.4 MB)
Requirement already satisfied: Cython in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (0.29.36)
Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (9.4.0)
Requirement already satisfied: gin-config in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (0.5.0)
Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.84.0)
Collecting immutabledict (from tf-models-official==2.11.6->mediapipe-model-maker)
  Obtaining dependency information for immutabledict from https://files.pythonhosted.org/packages/df/ef/e038d0d7cd1954c46402a0c27794dd93982c40632085046efb6ab8aa6c1d/immutabledict-3.0.0-py3-none-any.whl.metadata
  Using cached immutabledict-3.0.0-py3-none-any.whl.metadata (3.1 kB)
Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.5.16)
Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (3.7.1)
Requirement already satisfied: oauth2client in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (4.1.3)
Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (<IP_ADDRESS>)
Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.5.3)
Requirement already satisfied: psutil>=5.4.3 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (5.9.5)
Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (9.0.0)
Requirement already satisfied: pycocotools in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.0.6)
Collecting pyyaml<6.0,>=5.1 (from tf-models-official==2.11.6->mediapipe-model-maker)
  Using cached PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@robodhhb,
Could you downgrade the pip version by using below command and restart the run time again:
!pip install pip=21.3.1
And please let us know if this is works for you. Thank you!

@kuaashish
It works somehow with new error messages: See:
Python 3.10.12
Collecting pip==21.3.1
Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 26.9 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.1.2
Uninstalling pip-23.1.2:
Successfully uninstalled pip-23.1.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pip-tools 6.13.0 requires pip>=22.2, but you have pip 21.3.1 which is incompatible.
Successfully installed pip-21.3.1
Collecting mediapipe-model-maker
Using cached mediapipe_model_maker-0.2.0-py3-none-any.whl (117 kB)
Collecting mediapipe>=0.10.0
Using cached mediapipe-0.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.5 MB)
Requirement already satisfied: absl-py in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (1.4.0)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (1.22.4)
Requirement already satisfied: opencv-python in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (<IP_ADDRESS>)
Requirement already satisfied: tensorflow-datasets in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (4.9.2)
Collecting tf-models-official==2.11.6
Using cached tf_models_official-2.11.6-py2.py3-none-any.whl (2.4 MB)
Requirement already satisfied: tensorflow-hub in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (0.14.0)
Requirement already satisfied: tensorflow>=2.10 in /usr/local/lib/python3.10/dist-packages (from mediapipe-model-maker) (2.12.0)
Requirement already satisfied: psutil>=5.4.3 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (5.9.5)
Requirement already satisfied: Cython in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (0.29.36)
Collecting tensorflow-model-optimization>=0.4.1
Downloading tensorflow_model_optimization-0.7.5-py2.py3-none-any.whl (241 kB)
|████████████████████████████████| 241 kB 2.8 MB/s
Collecting tensorflow>=2.10
Downloading tensorflow-2.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (588.3 MB)
|████████████████████████████████| 588.3 MB 19 kB/s
Requirement already satisfied: matplotlib in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (3.7.1)
Collecting sacrebleu
Downloading sacrebleu-2.3.1-py3-none-any.whl (118 kB)
|████████████████████████████████| 118 kB 78.0 MB/s
Requirement already satisfied: py-cpuinfo>=3.3.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (9.0.0)
Collecting sentencepiece
Downloading sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
|████████████████████████████████| 1.3 MB 69.3 MB/s
Collecting tensorflow-text~=2.11.0
Downloading tensorflow_text-2.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.8 MB)
|████████████████████████████████| 5.8 MB 69.3 MB/s
Collecting pyyaml<6.0,>=5.1
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
WARNING: Discarding https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz#sha256=607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e (from https://pypi.org/simple/pyyaml/) (requires-python:>=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., !=3.5.). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.10/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpdr458knl Check the logs for full command output.
Downloading PyYAML-5.4.tar.gz (174 kB)
|████████████████████████████████| 174 kB 79.0 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... error
WARNING: Discarding https://files.pythonhosted.org/packages/b5/fd/15638de2da0a5aa91c095718444624aa565f766fc178249ca6faa372f71a/PyYAML-5.4.tar.gz#sha256=3c49e39ac034fd64fd576d63bb4db53cda89b362768a67f07749d55f128ac18a (from https://pypi.org/simple/pyyaml/) (requires-python:>=2.7, !=3.0., !=3.1., !=3.2., !=3.3., !=3.4., !=3.5.). Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.10/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpxpkii_lm Check the logs for full command output.
Downloading PyYAML-5.3.1.tar.gz (269 kB)
|████████████████████████████████| 269 kB 86.3 MB/s
Preparing metadata (setup.py) ... done
Requirement already satisfied: pandas>=0.22.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.5.3)
Collecting immutabledict
Using cached immutabledict-3.0.0-py3-none-any.whl (4.0 kB)
Requirement already satisfied: oauth2client in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (4.1.3)
Requirement already satisfied: scipy>=0.19.1 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.10.1)
Requirement already satisfied: gin-config in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (0.5.0)
Requirement already satisfied: tf-slim>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.1.0)
Requirement already satisfied: pycocotools in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.0.6)
Requirement already satisfied: opencv-python-headless in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (<IP_ADDRESS>)
Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (9.4.0)
Requirement already satisfied: google-api-python-client>=1.6.7 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (2.84.0)
Requirement already satisfied: six in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.16.0)
Collecting tensorflow-addons
Downloading tensorflow_addons-0.21.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (612 kB)
|████████████████████████████████| 612 kB 5.1 MB/s
Requirement already satisfied: kaggle>=1.3.9 in /usr/local/lib/python3.10/dist-packages (from tf-models-official==2.11.6->mediapipe-model-maker) (1.5.16)
Collecting seqeval
Downloading seqeval-1.2.2.tar.gz (43 kB)
|████████████████████████████████| 43 kB 1.9 MB/s
Preparing metadata (setup.py) ... done
Requirement already satisfied: attrs>=19.1.0 in /usr/local/lib/python3.10/dist-packages (from mediapipe>=0.10.0->mediapipe-model-maker) (23.1.0)
Requirement already satisfied: flatbuffers>=2.0 in /usr/local/lib/python3.10/dist-packages (from mediapipe>=0.10.0->mediapipe-model-maker) (23.5.26)
Requirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.10/dist-packages (from mediapipe>=0.10.0->mediapipe-model-maker) (<IP_ADDRESS>)
Requirement already satisfied: protobuf<4,>=3.11 in /usr/local/lib/python3.10/dist-packages (from mediapipe>=0.10.0->mediapipe-model-maker) (3.20.3)
Collecting sounddevice>=0.4.4
Downloading sounddevice-0.4.6-py3-none-any.whl (31 kB)
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (2.3.0)
Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (1.6.3)
Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (0.2.0)
Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (3.3.0)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (0.4.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (67.7.2)
Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (3.8.0)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (1.56.2)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (23.1)
Requirement already satisfied: libclang>=13.0.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (16.0.6)
Collecting tensorboard<2.12,>=2.11
Downloading tensorboard-2.11.2-py3-none-any.whl (6.0 MB)
|████████████████████████████████| 6.0 MB 44.2 MB/s
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (0.32.0)
Requirement already satisfied: wrapt>=1.11.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (1.14.1)
Collecting keras<2.12,>=2.11.0
Downloading keras-2.11.0-py2.py3-none-any.whl (1.7 MB)
|████████████████████████████████| 1.7 MB 73.5 MB/s
Collecting tensorflow-estimator<2.12,>=2.11.0
Downloading tensorflow_estimator-2.11.0-py2.py3-none-any.whl (439 kB)
|████████████████████████████████| 439 kB 86.5 MB/s
Collecting protobuf<4,>=3.11
Downloading protobuf-3.19.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 70.0 MB/s
Requirement already satisfied: typing-extensions>=3.6.6 in /usr/local/lib/python3.10/dist-packages (from tensorflow>=2.10->mediapipe-model-maker) (4.7.1)
Requirement already satisfied: requests>=2.19.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (2.27.1)
Requirement already satisfied: array-record in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (0.4.0)
Collecting tensorflow-datasets
Downloading tensorflow_datasets-4.9.1-py3-none-any.whl (5.4 MB)
|████████████████████████████████| 5.4 MB 72.0 MB/s
Downloading tensorflow_datasets-4.9.0-py3-none-any.whl (5.4 MB)
|████████████████████████████████| 5.4 MB 68.8 MB/s
Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (4.65.0)
Requirement already satisfied: dm-tree in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (0.1.8)
Requirement already satisfied: promise in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (2.3)
Requirement already satisfied: tensorflow-metadata in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (1.13.1)
Requirement already satisfied: etils[enp,epath]>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (1.4.0)
Requirement already satisfied: click in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (8.1.6)
Requirement already satisfied: toml in /usr/local/lib/python3.10/dist-packages (from tensorflow-datasets->mediapipe-model-maker) (0.10.2)
Requirement already satisfied: wheel<1.0,>=0.23.0 in /usr/local/lib/python3.10/dist-packages (from astunparse>=1.6.0->tensorflow>=2.10->mediapipe-model-maker) (0.41.0)
Requirement already satisfied: zipp in /usr/local/lib/python3.10/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets->mediapipe-model-maker) (3.16.2)
Requirement already satisfied: importlib_resources in /usr/local/lib/python3.10/dist-packages (from etils[enp,epath]>=0.9.0->tensorflow-datasets->mediapipe-model-maker) (6.0.0)
Requirement already satisfied: google-auth-httplib2>=0.1.0 in /usr/local/lib/python3.10/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (0.1.0)
Requirement already satisfied: uritemplate<5,>=3.0.1 in /usr/local/lib/python3.10/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (4.1.1)
Requirement already satisfied: httplib2<1dev,>=0.15.0 in /usr/local/lib/python3.10/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (0.21.0)
Requirement already satisfied: google-api-core!=2.0.,!=2.1.,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5 in /usr/local/lib/python3.10/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (2.11.1)
Requirement already satisfied: google-auth<3.0.0dev,>=1.19.0 in /usr/local/lib/python3.10/dist-packages (from google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (2.17.3)
Requirement already satisfied: python-slugify in /usr/local/lib/python3.10/dist-packages (from kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (8.0.1)
Requirement already satisfied: urllib3 in /usr/local/lib/python3.10/dist-packages (from kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (1.26.16)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.10/dist-packages (from kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (2.8.2)
Requirement already satisfied: bleach in /usr/local/lib/python3.10/dist-packages (from kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (6.0.0)
Requirement already satisfied: certifi in /usr/local/lib/python3.10/dist-packages (from kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (2023.7.22)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.10/dist-packages (from pandas>=0.22.0->tf-models-official==2.11.6->mediapipe-model-maker) (2022.7.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->tensorflow-datasets->mediapipe-model-maker) (3.4)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests>=2.19.0->tensorflow-datasets->mediapipe-model-maker) (2.0.12)
Requirement already satisfied: CFFI>=1.0 in /usr/local/lib/python3.10/dist-packages (from sounddevice>=0.4.4->mediapipe>=0.10.0->mediapipe-model-maker) (1.15.1)
Collecting tensorboard-plugin-wit>=1.6.0
Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
|████████████████████████████████| 781 kB 71.2 MB/s
Collecting google-auth-oauthlib<0.5,>=0.4.1
Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.12,>=2.11->tensorflow>=2.10->mediapipe-model-maker) (3.4.4)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)
|████████████████████████████████| 4.9 MB 65.7 MB/s
Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from tensorboard<2.12,>=2.11->tensorflow>=2.10->mediapipe-model-maker) (2.3.6)
Collecting numpy
Downloading numpy-1.25.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
|████████████████████████████████| 18.2 MB 199 kB/s
Requirement already satisfied: contourpy>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tf-models-official==2.11.6->mediapipe-model-maker) (1.1.0)
Requirement already satisfied: pyparsing>=2.3.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tf-models-official==2.11.6->mediapipe-model-maker) (3.1.0)
Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tf-models-official==2.11.6->mediapipe-model-maker) (4.41.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tf-models-official==2.11.6->mediapipe-model-maker) (1.4.4)
Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.10/dist-packages (from matplotlib->tf-models-official==2.11.6->mediapipe-model-maker) (0.11.0)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /usr/local/lib/python3.10/dist-packages (from oauth2client->tf-models-official==2.11.6->mediapipe-model-maker) (0.3.0)
Requirement already satisfied: rsa>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from oauth2client->tf-models-official==2.11.6->mediapipe-model-maker) (4.9)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python3.10/dist-packages (from oauth2client->tf-models-official==2.11.6->mediapipe-model-maker) (0.5.0)
Requirement already satisfied: regex in /usr/local/lib/python3.10/dist-packages (from sacrebleu->tf-models-official==2.11.6->mediapipe-model-maker) (2022.10.31)
Requirement already satisfied: lxml in /usr/local/lib/python3.10/dist-packages (from sacrebleu->tf-models-official==2.11.6->mediapipe-model-maker) (4.9.3)
Collecting colorama
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting portalocker
Downloading portalocker-2.7.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: tabulate>=0.8.9 in /usr/local/lib/python3.10/dist-packages (from sacrebleu->tf-models-official==2.11.6->mediapipe-model-maker) (0.9.0)
Requirement already satisfied: scikit-learn>=0.21.3 in /usr/local/lib/python3.10/dist-packages (from seqeval->tf-models-official==2.11.6->mediapipe-model-maker) (1.2.2)
Collecting typeguard<3.0.0,>=2.7
Downloading typeguard-2.13.3-py3-none-any.whl (17 kB)
Requirement already satisfied: googleapis-common-protos<2,>=1.52.0 in /usr/local/lib/python3.10/dist-packages (from tensorflow-metadata->tensorflow-datasets->mediapipe-model-maker) (1.59.1)
Collecting tensorflow-metadata
Downloading tensorflow_metadata-1.13.0-py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB 1.9 MB/s
Requirement already satisfied: pycparser in /usr/local/lib/python3.10/dist-packages (from CFFI>=1.0->sounddevice>=0.4.4->mediapipe>=0.10.0->mediapipe-model-maker) (2.21)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth<3.0.0dev,>=1.19.0->google-api-python-client>=1.6.7->tf-models-official==2.11.6->mediapipe-model-maker) (5.3.1)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.10/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.12,>=2.11->tensorflow>=2.10->mediapipe-model-maker) (1.3.1)
Requirement already satisfied: joblib>=1.1.1 in /usr/local/lib/python3.10/dist-packages (from scikit-learn>=0.21.3->seqeval->tf-models-official==2.11.6->mediapipe-model-maker) (1.3.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from scikit-learn>=0.21.3->seqeval->tf-models-official==2.11.6->mediapipe-model-maker) (3.2.0)
Requirement already satisfied: MarkupSafe>=2.1.1 in /usr/local/lib/python3.10/dist-packages (from werkzeug>=1.0.1->tensorboard<2.12,>=2.11->tensorflow>=2.10->mediapipe-model-maker) (2.1.3)
Requirement already satisfied: webencodings in /usr/local/lib/python3.10/dist-packages (from bleach->kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (0.5.1)
Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.10/dist-packages (from python-slugify->kaggle>=1.3.9->tf-models-official==2.11.6->mediapipe-model-maker) (1.3)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.12,>=2.11->tensorflow>=2.10->mediapipe-model-maker) (3.2.2)
Building wheels for collected packages: pyyaml, seqeval
Building wheel for pyyaml (setup.py) ... done
Created wheel for pyyaml: filename=PyYAML-5.3.1-cp310-cp310-linux_x86_64.whl size=44635 sha256=7ab037855df755764eab2345930574620cb2e6164d90be6a89d5daffeb07b8eb
Stored in directory: /root/.cache/pip/wheels/0b/a9/6a/d0a6981a8dbb698845178818642f72ce179f14336908c7df01
Building wheel for seqeval (setup.py) ... done
Created wheel for seqeval: filename=seqeval-1.2.2-py3-none-any.whl size=16165 sha256=9109cfc656544316a96d46285e40f8da021be9027353d764f717c4ac06f6b006
Stored in directory: /root/.cache/pip/wheels/1a/67/4a/ad4082dd7dfc30f2abfe4d80a2ed5926a506eb8a972b4767fa
Successfully built pyyaml seqeval
Installing collected packages: tensorboard-plugin-wit, tensorboard-data-server, protobuf, numpy, google-auth-oauthlib, tensorflow-estimator, tensorboard, keras, typeguard, tensorflow-metadata, tensorflow, portalocker, colorama, tensorflow-text, tensorflow-model-optimization, tensorflow-datasets, tensorflow-addons, sounddevice, seqeval, sentencepiece, sacrebleu, pyyaml, immutabledict, tf-models-official, mediapipe, mediapipe-model-maker
Attempting uninstall: tensorboard-data-server
Found existing installation: tensorboard-data-server 0.7.1
Uninstalling tensorboard-data-server-0.7.1:
Successfully uninstalled tensorboard-data-server-0.7.1
Attempting uninstall: protobuf
Found existing installation: protobuf 3.20.3
Uninstalling protobuf-3.20.3:
Successfully uninstalled protobuf-3.20.3
Attempting uninstall: numpy
Found existing installation: numpy 1.22.4
Uninstalling numpy-1.22.4:
Successfully uninstalled numpy-1.22.4
Attempting uninstall: google-auth-oauthlib
Found existing installation: google-auth-oauthlib 1.0.0
Uninstalling google-auth-oauthlib-1.0.0:
Successfully uninstalled google-auth-oauthlib-1.0.0
Attempting uninstall: tensorflow-estimator
Found existing installation: tensorflow-estimator 2.12.0
Uninstalling tensorflow-estimator-2.12.0:
Successfully uninstalled tensorflow-estimator-2.12.0
Attempting uninstall: tensorboard
Found existing installation: tensorboard 2.12.3
Uninstalling tensorboard-2.12.3:
Successfully uninstalled tensorboard-2.12.3
Attempting uninstall: keras
Found existing installation: keras 2.12.0
Uninstalling keras-2.12.0:
Successfully uninstalled keras-2.12.0
Attempting uninstall: tensorflow-metadata
Found existing installation: tensorflow-metadata 1.13.1
Uninstalling tensorflow-metadata-1.13.1:
Successfully uninstalled tensorflow-metadata-1.13.1
Attempting uninstall: tensorflow
Found existing installation: tensorflow 2.12.0
Uninstalling tensorflow-2.12.0:
Successfully uninstalled tensorflow-2.12.0
Attempting uninstall: tensorflow-datasets
Found existing installation: tensorflow-datasets 4.9.2
Uninstalling tensorflow-datasets-4.9.2:
Successfully uninstalled tensorflow-datasets-4.9.2
Attempting uninstall: pyyaml
Found existing installation: PyYAML 6.0.1
Uninstalling PyYAML-6.0.1:
Successfully uninstalled PyYAML-6.0.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
numba 0.56.4 requires numpy<1.24,>=1.18, but you have numpy 1.25.2 which is incompatible.
flax 0.7.0 requires PyYAML>=5.4.1, but you have pyyaml 5.3.1 which is incompatible.
Successfully installed colorama-0.4.6 google-auth-oauthlib-0.4.6 immutabledict-3.0.0 keras-2.11.0 mediapipe-0.10.3 mediapipe-model-maker-0.2.0 numpy-1.25.2 portalocker-2.7.0 protobuf-3.19.6 pyyaml-5.3.1 sacrebleu-2.3.1 sentencepiece-0.1.99 seqeval-1.2.2 sounddevice-0.4.6 tensorboard-2.11.2 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.11.1 tensorflow-addons-0.21.0 tensorflow-datasets-4.9.0 tensorflow-estimator-2.11.0 tensorflow-metadata-1.13.0 tensorflow-model-optimization-0.7.5 tensorflow-text-2.11.0 tf-models-official-2.11.6 typeguard-2.13.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: The following packages were previously imported in this runtime:
[google,numpy]
You must restart the runtime in order to use newly installed versions.

@robodhhb,
Please restart the runtime after downgrading to pip version and use !pip install mediapipe-model-maker.

You will be able to install model maker as above screenshot. Thank you!

@robodhhb,
Could you please update the status of the above. Thank you

Thank you @kuaashish ! It works but feels a little bit like the DLL-Hell so many years ago in the Microsoft world.


#638 synced about.ms and introduction.md respectively

Updated about.md and exercises introduction.md with respect to numbers introduction.md file.

Something seems very broken. Do you mind to do a new - clean pull request to see what all the checks are complaining about?

sure, will do.

@vaeng , created new PR as said. May i know how to delete this conflicted PR.

I'm not sure you can as a non-maintainer. I'll do it and re-open the other one


stream-settings colorpicker does not close when clicked outside the picker.

Steps to reproduce:

Open stream settings(Manage streams)
Open settings of a subscribed stream.
Click on the colorpicker to choose a color.
Without closing the colorpicker, close the stream-settings.

@zulipbot claim

If we decide to switch to the HTML5 type="color" input as suggested in #14961, this issue could be closed.

I think this was fixed in https://github.com/zulip/zulip/pull/17668.


Get only the first 5 evaluators

Is it possible to limit the number of evaluators returned.
Something like evalutors_for(:points).limit(5)
And to order the evaluators by its contribution?

You can do it like this:
.evaluations.for(:points).includes(:source).order(:created_at).limit(5).map(&:source)

That'll be improved in future. Pull requests are welcome.


[loader] suggested

[check-up] -> utilize any changes

Are you using auto-format tool or deepsource? It sounds like AI did that 😀
Probably, C# loader UI could be replaced by another scripting language to support cross-platform.
So these changes will temporarily not be able to merge.


Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

when i run ionic serve it works on browser but ... When i ionic emulate android
it fails
gc: Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NtkDetailsPage
and file in which it give error
contains this code

import { Component, Inject, OpaqueToken} from '@angular/core';
let APP_CONFIG = new OpaqueToken('APP_CONFIG');
import {CONFIG} from '../../config/app-config';
import { NavController, NavParams, LoadingController } from 'ionic-angular';
import {Nav} from '../navigation/nav';
import {httpProvider} from '../../providers/http/httpProvider';
import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser';

/*
 Generated class for the NtkDetailsPage page.

 See http://ionicframework.com/docs/v2/components/#navigation for more info on
 Ionic pages and navigation.
*/
@Component({
 templateUrl: 'ntk-details.html',
 providers: [{provide: APP_CONFIG, useValue: CONFIG }]
})
export class NtkDetailsPage {
 title: string;
 ntkItem;
 isLink;
 isVideo;
 url: SafeResourceUrl;
 constructor(private sanitizer: DomSanitizer, private nav: NavController, private navParams: NavParams, private http_service: httpProvider, @Inject(APP_CONFIG) private config, private loader: LoadingController) {

Hello, thanks for using Ionic! This is actually an error in your code that is being caught by NGC (the Angular AoT compiler). NGC does type/error checking in your templates when it runs. NGC does not run when running in dev mode which is why you are not seeing this error when running ionic serve. I will be closing this issue since it is not an error on our end but an error in your code, but feel free to ask around on our forum. Thanks!


syntax detection based on scope, not grammar

this allows emmet to work in html/css based languages like hanbdlebars or erb.

As far as I can tell, this has regressed, but it's pretty confusing. Looking through the Github history, I get two different pictures depending on which commit I use as the starting point (perhaps there was some kind of rebase or other history-rewriting change and this is how Github renders it?):
The history leading up to the change introduced by this PR:
https://github.com/emmetio/emmet-atom/commits/3f206f1313bc166655f7b4acb4934b8cc0c7a0da/lib/editor-proxy.coffee

The history of lib/editor-proxy.coffee (the file modified by this PR), viewed with master as the starting point:
https://github.com/emmetio/emmet-atom/commits/master/lib/editor-proxy.coffee

Not sure what happened, but long story short, this isn't working once again.

Happy to try submitting a PR that combines this fix with the current state (which seems to account for JSX), but wanted to be sure first.


ERROR: unsupported architecture "amd64"

WHAT:
Tried to run the plugin on Buildkite agent on a FreeBSD. The agent works for all Buildkite commands. Returns above error message.
CONFIG:

FreeBSD on a x64 AMD CPU
OS: 13.1-RELEASE
Shell: Bash

Can you pls provide the output of uname -s and uname -m from your machine.

# uname -s
FreeBSD

# uname -m
amd64

Thanks. I will fix this as soon as I have some time

TIA! I'm trying to use some complex workaround for now but it's not scalable.

@jhfoo sorry for the delayed action on this. I got busy with other things. The issue what that we are not currently generating binaries for free bsd. The linked PR generates binaries for FreeBSD and 2 other bsd distros.
Once the PR is released, please use the latest version of the plugin and see if that fixes your problem.
I don't have a FreeBSD machine to test with but this should resolve the issue.

Appreciate the effort. I'll monitor the pr and test for you.

It's all released. Let me know how you go

Thanks for spending some time on this. I switched back to 2.5.8 on your suggestion and got the same error:
ERROR: unsupported architecture "amd64"

Pipeline

Which timezone are you in? I can pair with you to test until it is fixed.

Can you open this issue? Doesn't look fixed.


Improve use_storage and removing storage flag

The use_storage API is great but there are a few issues with it:

It is locked behind the storage feature.
It requires usage of serde, a large dependency.
Versioning is done with merge_defaults and is pure string replacement.
It fails if the storage is disabled.
There is possibly a race condition between an internal and global storage event.

This is a merge request to improve on these points.
The API now requires a codec to be specified. This codec specifies how a value should be encoded and decoded to the browser API. I've introduced the following codecs:

StringCodec: a simple parser relies on FromStr and ToString. Used by default and works with primitive values. Doesn't require a feature flag.
JsonCodec: parses the value as JSON. Usage of this codec is the same as before and uses the "serde" feature.
ProstCodec: parses the value as a protocol buffer message. This is a codec that handles versioning and uses the "prost" feature.

By using a codec, the API can be used without enabling any features:
let (count, set_count, remove) = use_local_storage::<i32, StringCodec>("my-count");

JSON can be used just as easily. It also expands to any struct that implements Serialize, Deserialize as before:
let (count, set_count, remove) = use_session_storage::<i32, JsonCodec>("my-count-kept-in-js");

I've had to make changes to the API to support this. I've tried to keep the same functionality as before. General high-level changes to the API:

The use_storage_with_options is the base fn that takes a StorageType, key and options. This forces a choice between local / session / custom whose semantics are different rather than relying on a default.
The use_local_storage and use_session_storage (and those having the _with_options suffix) call into use_storage_with_options.
Instead of passing a default, UseStorageOptions provides a default signal that uses T::default if not provided.
write_defaults was removed as it wasn't obvious what should happen if the storage was deleted. If the storage item is removed, the value reverts back to the default signal.
merge_defaults was removed as it's a choice made by the codec.

Other points of interest:

The storage feature flag has been removed.
These changes touch use_color_mode which can now attempts data persistence without the storage feature.
There's a fallback to just using signals if browser storage is disabled. It acts a lot like a lesser session storage.
In the original design, values are passed and read from the event. I wasn't sure how these global events interacted from multiple tabs as well as internal events. So I switched the read signal to be a memo that calls storage.get_item when notified by an external event. This should avoid any data races from competing events.

Things I think that need your careful consideration:

Added thiserror dependency. It's a small, macro dependency but a dependency nevertheless.
Missing guidance on how to replace merge_defaults. This could just be an example on how to implement Codec and manipulating the JSON string as before. Or another JsonValueCodec that gives you access to the Serde::Value to make better default decisions than string replace. Your input here would be useful. It might also be obvious as the Codec trait is rather simple and might not need anything.
The default value of UseColorModeOptions::storage_enabled flips based on whether the storage flag was enabled. Since this flag has gone away and is now effectively always enabled, it will flip to true for users not previously using storage. I think this is reasonable but might be a surprise.
I tried using the default_builder macros but this resulted in an error related to the codecs. So I kept it as the manual builder pattern.
The UseStorageOptions::default_value is a MaybeRwSignal but only the read portion is used. I kept it as rw because it impacted the colour mode API and I wanted to avoid the ripple effect of changing too many APIs.

Please let me know what you think and give any feedback as necessary. I'm more than happy to make changes and tweaks as needed. I am away this week so my time is limited but I will try to do what I can.

Thanks, this is awesome! Thanks for all this great work. I think it'll improve use_storage a lot.
I like the idea of Codecs a lot!
Feedback to your raised points:

thiserror is totally fine. In another branch I'm adding this dependency myself.
I think versioning is indeed a consideration here. Maybe the function doc should include a section for that that mentions that Prost has it already and how to do it in JSON?
I agree, having storage enabled for color mode is totally a sensible default.
The default builder macro supports #[builder(skip)] attributes on fields. That field can then be implemented manually while all others don't need to. Would you mind making that change?
If you look at the previous code you'll see that the returned data and set_data signals are actually coming from the default's MaybeRwSignal's. The idea is - as is done in use_color_mode - that you can have an existing RwSignal working as before but it gets a storage inserted. We should really keep this functionality.

There's another thing: The way we generate the book from doc comments is not very intelligent. It requires at the moment that the first entity with doc comments is the actualy function (use_storage in this case) and everything else comes after.
Thanks again!

I'm glad you like it!
I don't mind making the changes. I'll review the following:

Document an overview of versioning options.
Document how to version JSON as currently documented.
Document how best to version with JSON.
Switch to the builder macro with #[builder(skip)]
Fix the mdbook docgen.
Finally, I'll look at data / set_data returning the MaybeRwSignal from defaults. The reason for the current approach was trying to avoid race conditions from competing events. I think it should be possible but it'll require careful review.

I'll do all of this next week when I'm back.

I've completed what you've asked for. Three things came up.
The first was with deriving data / set_data from the MaybeRwSignal. I was able to do this without issue but the default signal is less of a signal but more of a way to pass an "initial value" whenever the key isn't set. This initial value can't be changed for the life of the hook. I think this is a bit of a surprise because if I'm passing a signal, I'd assume the derived value (in this case the storage hook) would also change when it depends on it. This is what the initial PR was doing. I resolved this by renaming "default_value" to "initial_value" and mentioning it in the docs.
The second thing was related to the builder. It seems like the were compilation errors were on the struct itself using two generics. So I didn't make any changes to it.
Finally, I had some issues with building the mdbook. The scripts couldn't find post_build.sh for use_service_worker but did build when I deleted this part of the book. I renamed use_storage to use_storage_with_options but it wasn't parsing and pulling in the docs like the rest of the book. It also still mentions the "feature = storage" line. I'm not familiar with Python so I'm not easily able amend the Python scripts to fix this.

Thanks!

To being able to build the book you have move all structs in the file use_storage.rs below the functions use_storage and use_storage_with_options. Actually, in order to being able to review the changes meaningfully I'd appreciate it if you didn't change the order of the data structures. 😄
Please document the fields on UseStorageOptions.

1a) I was able to build the book. The problem was a post build script. Fix in #47.
1b) Once it was building I was able to understand what was happening in extract_doc_comment.py. Wow! I've done a small reorganisation to get the mdbook docs working.
1c) I've reverted to the original order (needed for mdbook). This PR started life as a complete rewrite of use_storage.
2) Done.
3) Done.

Thank you so very much!!
I brought back use_storage (without options) as I don't think we should break things if we don't need to.
Also I brought back the ## Demo section in the docs because in the book this is where the live demo is copied in.
Just FYI in case I didn't scare you off and you'll add more PRs in the future 😀


Symlink error when trying to run it in Windows Vagrant

Hi,
I use Ubuntu 18.04 through Vagrant in Windows. I have  npm v6.4.1 and node v8.12.0 installed in the Ubuntu.
When I run npx create-guten-block my-block, it throws a symlink error. This is a known issue: https://github.com/npm/npm/issues/9901
The solution is to set npm config set bin-links false, but when I do that, npx stops working:
npx create-guten-block my-block

npx: installed 113 in 2.645s
command not found: create-guten-block

Another option would be to run npm install with --no-bin-link flag.
Even when I run npx create-guten-block my-block --no-install, it still tries to install npm packages and fails.
When I abort npx create-guten-block while it is installing the npm packages and try to run npm install --no-bin-links manually in the my-block folder, nothing happens,
Can you help me?
Thanks!

Just ran across this same issue myself!
In Windows, creating symlinks requires a special permission that by default is only given to administrators.
Follow these steps from this article:

Go to Start > Run and enter secpol.msc. Then click OK.
In the Local Security Policy window that opens, go to Security Settings > Local Policies > User Rights Assignment.
In the list, find the Create symbolic links item.
If you have permissions, do the following:
Double-click the item and add yourself (or the required user or the whole users group) to the list.
After changing the policy, log out and then back in to your computer.

(You can also launch a command prompt with admin privileges if you already have them, but I found it much less annoying to simply give my user this permission.)

And, for those administrators concerned about security: Microsoft is making it easier for developers to enable this setting.


Outdated cask: jbidwatcher

Outdated cask: jbidwatcher.
Info:

version: 2.5.6.
appcast url: https://www.jbidwatcher.com/sparkle/updates.xml.

2.5.6

Updated in #18392.


change github link to new url

Hey @maracuja-juice,
Your changes look good to me!
View build log
TravisBuddy Request Identifier: 7f715250-5199-11e9-ad12-835a6074a428


Feature(config) implement streamload via http stream

What problem does this PR solve?
Issue Number:  #36773
Problem Summary:
Currently we can put data to doris via http using streamload or http stream. httpstream transforms data via sql in a header while streamload via special header. Sql is more easier to use.
In future, we would suggest http stream for users, and we also need keep only one in internal implementation. So we can add a config option to enable implement streamload via ways of httpstream.
We can transform streamload headers to a sql internally and implement streamload in ways of httstream.
Problem Solution:

Add a new BE config enable_streamload_by_httpstream
Perform streamload via httpstream if enable_streamload_by_httpstream=true
Manual test the implementation by previous regression test streamLoad_action

Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

You'd better set default to true to run all tests.

run buildall

run buildall

run beut

run buildall

run buildall

run buildall

run buildall

run buildall

run p0

run buildall

run buildall

run buildall


docs: Document jest's transformIgnorePatterns option to avoid pitfall

I found that many people have issues running tests with jest, receiving an error like "unexpected token "import".
The most common reason - as far as I can tell - are packages in their node_modules that contain untranspiled ES6 imports.
While we offer the transpileDependencies option, jest doesn't respect it, and rightfully so, since the issues solved by that option are often different ones (transpiling for browser compatibility).
Instead, people have to adjust jest's transformIgnorePatters option when one of the packages they use has to be transformed by babel-jest or vue-jest.

Will undo the unnecessary formatting changes that my editor did.

Should be good now. Jeeeeez....


feat: add pages to vite plugin for builder

required by https://github.com/frappe/builder/blob/95493c56ce9e98cadca45c226c3efb51e781c36e/frontend/vite.config.js#L34

cc @surajshetty3416

@blaggacao Why is this required here 🤔

Ah, you're right. That's a better idea! Will do, shortly.

@surajshetty3416 Does this look better?
Btw, I don't know why not this diff, but I left it how it was
module.exports = function proxyOptions({
  port = 8080,
  regex = '^/(app|login|api|assets|files)',
- } = {}) {
+ }) {

Btw, I don't know why not this diff, but I left it how it was

the {} in it is just a default value so that you can call proxyOptions() (without any parameter) and still be able to destructure the object with default values (eg. port and regex).


Release 5.0.0

As there are no new issues reported to the beta release, I think we can release it as a stable version. I was testing it also on my private projects and seems to work well :)

This is the big one!

:tada: This PR is included in version 5.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add close option into search navbar on mobile

Can someone also change the search navbar on mobile? In current version of kodadot you dont have option to close it :D

also in components page
https://www.figma.com/file/3iOjW12ERFRDSVnpLuhQmf/landing-page-handoff?node-id=1305%3A5613
Originally posted by @exezbcz in https://github.com/kodadot/nft-gallery/issues/4196#issuecomment-1295952650

👋🏻

navbar refactor is taking longer than expected, I'm passing for now (feel free to grab this one)


Remaster of the Panel API part.

Added descriptions
Added examples
Added meta descriptions
Removed / from call titles
Added parameters to tables

Thank you


[admin] Publish

Docs Build status updates of commit 0bf0546:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/develop/auth-external-add-ins.md
:white_check_mark:Succeeded
View

docs/develop/auth-with-office-dialog-api.md
:white_check_mark:Succeeded
View

docs/develop/authorize-to-microsoft-graph-without-sso.md
:white_check_mark:Succeeded
View

docs/develop/authorize-to-microsoft-graph.md
:white_check_mark:Succeeded
View

docs/develop/create-sso-office-add-ins-aspnet.md
:white_check_mark:Succeeded
View

docs/develop/create-sso-office-add-ins-nodejs.md
:white_check_mark:Succeeded
View

docs/develop/grant-admin-consent-to-an-add-in.md
:white_check_mark:Succeeded
View

docs/develop/overview-authn-authz.md
:white_check_mark:Succeeded
View

docs/develop/persisting-add-in-state-and-settings.md
:white_check_mark:Succeeded
View

docs/develop/read-and-write-data-to-the-active-selection-in-a-document-or-spreadsheet.md
:white_check_mark:Succeeded
View

docs/develop/register-sso-add-in-aad-v2.md
:white_check_mark:Succeeded
View

docs/develop/sso-in-office-add-ins.md
:white_check_mark:Succeeded
View

docs/develop/troubleshoot-sso-in-office-add-ins.md
:white_check_mark:Succeeded
View

docs/develop/use-sso-to-get-office-signed-in-user-token.md
:white_check_mark:Succeeded
View

docs/images/sso-access-to-microsoft-graph.png
:white_check_mark:Succeeded

docs/images/sso-access-to-microsoft-graph.svg
:white_check_mark:Succeeded
View

docs/images/sso-access-to-microsoft-graph.vsdx
:white_check_mark:Succeeded

docs/images/sso-overview-diagram.png
:white_check_mark:Succeeded

docs/images/sso-overview-diagram.svg
:white_check_mark:Succeeded
View

docs/images/sso-overview-diagram.vsdx
:white_check_mark:Succeeded

docs/includes/grant-admin-consent-to-an-add-in-include.md
:white_check_mark:Succeeded

docs/includes/register-sso-add-in-aad-v2-include.md
:white_check_mark:Succeeded
View

docs/includes/sso-yeoman-project-structure.md
:white_check_mark:Succeeded
View

docs/outlook/authenticate-a-user-with-an-sso-token.md
:white_check_mark:Succeeded
View

docs/quickstarts/sso-quickstart-customize.md
:white_check_mark:Succeeded
View

docs/quickstarts/sso-quickstart.md
:white_check_mark:Succeeded
View

docs/reference/requirement-sets/word-preview-apis.md
:white_check_mark:Succeeded
View

docs/toc.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Support for ubiquiti_edge

Can we add support for ubiquiti_edge please?

Hello! I've just added support (first attempt) for Ubiquity Edge Switch to dev branch but without committing to master dev and releasing new release until you test it. Can you test it? Maybe do you need some help with that?

Hello, Let me try this out during the weekend and will keep you posted. Thank you so much.

Tested today and it works great.. Tried both show commands as well as tried to configured an interface... write memory works as well. Awesome.. Good for merge to Release v1.0.


ISPN-13986 Avoiding hybrid query if count targets an aggregable field

https://issues.redhat.com/browse/ISPN-13986

@yrodiere could you review it please?

I pushed a changes in order to support the feature also if the query is a broadcast query.

I may be missing something so I won't request a change, but I really don't understand how you would achieve this sort of aggregations with Hibernate Search... see below.
I suspect you need to limit yourself to count(*)/count(<key>).
Otherwise, you really do need something like https://hibernate.atlassian.net/browse/HSEARCH-3661 , but for the Lucene backend. Which, as we discussed, is certainly possible, but not at all trivial, because the current implementation of Lucene aggregations is based on a Lucene "faceting" feature that basically only supports simple document counts by value, and no aggregation nesting at all.

I started this contribution from the query from a user that does something like:
select status, count(code) from org.infinispan.query.model.Sale where day = :day group by status order by status

@aleoncini could you please confirm it?
where it expressed a field name in the aggregation function. So I interpreted it to count the entity only if the code is not null (e.g.,  an exist predicate).
At this very moment it is not even possible to express a count on alias or on asterisk, to count the entity in any case and that's is reason because I opened the follow up => https://github.com/infinispan/infinispan/pull/11412.

@yrodiere thanks for the review!

FWIW I won't go through the conversations again but here are a few cases that might be problematic.
I may be wrong, but I couldn't find tests for those cases, so... who knows.
Should be easy to fix:

A query with two count on different fields, e.g. select status, count(employer), count(code) group by status order by status, will ignore the first count(). AFAICS this is not tested. See also https://github.com/infinispan/infinispan/pull/11410#discussion_r1366541633
Results won't be sorted by term, but by document count. This might not be visible in tests because all results have the same document count, and you probably end up with the index order, which happens to match the term order, but only by chance. See https://github.com/infinispan/infinispan/pull/11410#discussion_r1369947896
A query that is supposed to return more than 100 results will only return the first 100 results. This might not be visible in tests because there are fewer than 100 results. See also https://github.com/infinispan/infinispan/pull/11410#discussion_r1369947896

I don't know how to fix:

For a query like select status, count(code) from org.infinispan.query.model.Sale where day = :day group by status order by status, if the only document with a given status has a null code, the results will be missing the expected row (status = thestatus, count = 0). See also https://github.com/infinispan/infinispan/pull/11410#pullrequestreview-1694511801

Hi @yrodiere, thank you for the review.
100 results would be a super critical thing to fix. Are you sure that it does not work?

A query with two count on different fields, e.g. select status, count(employer), count(code) group by status order by status, will ignore the first count(). AFAICS this is not tested. See also https://github.com/infinispan/infinispan/pull/11410#discussion_r1366541633

I think I fixed it. Now if a query with 2 aggregations are used, the system will use the default (preexisting) non-indexed implementations.

Results won't be sorted by term, but by document count. This might not be visible in tests because all results have the same document count, and you probably end up with the index order, which happens to match the term order, but only by chance. See https://github.com/infinispan/infinispan/pull/11410#discussion_r1369947896

We already re-sorted the result in the AggregationDistributedIterator. Now I fixed a local indexed query to do the same.

A query that is supposed to return more than 100 results will only return the first 100 results. This might not be visible in tests because there are fewer than 100 results. See also https://github.com/infinispan/infinispan/pull/11410#discussion_r1369947896

This would be a serious issue. I increased the volumes of the indexed entities in tests. For instance the query without the where returns correctly a total count 10_000, that is > 100 I think. Isn't it?

For a query like select status, count(code) from org.infinispan.query.model.Sale where day = :day group by status order by status, if the only document with a given status has a null code, the results will be missing the expected row (status = thestatus, count = 0). See also https://github.com/infinispan/infinispan/pull/11410#pullrequestreview-1694511801

Having no row in case of count 0 is something we can accept. I think there is no reason to change it now.

I think I fixed it. Now if a query with 2 aggregations are used, the system will use the default (preexisting) non-indexed implementations.

Makes sense.

We already re-sorted the result in the AggregationDistributedIterator. Now I fixed a local indexed query to do the same.

Makes sense.

This would be a serious issue. I increased the volumes of the indexed entities in tests. For instance the query without the where returns correctly a total count 10_000, that is > 100 I think. Isn't it?

No, it is not. The returned count is irrelevant. I'm talking about an aggregation that returns more than 100 buckets, i.e. with more than 100 different terms for the field you're grouping by.
I'll point you to the documentation again: https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#search-dsl-aggregation-terms-maxtermcount
You might want to look at Hibernate Search tests if it's still unclear:

https://github.com/hibernate/hibernate-search/blob/6354c347a466be9f8a04d4bf985736b3bcdf68cc/integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/aggregation/TermsAggregationSpecificsIT.java#L458-L486
https://github.com/hibernate/hibernate-search/blob/6354c347a466be9f8a04d4bf985736b3bcdf68cc/integrationtest/backend/tck/src/main/java/org/hibernate/search/integrationtest/backend/tck/search/aggregation/TermsAggregationSpecificsIT.java#L600-L624

Having no row in case of count 0 is something we can accept. I think there is no reason to change it now.

And more importantly there is no way to fix it :D


Mod security installation on windows not successful

Hi
I installed SP1 as per your recommendations. Not sure where the problem is but cannot get it to work.
This is what I have done so far
1.Installed VC++ 2008, 2010 SP1, 2012 and 2013 64 bit.
2.Downloaded ModSecurityIIS_2.9.0-64b.msi for 64 bit Windows
3.In the installation of the software choose 64 bit option from the feature list after agreeing to licence terms.
4.Completed installation successfully and restarted IIS
5.The files were downloaded to 'Drive:\Program Files\ModSecurity IIS'
6.Located 'modsecurity_iis.conf' under '\Program Files\ModSecurity IIS' path and used this to do the necessary web config entry for the web site as shown in readme.txt
7.Switched on the SecRuleEngine by setting it as 'On' in modsecurity.conf located at the same path as 'modsecurity_iis.conf' file.
8.Performed IIS reset.
9.Included a test rule SecRule ARGS "../" "t:normalisePathWin,id:99999,severity:4,msg:'Drive 10.Access'" in the modsecurity.conf file.
11. Attempted to browse the URL of the web site by passing invalid query string as mentioned in point 9.
12. Web site does not throw access denied page
Event logs under application logs 'The description for Event ID 1 from source ModSecurity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.' This error is logged just after the installation is complete and continues logging it for 4 -5 time there after.
Is there something I am missing or have not done correctly for it to work. I can see that in the temp folder under IIS for application pool, the module being loaded and every time I try to use the web site an entry being made in windows log file. I am sure the module is not the issue, is it the supporting reference files or my configurations that is the problem? Please advice.
Thanks
Gireesha

Hi @GireeshaRS,
Did you had a chance to look into the IIS Troubleshooting? it is available here:
https://github.com/SpiderLabs/ModSecurity/wiki/IIS-Troubleshooting

Hi
I made some progress on the issue by uninstalling all pre-requites and attempting to re install. This time around, it looks the installation went through well. The mod security module seems to have been configured and working. But I have the following two issues

The module is loaded for all the websites in my IIS and my application log is full of entries for the websites I do not want the detection. I have made an entry in the config files for the websites that I do not want mod security to be implemented by adding the remove module tag. This has still not helped.

The windows logs that are generated for breach of rule does provide description of the error but it still says some files are corrupted. Please see the screen shot attached,

The web site using mod security filters the response object which is affecting the display and action during page navigation. I see an error as shown in screen shot above which says header is not accepted. I may have to go through the rules config and edit it to let it through, but that is second part of the problem which I am currently working on.
Please could you advice on the above.
Thanks
Gireesha

Did you fix it? if so, can you explain how you did it?

I am also getting the same "source ModSecurity cannot be found" message.  Anyone have any suggestions?

Hi @dmz006,
This is just an warning. That is actually the ModSecurity letting you know something about a given request. The "windows description" of the event can be ignored. Look at the content...

I know this is an old issue, but for others that want to get rid of the annoying "The description for Event ID 1 from source ModSecurity cannot be found" text, you can run the following command as an administrator.
eventcreate /ID 1 /L APPLICATION /T INFORMATION  /SO ModSecurity /D "Test entry"
This creates an event source in the registry at HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\ModSecurity.

I know this is an old issue, but for others that want to get rid of the annoying "The description for Event ID 1 from source ModSecurity cannot be found" text, you can run the following command as an administrator.
eventcreate /ID 1 /L APPLICATION /T INFORMATION  /SO ModSecurity /D "Test entry"
This creates an event source in the registry at HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\ModSecurity.


Removed dependabot.yml 👋

👀 Purpose
As part of our ways of engineering, we are now experimenting with Trivy for vulnerability scanning along with the removal of Dependabot as a dependency management tool.
♻ What's Changed

Dependabot configuration has been removed.

📝 Notes
No notes to speak of.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.42%. Comparing base (18bb92f) to head (7a7782e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4293   +/-   ##
=======================================
  Coverage   98.42%   98.42%
=======================================
  Files          45       45
  Lines        4056     4056
=======================================
  Hits         3992     3992
  Misses         64       64

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


IE Compatibility?

I see quite a few issues when viewing in IE11 on my machine. The slid elements do not have their visibility unhidden and are not in the correct position. Also, on your demo site content from the bottom slide is appearing on the main page before clicking anything (the tweet button), the main text not vertically centered, and the menu hamburger is distorted.
In Chrome I found that if the content of the page is > the view height the bottom slider does not slide up all the way.
I tested this on a single page with a sliiide from each direction (similar to the demo) with horizontal slides 100vw, and vertical slides 100vh.
Slick library. Thank you for sharing it.

In Chrome Version 45.0.2454.85 and Firefox 40.0.3, everything is working just fine but  on my guest windows IE 10, slide menu is not showing, I thinks some sort of CSS problem, cause the element is there but not visible. I attach the actual view of my IE 10 running on virtualbox

.

For IE, I don't own a windows laptop but I'll try my best to test it out and fix some stuff so thanks for reporting the issues!
For the twitter button, The code of the tweet button changed and twitter is now adding an in-style property for the visibility to be 'visible'. That's why it's appearing out of nowhere on my demo site on all browsers, my demo site is kind of a special case because it has 4 hidden menus in there that I keep switching between every time the respective blue button is clicked. I'm gonna try to hide the menus not in use, I don't think that has an affect on the plugin usage though, unless you're also using twitter's button lol.

Hey @nightcoder824 I noticed the strange behaviour that IE was doing and updated the plugin to better support it. Give it a shot and let me know how it goes, IE9 and up should be working fine.
Note: Please ignore the layout problems of the demo page on IE, I built it all using mostly flexbox and it's not meant to support all browsers.
@tim-lukacik gonna work on the bottom sliiider problem that you're experiencing next, I'll keep you posted.

Ok I've done some work to make the plugin work for IE 10,11 and Edge .. I don't see any big problems for IE 9 but I'll go on the safer side and mention that it's not supported. I'll close this issue for now as I have tested the newer IE versions mentioned above, I've also adjusted the positioning for the bottom slider in case the page is longer than viewport height. So both these issues should be resolved @nightcoder824 @tim-lukacik
P.S. the demo page is still gonna look like crap in IE < 12 because it's using a lot of flex box .. the sliiider functionality should be working fine though.


Update docs to reflect the proper way to set NSFileProtection attributes

We currently recommend to set them on the main Realm file and all auxiliary files in the Encryption section of the docs.
In reality, we should be recommending that they be set on the Realm file's parent directory and that a subdirectory should be used if there are other files in that directory that shouldn't share those same attributes.
We should also update that section since those attributes are already set to encrypt the file by default as of iOS 8 (I think), so it's currently incorrect.

Confirming. Avoid setting file protection attributes on iOS 8+ otherwise Realm file won't be accessible on a second launch.

This was done in https://github.com/realm/realm.io/pull/1791 and is now available at https://realm.io/docs/swift/latest/#using-realm-with-background-app-refresh


Allow using a Jenkins Secret for API key

Note:
If you have a feature request, you should contact support so the request can be properly tracked.
Is your feature request related to a problem? Please describe.
Currently the only way to define a DataDog API Key is by manually inserting it into the config window. This means that using Jenkins Configuration-as-Code would require adding plaintext API key to VCS.
Describe the solution you'd like
It would be nice if the plugin would support using a Jenkins Secret Text for that. Similarly to how Git plugin allows selecting credentials from Jenkins Secrets.
This would allow the usage of Jenkins Config-as-Code without exposing the API key to anyone with read permissions to the Git repo
Describe alternatives you've considered
None that I can think of
Additional context
Allow defining API key here

Similarly to how, for example, Bitbucket plugin does it:

Ahh, I just double checked, and it seems that exporting the secret from the running instance using the JCasC runner does indeed encrypt the key, and allow it to be added to VCS without an issue.
Still would be nice to be able to use a secret here.

Thanks for opening this. You can use our plugin with the Datadog Agent as a proxy in order to submit data to your Datadog account.  Still, I am leaving this issue open for the community to grab. As a side note, we had a similar request on our previous repo. See https://github.com/DataDog/jenkins-datadog-plugin/issues/93

@gzussa ahh, thanks for that tip! I'd somehow missed that I could use the agent, but now that I'm thinking about it - it makes perfect sense. Thanks!


Better DNSPod error message handling and ip_type checking

DNSPod API now requires record type to be specified, so the ip_type
setting must be set in config.json. Otherwise DNSPod will return error
message like this:

{"status":{"code":"27","message":"Record type invalid","created_at":"2020-02-09 02:59:10"}}

This PR also prints out error message if DNSPod returns any non success result.

Unfortunately the Wercker build failed for some other reason:

package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

Thanks for your contribution.


Techy not working

I use techy for a college website and generate the site every day. It stopped working, I've messed with it for a while. I tried it in a more reliable dev environment, and the same problem happened. It hangs and none of the folders generate. This comes from a setup where it has been used for years. Suddenly, it's broken. It last successfully generated in late April. Any idea?

Nevermind. There was an issue that actually has nothing to do with Techy. There was 17mb worth of base64 encoded media on a page, so Techy was taking nightmarishly long to process that file. Meh, co-workers — am I right?
CLOSED


sqlite3 and -PIC

I'm linking sqlite3 into an so on Linux and can't seem to get the config to work correctly.  I'm probably doing this wrong but the following basic pattern worked for other libraries so I'm at a bit of a loss:
hunter_config (sqlite3 VERSION 3.24.0-p0 CMAKE_ARGS CMAKE_POSITION_INDEPENDENT_CODE=TRUE)
This generates the following:
[hunter] SQLITE3_ROOT: C:/.hunter/_Base/acbf4b9/20c3b90/1810335/Install (ver.: 3.24.0-p0)
[hunter ** INTERNAL **] Unknown error
code: 3
message: "URL using bad/illegal format or missing URL"
[hunter ** INTERNAL **] [Directory:C:/.hunter/_Base/Download/Hunter/0.23.33/acbf4b9/Unpacked/cmake/projects/sqlite3]
Suggestions would be welcome, I'm not much of a Linux build person and I find the whole -PIC thing a serious PITA..  :)

I'm linking sqlite3 into an so on Linux

[hunter] SQLITE3_ROOT: C:/.hunter/_Base/acbf4b9/20c3b90/1810335/Install (ver.: 3.24.0-p0)

Looks like a Windows path is used, are you sure about Linux?

hunter_config (sqlite3 VERSION 3.24.0-p0 CMAKE_ARGS CMAKE_POSITION_INDEPENDENT_CODE=TRUE)

See https://docs.hunter.sh/en/latest/overview/customization/toolchain-id.html#simple-toolchains

message: "URL using bad/illegal format or missing URL"

Works fine for me, please provide minimal example to reproduce the issue. Basically you should follow this instructions while reporting bugs: https://docs.hunter.sh/en/latest/contributing.html#reporting-bugs

Yup, I was testing on Windows after seeing the error in my continuous integration server.  It didn't seem to matter which build I tried, adding the config with the pic flag caused all three targets to fail.  I was hoping this was something quick and I had misunderstood the usage of hunter_config, now that that does not seem to be the problem, I'll build up a quick testbed I can post or figure out what I'm doing incorrectly in other areas.

Hmph, not sure about this yet but the problem seems to be an order issue.  If I use hunter_add_package for any of my repos 'before' the addition of sqlite3, the problem occurs.  If I simply move the sqlite3 up above those internal packages it seems to work.  I.e.
fails:
hunter_add_package (mystuff)  find_package (mystuff CONFIG REQUIRED)
hunter_add_package (sqlite3) find_package (sqlite3 CONFIG REQUIRED)
works:
hunter_add_package (sqlite3) find_package (sqlite3 CONFIG REQUIRED)
hunter_add_package (mystuff)  find_package (mystuff CONFIG REQUIRED)
I will attempt to figure this out in more detail a bit later, I have to fix up some other items to be able to verify this in more detail.


Have to install MongoDB, Bundler on Cloud9

Currently the instructions for working on this in Cloud9 seem to be out of date. I had to install another version of Ruby, then the Bundler gem, then install Mongo in the Cloud9 workspace.

Thanks a ton for documenting this! Do you remember what commands you ran /
want to fire up a pull request with suggested Readme changes?
On Fri, Jul 22, 2016, 10:01 AM Benjamin Crane<EMAIL_ADDRESS>wrote:

Currently the instructions for working on this in Cloud9 seem to be out of
date. I had to install another version of Ruby, then the Bundler gem, then
install Mongo in the Cloud9 workspace.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/colinxfleming/dcaf_case_management/issues/534, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADsA9FQsTsLpftdAhBxoy1RxNgLbFyWhks5qYM0ngaJpZM4JSyUM
.

I can try. I would be more confident but I wasn't able to get MongoDB to work on Cloud9 so first I need to figure out what went wrong with that.


Updated XAML Island control docs

Docs Build status updates of commit 3f690eb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

.openpublishing.publish.config.json
:x:Error

Details

Line 117: [Error] Restore nuget package W:\tstw-s\.optemp\dependentPackages\Microsoft.DocAsCode.ECMA2Yaml\packages.config in folder:W:\tstw-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in http://SiteHelp and include the build report and the following error message for our team to troubleshoot:  Errors in packages.config projects     Unable to find version '1.0.558' of package 'Microsoft.DocAsCode.ECMA2Yaml'.       D:\Windows\system32\config\systemprofile\.nuget\packages\: Package 'Microsoft.DocAsCode.ECMA2Yaml.1.0.558' is not found on source 'D:\Windows\system32\config\systemprofile\.nuget\packages\'.       https://www.myget.org/F/op/api/v2: Package 'Microsoft.DocAsCode.ECMA2Yaml.1.0.558' is not found on source 'https://www.myget.org/F/op/api/v2'.

.openpublishing.publish.config.json

Line 290: [Error] Restore of dependent packages failed. Please check your .openpublishing.publish.config.json?on the configuration of the dependent packages or ask for help?in Docs Support teams channel. Please also include the following error code for our team to troubleshoot: 1

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 3f690eb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

.openpublishing.publish.config.json
:x:Error

Details

Line 117: [Error] Restore nuget package W:\2fj5-s\.optemp\dependentPackages\Microsoft.DocAsCode.ECMA2Yaml\packages.config in folder:W:\2fj5-s\.optemp\packages failed, possibly due to transient errors from nuget servers. Please retry building your content. If the issue still happens, open a ticket in http://SiteHelp and include the build report and the following error message for our team to troubleshoot:  Errors in packages.config projects     Unable to find version '1.0.558' of package 'Microsoft.DocAsCode.ECMA2Yaml'.       D:\Windows\system32\config\systemprofile\.nuget\packages\: Package 'Microsoft.DocAsCode.ECMA2Yaml.1.0.558' is not found on source 'D:\Windows\system32\config\systemprofile\.nuget\packages\'.       https://www.myget.org/F/op/api/v2: Package 'Microsoft.DocAsCode.ECMA2Yaml.1.0.558' is not found on source 'https://www.myget.org/F/op/api/v2'.

.openpublishing.publish.config.json

Line 290: [Error] Restore of dependent packages failed. Please check your .openpublishing.publish.config.json?on the configuration of the dependent packages or ask for help?in Docs Support teams channel. Please also include the following error code for our team to troubleshoot: 1

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 3f690eb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/controls/wpf-winforms/InkCanvas.md
:white_check_mark:Succeeded
View

docs/controls/wpf-winforms/InkToolbar.md
:white_check_mark:Succeeded
View

docs/controls/wpf-winforms/MapControl.md
:white_check_mark:Succeeded
View

docs/controls/wpf-winforms/MediaPlayerElement.md
:white_check_mark:Succeeded
View

docs/controls/wpf-winforms/WindowsXamlHost.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


EDU-363 Remove service to service dependencies involving storage

Closes https://educandu.atlassian.net/browse/EDU-363

This is so much better now, I really like it!


[MAUI] ViewSwitcher and TabHostView XAML order is relevant

Platform:

OS: net7.0-android33.0
Device: AndroidEmulator
Sdk vervion: Android SDK 30
MAUI: maui-android 7.0.86/7.0.100  VS 17.6.33829.357

Describe the bug
It seems there is a bug regarding the ViewSwitcher / TabHostView order within the XAML page.
Scenario: I have a MainPage which contains a Bottom Tab bar which contains a couple tabs (Bottom 1, Bottom 2, ...) of type BottomTabItem. In Bottom 3 I have a Top Tab Bar containing a couple tabs (Tab 1, Tab 2, ...) of type UnderlinedTabItem or MaterialUnderlinedTabItem. The XAML code needs to define the ViewSwitcher before the TabHostView is defined or else the application "breaks" in weird ways. Tab 1 would use up UI space (seen by the background color) however the content is not displayed. Tab 2 cannot be properly switched to - doing so does not use / render tab space below the tab bar. As soon as Tab 2 has been "navigated to" other parts of the application do not work properly (can't exactly tell what/how, might be related to Async/Await).
<!-- Working -->
<Grid ColumnSpacing="0" RowSpacing="0">
    <Grid.RowDefinitions>
        <RowDefinition Height="50" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>

    <tabs:ViewSwitcher x:Name="Switcher" Grid.Row="1" Margin="0" Animate="True" SelectedIndex="{Binding SelectedViewModelIndex, Mode=TwoWay}">
        <tabs:DelayedView x:TypeArguments="views:MyTab" BindingContext="{Binding MyTabViewModel}" AccentColor="{StaticResource AccentColor}" Animate="False" UseActivityIndicator="False" BackgroundColor="PaleVioletRed" />
        <tabs:DelayedView x:TypeArguments="views:MyTab" BindingContext="{Binding MyTabViewModel}" AccentColor="{StaticResource AccentColor}" Animate="False" UseActivityIndicator="False" BackgroundColor="LightGoldenrodYellow" />
    </tabs:ViewSwitcher>

    <tabs:TabHostView x:Name="TabHost" Grid.Row="0" SelectedIndex="{Binding SelectedViewModelIndex}">
        <tabs:TabHostView.Tabs>
            <tabs:MaterialUnderlinedTabItem Style="{StaticResource TopUnderlineTabStyle}" Label="Tab 1" />
            <tabs:MaterialUnderlinedTabItem Style="{StaticResource TopUnderlineTabStyle}" Label="Tab 2" />
        </tabs:TabHostView.Tabs>
    </tabs:TabHostView>
</Grid>

<!-- Not working -->
<Grid ColumnSpacing="0" RowSpacing="0">
    <Grid.RowDefinitions>
        <RowDefinition Height="50" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>

    <tabs:TabHostView x:Name="TabHost" Grid.Row="0" SelectedIndex="{Binding SelectedViewModelIndex}">
        <tabs:TabHostView.Tabs>
            <tabs:MaterialUnderlinedTabItem Style="{StaticResource TopUnderlineTabStyle}" Label="Tab 1" />
            <tabs:MaterialUnderlinedTabItem Style="{StaticResource TopUnderlineTabStyle}" Label="Tab 2" />
        </tabs:TabHostView.Tabs>
    </tabs:TabHostView>

    <tabs:ViewSwitcher x:Name="Switcher" Grid.Row="1" Margin="0" Animate="True" SelectedIndex="{Binding SelectedViewModelIndex, Mode=TwoWay}">
        <tabs:DelayedView x:TypeArguments="views:MyTab" BindingContext="{Binding MyTabViewModel}" AccentColor="{StaticResource AccentColor}" Animate="False" UseActivityIndicator="False" BackgroundColor="PaleVioletRed" />
        <tabs:DelayedView x:TypeArguments="views:MyTab" BindingContext="{Binding MyTabViewModel}" AccentColor="{StaticResource AccentColor}" Animate="False" UseActivityIndicator="False" BackgroundColor="LightGoldenrodYellow" />
    </tabs:ViewSwitcher>
</Grid>

Please delay the inspection. I just realized the Working code is NOT working (so much for simplifying it for the report). I have to investigate further. The xaml order is indeed relevant (as described) however it is not the only reason for the problem.

I have to withdraw the issue.  However the error appears randomly. It happens most of the time and when it stops happening it works for a couple of app launches as long as I don't seem to change anything.
I might try within the next couple of weeks and see if I can figure this out.


Support for mixed ordered/unordered lists

It seems when the outliner plugin is activated, I cannot enter structures like this:
- unordered item
- ordered sublist:
  1. ordered item
  2. ordered item
  3. ordered item
- unordered item

or
1. ordered item
2. unordered sublist:
  - unordered item
  - unordered item
  - unordered item
3. ordered item

When I want to create the differently styled sublist, the plugin does not let me remove the bullet point and replace it with a number or vice versa.
Is this expected? Are all sublists supposed to have the same style (ordered/unordered)? Or am I missing something?

Sorry, the bug label was added automatically. Currently not sure if this is a bug or a feature :)

@Cito Thank you for your feedback.
The plugin should work properly with mixed lists.
https://user-images.githubusercontent.com/205823/204483451-b3cadc17-2972-4d25-a911-0ad1f5106b2f.mov
If it doesn't, please upload the affected file.

Hi @vslinko - that's good to hear. In fact I can move items in mixed lists. My question was more about how I can enter sublists. Since when you create a new sublist with Enter+Tab, then a sublist of the same type as the parent list is created automatically, and if you try to remove the bullet point or the number of the sublist with Backspace, then the whole line is removed and the cursor is in the parent list again.
But I think I found how you can do it now: It is possible to select the bullet point (or number) together with the following space, then you can enter a number (or bullet point) followed by a space to change the type of the sublist.
Note that this is different from the behavior without the plugin, were you can remove the bullet point simply by hitting Backspace.
Another way of changing the list style is to use the "toggle numbered/bulleted list" command which I also discovered only now. Maybe it would be good to have a "toggle list style" command that would toggle between numbered and bulleted (and maybe normal in a three-state toggle). Then I would only need one keyboard shortcut for changing the list style instead of two.
Another thing that makes it difficult to work with mixed lists is that when you enter a sublist and then press unindent, then the bullet point of the item is not adapted to the style of the parent list, it stays the same style as the sublist. But that's also the case without the plugin. Again, the three-way-toggle mentioned above could help with that.

Hi @Cito

Maybe it would be good to have a "toggle list style" command that would toggle between numbered and bulleted (and maybe normal in a three-state toggle). Then I would only need one keyboard shortcut for changing the list style instead of two.

You can use another plugin that have such shortcut  https://github.com/argenos/hotkeysplus-obsidian

Another thing that makes it difficult to work with mixed lists is that when you enter a sublist and then press unindent, then the bullet point of the item is not adapted to the style of the parent list, it stays the same style as the sublist. But that's also the case without the plugin. Again, the three-way-toggle mentioned above could help with that.

That's interesting. Could you please create a feature request about unindenting different list types. https://github.com/vslinko/obsidian-outliner/discussions/categories/ideas

You can use another plugin that has such shortcut.

Thanks, indeed, it provides exactly that 3-way-toggle for list styles. There seems to be a plugin for everything. Which is great except that managing that flea circus of plugins for multiple vaults can be a pain.

Could you please create a feature request about unindenting different list types

Will do so. Thanks for providing this useful plugin and your quick replies!


2wikimultihopqa Raw Data

Hi Harsh, the download/raw_data.sh script does not download (or extract?) the raw data of 2wikimultihopqa correctly, as I found an empty folder in raw_data/2wikimultihopqa. Could you please update the script? Thanks!

Thanks for reporting! It's fixed now. For some reason, the exact wget command worked when I ran it from the terminal, but not when I ran it from the bash script. Removing the file_subpath did the trick. It should work now.


YARN-7969 Fix confusing log messages that do not match with the method name

346

 Quality gate: Failed
8 Issues

 4 Vulnerabilities
 4 Code issues

Details

 Quality gate: Failed
8 Issues

 4 Vulnerabilities
 4 Code issues

Details


md-card: passing a handlebars expression inside title hash

Hi,
I'm trying to implement the {{md-card}} component and I would like to understand the degree of customization in it. In particular regarding the parameters one could pass to the options provided.
For example, in the titleoption it's possible to insert an handlebars expression? I'm encountering problems doing it, here the code:
{{#md-card title="{{person.name}}" }}
  {{#md-card-content}}
      Just a test
  {{/md-card-content}}
  {{#md-card-action}}
    {{#md-badge}}{{person.tag_name}}{{/md-badge}}
  {{/md-card-action}}
{{/md-card}}

Any suggestion would be appreciated.

Hi, Have you tried omitting the quotes and handlebars?
{{#md-card title=person.name}}

You are welcome to reopen if you have any further questions.


uv pip compile --no-build won't build when using dynamic metadata for dependencies in pyproject.toml

I am trying to use the secure installs mechanism of pip, but encounters a problem when I specify the dependencies as dynamic metadata inside my pyproject.toml file:
[build-system]
requires = ["setuptools >= 65.5.1"]
build-backend = "setuptools.build_meta"

[project]
name = "my-project"
version = "2024.07.11"
requires-python = ">= 3.10"
dynamic = ["dependencies", "optional-dependencies"]

[tool.setuptools.packages.find]
namespaces = false

[tool.setuptools.dynamic]
dependencies = { file = ["requirements/base.in"] }
optional-dependencies.dev = { file = ["requirements/dev.in"] }

[tool.uv]
native-tls = true

[tool.uv.pip]
emit-index-url = true
generate-hashes = true
no-build = true
no-deps = true
python-version = "3.10"
require-hashes = true
strict = true
universal = true
upgrade = true

The output:
> uv pip compile .\pyproject.toml --verbose --output-file=requirements.txt
DEBUG uv 0.2.23
DEBUG Starting Python discovery for Python 3.10
DEBUG Looking for exact match for request Python 3.10
DEBUG Searching for Python 3.10 in system path or `py` launcher
DEBUG Found cpython 3.12.4 at `[omitted]` (active virtual environment)
DEBUG Found cpython 3.12.4 at `[omitted]` (virtual environment)
DEBUG Found cpython 3.12.4 at `[omitted]` (search path)
DEBUG Looking for Python installation with any version
DEBUG Searching for Python interpreter in system path or `py` launcher
DEBUG Found cpython 3.12.4 at `[omitted]` (active virtual environment)
DEBUG Using Python 3.12.4 interpreter at .venv\Scripts\python.exe for builds
warning: The requested Python version 3.10 is not available; 3.12.4 will be used to build dependencies instead.
DEBUG Using request timeout of 30s
error: Building source distributions is disabled

The same configuration seems to work fine in pip-tools. I can work around this in uv if I specify dependencies and optional-dependencies statically; or by commenting out the no-build = true line, but then an unwanted my-project.egg-info directory gets created, which doesn't happen with the first workaround (my-project is in flat layout intended to be run as a script).
Is this intended behavior or a bug?

If you set no-build = true, we won't run the arbitrary Python code required to determine your project's dependencies, because such builds are explicitly disabled. So I think this is intended?

Dumb question: what is the "arbitrary Python code" required to determine my project's dependencies? Can I whitelist it using --no-binary? What I don't understand is why the same configuration works when the dependencies aren't set external to pyproject.toml? I could also run pip install --only-binary=:all: --use-pep517 -r .\requirements\base.in without problems, if the flags are supposed to mean the same thing.
Something is clearly wrong with Python's packaging story when like half of all PEPs revolve around it. But I digress. I still want to list my dependencies in a requirements file to save typing those " and ,, and because it is cleaner and more VCS-friendly. Anyways, if I understood the article section The problem with pinning Python packages correctly, specifying no-build = true is actually more susceptible to supply chain attacks than no-binary = true, so I might just not use it.

Yeah, you can actually do this:
[tool.uv.pip]
no-build = true
no-binary = ["my-project"]

To "override" the no-build setting, and allow that specific package.

Dumb question: what is the "arbitrary Python code" required to determine my project's dependencies?

We're a little stricter about --no-build. When metadata is "dynamic", the way it gets filled-in is that you have to create a virtual environment, install the package's build backend, and ask the backend to determine the dynamic values. We don't allow that to happen when --no-build is specified, since the intent there is that we won't run that "arbitrary" Python code that packages need to fill in the dynamic values.

IIRC, pip doesn't actually enforce --no-build and --no-binary for direct URL dependencies at all. For example, this works:
pip install --force-reinstall --only-binary :all: https://files.pythonhosted.org/packages/41/e1/d104c83026f8d35dfd2c261df7d64738341067526406b40190bc063e829a/flask-3.0.3.tar.gz

See https://github.com/astral-sh/uv/blob/main/PIP_COMPATIBILITY.md#--only-binary-enforcement for documentation on that.

Yeah, you can actually do this:
[tool.uv.pip]
no-build = true
no-binary = ["my-project"]

To "override" the no-build setting, and allow that specific package.

Ahh, I was whitelisting the package myproject only, not the whole project. I've been spoiled by Java, so I didn't expect cross-version compilation in Python to be this... brittle.


What if I have a distance matrix (Gram matrix)?

Hello,
It would be nice if you can work from that.
I.e. what I want to map are not molecules, but I have the full distance matrix
for the dataset.
Regards,
F.

I.e. we can probably skip the kNN pass.

Your request isn't very clear. Please elaborate with more details and re-open.

It would be nice if we can use this package using a distance matrix as input.
I.e. we have already calculated the all to all distances for the dataset at hand.

I am not allowed to reopen this issue though...


Notebook not working

Hi,
When I run the notebook often it fails to detect any images, and when it does it runs and displays 'interpolation complete' without saving any images or displays any of the logging from the output function.
m

Could you copy/paste in the values you're using for your settings? Also, where are your images?


[DESIGN] Selected color and checked icon

Design
Selected color:
We need to change the selected color design. The chosen color shouldn't have transparency.
Checked icon:
There are 2 types of checked icons. Shouldn't be just one? Different types we can see on checkbox and on selected color

Thanks! It's fixed


[Bug]: logging "err:" without any context

🔎 Search Terms
error logging
The problem
export const ddLogger = createLogger({
  level: 'info',
  exitOnError: false,
  format: format.json(),
  transports: [new transports.Http(httpTransportOptions)],
})

we utilize ddLogger.info and ddLogger.error.
We transport to our Datadog instance.
In Datadog we're receiving tons of logs that are just "err:".
Where could they be coming from?

What version of Winston presents the issue?
3.9.0
What version of Node are you using?
v16.18.1
If this worked in a previous version of Winston, which was it?
No response
Minimum Working Example
No response
Additional information
No response

I am seeing this as well in the latest version. I have a console.error in a catch block, and despite my code running successfully, the logs show an error log, with no content

Hmm, seems you can't just pass an error object to the error log method, it has to be a string :(

Any updates on this? I need JSON format because the simple format doesn't output objects properly.

If it’s an issue that the error object has to be a string, maybe make a pr that allows it to be an Error or a string?  That would probably be easy and backward compatible and not hurt performance materially

I really wish I had time to contribute to librariea like this. I should probably try and make the effort seeing how much I complain about things but sadly I'm too busy with programming for work that contributing simply isn't cost/time effective currently.
Being brutally honest, something like this is expect to work out of the box.

@paul-uz I am testing this now but am able to get an error message with a Json response. What block of code are you using to get this issue?