Comments (2)
yes with 2.7.0rc3 the exception is much better (only tested on macos this time):
>>> snappy.compress(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: argument 'data': failed to extract enum BytesType ('Buffer | File | pybuffer')
- variant RustyBuffer (Buffer): TypeError: failed to extract field BytesType::RustyBuffer.0, caused by TypeError: 'int' object cannot be converted to 'Buffer'
- variant RustyFile (File): TypeError: failed to extract field BytesType::RustyFile.0, caused by TypeError: 'int' object cannot be converted to 'File'
- variant PyBuffer (pybuffer): SystemError: <class 'TypeError'> returned a result with an exception set, caused by BufferError: Failed to get buffer, is it C contiguous, and shape is not null?
from cramjam.
Ah, that's not great.
Can you try 2.7.0rc3? That ought to be a better experience.
from cramjam.
Related Issues (20)
- Support for memoryview and PickleBuffer HOT 17
- Accept buffers with types other than u8
- blosc? HOT 5
- Publish Python 3.12 wheel? HOT 6
- Any plans to release pypy wheels for windows? HOT 2
- TypeError: 'Buffer' does not support the buffer interface HOT 4
- Python test test_variants_different_dtypes[brotli] sometimes times out HOT 4
- lzma / xz support? HOT 12
- Remove extra zstd-safe dep
- Please coordinate PyPI and crates.io releases if possible HOT 2
- Equality check on values for Buffer
- proc-macro2 1.0.56 doesn't work with versions of rust since July
- cramjam 2.8.1 release on conda? HOT 4
- Python: tests/test_variants.py::test_variants_different_dtypes randomly fail with `hypothesis.errors.FailedHealthCheck: Examples routinely exceeded the max allowable size`
- Support PyPy output of `bytes` and `memoryview` for de/compress_into functions HOT 9
- Feature request: add xxhash for use with LZ4 HOT 4
- Unused `Cargo.lock` files? HOT 2
- blosc2 experimental feedback/tracking issue
- Fix blosc2 compress_into with destination File
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cramjam.