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

Data Reader #5

Closed
zyhbili opened this issue Jul 28, 2022 · 1 comment
Closed

Data Reader #5

zyhbili opened this issue Jul 28, 2022 · 1 comment

Comments

@zyhbili
Copy link

zyhbili commented Jul 28, 2022

I encounter some bugs when read the preprocessed data.
Traceback (most recent call last):
File "test.py", line 14, in
value = pa.deserialize(buf)
File "pyarrow/serialization.pxi", line 550, in pyarrow.lib.deserialize
File "pyarrow/serialization.pxi", line 555, in pyarrow.lib._deserialize
File "pyarrow/serialization.pxi", line 461, in pyarrow.lib._read_serialized
File "pyarrow/error.pxi", line 115, in pyarrow.lib.check_status
OSError: Expected IPC message of type sparse tensor but got tensor

Here is my code. My pyarrow==8.0.0. Could you provide the data reader or some instructions?

txn = env.begin()  
key = '%010d'%0  
buf=txn.get(key.encode('ascii'))  
value = pyarrow.deserialize(buf)
@alvinliu0
Copy link
Owner

Hi :)

Sorry for the late reply, the version of pyarrow we used is 0.14.1. I test and find that the version 8.0.0 is incompatible with this environment. You could install the package via pip install pyarrow==0.14.1

Hope this could fix your problem!

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