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

bernhard incompatible with protobuf 4.21.1 #35

Open
anoopjb opened this issue Jun 8, 2022 · 0 comments · May be fixed by #36
Open

bernhard incompatible with protobuf 4.21.1 #35

anoopjb opened this issue Jun 8, 2022 · 0 comments · May be fixed by #36

Comments

@anoopjb
Copy link

anoopjb commented Jun 8, 2022

Versions

  • Python 3.9.12
  • protobuf - 3.2.0
  • bernhard - 4.21.1

Steps to reproduce

  • Install lastest version of protobuf, pip install protobuf==4.21.1
  • Install bernhard, pip install bernhard
  • Run an inline command to import bernhard, python -c "import bernhard", throws the error,
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/bernhard/__init__.py", line 20, in <module>
    from . import pb
  File "/usr/local/lib/python3.9/site-packages/bernhard/pb.py", line 13, in <module>
    DESCRIPTOR = _descriptor.FileDescriptor(
  File "/usr/local/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 1028, in __new__
    return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: expected bytes, str found

Template copied from #29 😄

@anoopjb anoopjb linked a pull request Jun 8, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant