Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Descriptors cannot be created directly. #5758

Open
Sahil-pixel opened this issue Nov 28, 2024 · 2 comments
Open

TypeError: Descriptors cannot be created directly. #5758

Sahil-pixel opened this issue Nov 28, 2024 · 2 comments
Assignees
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues stale stat:awaiting response Waiting for user response type:support General questions

Comments

@Sahil-pixel
Copy link

Ubuntu 22.04
Python 3.10
media pipe 0.10.18
protobuf-4.25.3
crash after

import mediapipe as mp

TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
@Sahil-pixel Sahil-pixel added the type:others issues not falling in bug, perfromance, support, build and install or feature label Nov 28, 2024
@kuaashish kuaashish added type:support General questions os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues and removed type:others issues not falling in bug, perfromance, support, build and install or feature labels Nov 29, 2024
@kuaashish
Copy link
Collaborator

Hi @Sahil-pixel,

Please clarify the exact type of support you need. To expedite troubleshooting, please provide detailed error logs and a reproducible code example.

Thank you!!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Nov 29, 2024
Copy link

github-actions bot commented Dec 7, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:linux-non-arm Issues on linux distributions which run on x86-64 architecture. DOES NOT include ARM devices. platform:python MediaPipe Python issues stale stat:awaiting response Waiting for user response type:support General questions
Projects
None yet
Development

No branches or pull requests

2 participants