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

Checker fails downloading latest standard name table #996

Closed
dnowacki-usgs opened this issue Mar 21, 2023 · 1 comment · Fixed by #997
Closed

Checker fails downloading latest standard name table #996

dnowacki-usgs opened this issue Mar 21, 2023 · 1 comment · Fixed by #997

Comments

@dnowacki-usgs
Copy link
Contributor

Version of compliance checker running:
IOOS compliance checker version 5.0.2

Describe the checker this affects:
CF

Attach a minimal CDL or NetCDF file which is able to reproduce the issue
N/A

To Reproduce:
Run compliance-checker -d latest

Expected result:
update standard name list

Actual result:

Traceback (most recent call last):
  File "/Users/dnowacki/miniconda3/bin/compliance-checker", line 10, in <module>
    sys.exit(main())
  File "/Users/dnowacki/miniconda3/bin/cchecker.py", line 269, in main
    download_cf_standard_name_table(args.download_standard_names)
  File "/Users/dnowacki/miniconda3/lib/python3.10/site-packages/compliance_checker/cf/util.py", line 434, in download_cf_standard_name_table
    tables_tree = lxml.html.parse("http://cfconventions.org/documents.html")
  File "/Users/dnowacki/miniconda3/lib/python3.10/site-packages/lxml/html/__init__.py", line 937, in parse
    return etree.parse(filename_or_url, parser, base_url=base_url, **kw)
  File "src/lxml/etree.pyx", line 3538, in lxml.etree.parse
  File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseDocument
  File "src/lxml/parser.pxi", line 1902, in lxml.etree._parseDocumentFromURL
  File "src/lxml/parser.pxi", line 1805, in lxml.etree._parseDocFromFile
  File "src/lxml/parser.pxi", line 1177, in lxml.etree._BaseParser._parseDocFromFile
  File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 652, in lxml.etree._raiseParseError
OSError: Error reading file 'http://cfconventions.org/documents.html': failed to load HTTP resource

Describe the issue below:
documents.html does not exist anymore. The list of standard names has been moved to vocabularies.html. I will submit a PR fixing this issue momentarily.

@MathewBiddle
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants