Skip to content

1.9.0 fseek for zstandard file results in io.UnsupportedOperation: underlying stream is not seekable #153

Description

@gcflymoto

Can be easily reproduced

/nfs/site/home/<user>/pyenv3.11.1/bin/python3
Python 3.11.1 (main, Dec  6 2023, 09:00:14) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xopen, os
>>> f = xopen.xopen("file.zst")
>>> f.seek(0, os.SEEK_END)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nfs/site/home/<user>/pyenv3.11.1/lib/python3.11/site-packages/xopen/__init__.py", line 476, in seek
    return self._file.seek(offset, whence)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
io.UnsupportedOperation: underlying stream is not seekable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions