Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Issues
  • #623
Closed
Open
Issue created Jun 18, 2016 by Administrator@rootContributor

csvlook 1.0 unable to read from stdin, raises error "underlying stream is not seekable"

Created by: dannguyen

In csvkit 0.9.1, you could do this:

$ csvcut -c 1,2,3 examples/iris.csv | csvlook
|---------------+-------------+---------------|
|  sepal_length | sepal_width | petal_length  |
|---------------+-------------+---------------|
|  5.1          | 3.5         | 1.4           |
|  4.9          | 3.0         | 1.4           |
|  4.7          | 3.2         | 1.3           |
|  4.6          | 3.1         | 1.5           |

In 1.0, this error is raised: underlying stream is not seekable. This seems like it would be expected behavior for csvsort, but doesn't seem necessary for csvlook:

https://github.com/wireservice/csvkit/blob/master/csvkit/utilities/csvsort.py#L31

(actually, is it necessary for csvsort? Doesn't csvstat essentially require the entire input to be read before it can do its aggregation? I guess that can be saved for another issue/feature request)

Assignee
Assign to
Time tracking