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

ParseFromString() expects bytes and not bytearray object #885

Open
joelkny97 opened this issue Nov 15, 2024 · 0 comments
Open

ParseFromString() expects bytes and not bytearray object #885

joelkny97 opened this issue Nov 15, 2024 · 0 comments

Comments

@joelkny97
Copy link

The Frame object from dataset_pb2.open_dataset in the tutorial.ipynb is unable to process the bytearray of the tutorial dataset frames downloaded for the tutorial purposes and throws an error saying that the ParseFromString method expects a bytes and not bytearray object. The error message is posted below -

ERROR -
6 frame = open_dataset.Frame()
----> 7 frame.ParseFromString(bytearray(data.numpy()))
8 break
9

TypeError: expected bytes, bytearray found

@joelkny97 joelkny97 changed the title ParseFromString() expects bytes and not bytesarray object ParseFromString() expects bytes and not bytearray object Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant