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

CLI: jsonl FileNotFoundError in ocdskit detect_format #146

Open
yolile opened this issue Jun 17, 2021 · 1 comment
Open

CLI: jsonl FileNotFoundError in ocdskit detect_format #146

yolile opened this issue Jun 17, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@yolile
Copy link
Member

yolile commented Jun 17, 2021

command: spoonbill tests/data/ocds-sample-data.jsonl

error:

  File "/spoonbill/cli.py", line 230, in cli
    for read, number in analyzer.analyze_file(filename, with_preview=True):
  File "/spoonbill/__init__.py", line 63, in analyze_file
    ) = detect_format(path=filename, reader=get_reader(path))
  File "/ocdskit/util.py", line 203, in detect_format
    with reader(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'ocds-sample-data.jsonl'
@yolile yolile added the bug Something isn't working label Jun 17, 2021
@yolile
Copy link
Member Author

yolile commented Jun 17, 2021

It seems that the command only works when the file is in the same directory as where the command is being run

@jpmckinney jpmckinney added this to the Priority milestone Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants