Welcome to the Linux Foundation Forum!

5.2: Explore API Calls step 6 did not work?

Here is the result:
$ python3 -m json.tool v1/serverresources.json
usage: python -m json.tool [-h] [--sort-keys] [infile] [outfile]
python -m json.tool: error: argument infile: can't open 'v1/serverresources.json': [Errno 2] No such file or directory: 'v1/serverresources.json'

Answers

  • serewicz
    serewicz Posts: 1,000

    Hello,

    Did you follow the prior steps that would put you in the proper directory? Typically if it says no such file, either the file is missing or you are in the wrong directory as the command uses a relative path.

    If you get this error again, please include the output of these two commands: pwd and ls -l

    Regards,

  • zhangwe
    zhangwe Posts: 45

    Thank you.

  • serewicz
    serewicz Posts: 1,000

    Glad it helped. :)

Categories

Upcoming Training