{"id":28762203,"url":"https://github.com/cansik/mediapipe-numpy2","last_synced_at":"2026-01-16T16:35:31.791Z","repository":{"id":299300658,"uuid":"1000204366","full_name":"cansik/mediapipe-numpy2","owner":"cansik","description":"A patching tool to remove the numpy\u003c2 constraint from official mediapipe wheels.","archived":false,"fork":false,"pushed_at":"2026-01-15T14:12:18.000Z","size":43,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-15T15:47:12.916Z","etag":null,"topics":["mediapipe","numpy","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cansik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-11T12:25:21.000Z","updated_at":"2026-01-15T14:12:23.000Z","dependencies_parsed_at":"2025-06-15T21:38:43.065Z","dependency_job_id":"b7a36f2b-14bc-4aa5-afd2-89e3d4dff2d7","html_url":"https://github.com/cansik/mediapipe-numpy2","commit_stats":null,"previous_names":["cansik/mediapipe-numpy2"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/cansik/mediapipe-numpy2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmediapipe-numpy2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmediapipe-numpy2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmediapipe-numpy2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmediapipe-numpy2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cansik","download_url":"https://codeload.github.com/cansik/mediapipe-numpy2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fmediapipe-numpy2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mediapipe","numpy","python"],"created_at":"2025-06-17T08:07:27.680Z","updated_at":"2026-01-16T16:35:31.754Z","avatar_url":"https://github.com/cansik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mediapipe-numpy2 \n[![Patch Wheels](https://github.com/cansik/mediapipe-numpy2/actions/workflows/patch.yaml/badge.svg)](https://github.com/cansik/mediapipe-numpy2/actions/workflows/patch.yaml)\n[![Test](https://github.com/cansik/mediapipe-numpy2/actions/workflows/test-mediapipe-numpy2.yaml/badge.svg)](https://github.com/cansik/mediapipe-numpy2/actions/workflows/test-mediapipe-numpy2.yaml)\n[![PyPI](https://img.shields.io/pypi/v/mediapipe-numpy2)](https://pypi.org/project/mediapipe-numpy2/)\n\nA patching tool to remove the `numpy\u003c2` constraint from\nofficial [mediapipe](https://github.com/google-ai-edge/mediapipe) wheels.\n\n### Why does this repository exist?\n\nThe official mediapipe Python wheels published on PyPI include a strict dependency:\n\n```\nRequires-Dist: numpy\u003c2\n```\n\nThis prevents installation or use of mediapipe with `numpy` version 2 or higher.  This constraint is problematic for users and downstream projects who want to use the latest `numpy` (see [mediapipe issue #5612](https://github.com/google-ai-edge/mediapipe/issues/5612)). As of now, a lot of mediapipe seems to work with `numpy` 2.x, but the PyPI wheels block installation.\n\n### What does this repository do?\n\nThis repository provides a script (`patch_wheels.sh`) that:\n\n- Downloads all official mediapipe wheels for a given version from PyPI.\n- Removes the `numpy\u003c2` requirement from the wheel metadata.\n- Renames the package to `mediapipe-numpy2` to avoid conflicts with the official package.\n- Updates the wheel metadata to reference this repository.\n- Rebuilds and outputs patched wheels that can be installed alongside `numpy\u003e=2`.\n\n### Usage\n\nTo use `mediapipe` with `numpy\u003e=2`, install the pre-patched wheels from the releases as a drop-in replacement:\n\n```bash\npip install mediapipe-numpy2\n```\n\nThen import `mediapipe` as you normally would:\n\n```python\nimport mediapipe as mp\n```\n\n### Patch Mediapipe\n\n1. **Clone this repository:**\n   ```sh\n   git clone https://github.com/cansik/mediapipe-numpy2.git\n   cd mediapipe-numpy2\n   ```\n\n2. **Run the patching script:**\n   ```sh\n   ./patch_wheels.sh\n   ```\n   By default, this will:\n    - Download the latest mediapipe wheels into `./downloaded_wheels`\n    - Output patched wheels into `./patched_wheels`\n\n   You can override the mediapipe version and directories using environment variables:\n   ```sh\n   VERSION=0.10.21 DOWNLOAD_DIR=./my_dl OUTPUT_DIR=./my_patched ./patch_wheels.sh\n   ```\n\n3. **Install a patched wheel:**\n   ```sh\n   pip install ./patched_wheels/mediapipe_numpy2-*.whl\n   ```\n\n### Notes\n\n- The patched wheels are named `mediapipe-numpy2` to avoid clashing with the official package.\n- This repository is not affiliated with the official mediapipe project.\n- Use at your own risk; always test compatibility with your workflow.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fmediapipe-numpy2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcansik%2Fmediapipe-numpy2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fmediapipe-numpy2/lists"}