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: 'Buffer' does not support the buffer interface #116

Closed
scottbelden opened this issue Oct 20, 2023 · 4 comments
Closed

TypeError: 'Buffer' does not support the buffer interface #116

scottbelden opened this issue Oct 20, 2023 · 4 comments

Comments

@scottbelden
Copy link

When using pypy 3.8 I get the error mentioned in the title. This doesn't seem to happen on pypy 3.9. Do you know what might be going on?

To reproduce, save the following contents as compress.py:

from io import BytesIO
from cramjam import snappy

compressed = snappy.compress_raw(b"123")
BytesIO(compressed)

And then you can use the following Dockerfile:

FROM pypy:3.8-bullseye

RUN pip install cramjam
COPY compress.py /

RUN pypy compress.py

Note: Change the dockerfile to use pypy:3.9-bullseye to see that it works in 3.9

@milesgranger
Copy link
Owner

Thanks for the reproducer!
I'll try to have a look this weekend.

@milesgranger
Copy link
Owner

Regarding this and the related issue, not ignoring.. just busy. 😅

@scottbelden
Copy link
Author

No worries. I completely understand. And I worked around it by just using 3.9.

@milesgranger
Copy link
Owner

Came to my attention that pypy3.8 isn't developed any longer and now w/ #144 in, it tests pypy3.9 and 3.10 so this ought to be fixed now in v2.8.2 for the supported pypy versions.

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

2 participants