-
Notifications
You must be signed in to change notification settings - Fork 15
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
1.9.0 fseek for zstandard file results in io.UnsupportedOperation: underlying stream is not seekable #153
Comments
Xopen never guarantees seekability. Xopen streams the zstd compressed data to the You can utilize threads=0 and make sure the If you are always opening zstandard files, it is almost always a better option to use the zstandard module itself. Unless you want the extra speed that xopen offers by piping it through the zstandard application, but in that case it is guaranteed not to be seekable. (There may be some exceptions on Windows IIRC). |
Hi. I tried it with Zstandard package is installed but it has the same error. Is there any way to trace whether zstandard package was used? |
You can check the
It is possible to use Maybe we could try to more consistently provide a forward-only seek function. I’ve previously not thought that this is a good idea because Is seeking forwards what you need? |
Strangely I see this
It's actually grabbing the end N number of lines like tail, but I can make it work with forward only seek |
Not sure what is going on, but it appears you need to use
|
Thank you for the workaround |
Let me re-open this until we’ve decided whether this is something we should fix. |
Can be easily reproduced
The text was updated successfully, but these errors were encountered: