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'

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

  • 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,

  • Posts: 45

    Thank you.

  • Posts: 1,000

    Glad it helped. :)

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training