compliance-checker: Errors loading checkers

Hey Folks - I installed the most recent compliance checker from conda-forge:

conda install -c conda-forge compliance-checker

Then I tried to follow the implementation code suggested in the README file and got the following errors:

: from compliance_checker.runner import ComplianceChecker, CheckSuite

## Load all available checker classes
check_suite = CheckSuite()
check_suite.load_all_available_checkers()

Could not load acdd:1.1 = compliance_checker.acdd:ACDD1_1Check : [UT_OPEN_ARG] Failed to open UDUNITS-2 XML unit database : "No such file or directory"
Could not load acdd:1.3 = compliance_checker.acdd:ACDD1_3Check : cannot import name config
Could not load acdd = compliance_checker.acdd:ACDD1_1Check : cannot import name config
Could not load cf = compliance_checker.cf.cf:CFBaseCheck : cannot import name config

What am I missing?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 27 (16 by maintainers)

Most upvoted comments

Did this get resolved?

I did not have folder navigation.

@jbosch-noaa I finally got my hands on a Windows computer to test this.

All the messages you are seeing are b/c of a change in latest miniconda on Windows that echos everything miniconda is doing (like a debug mode). Not sure why Continuum enabled made that by default, but it does not hurt to leave it there.

BTW here is how the folder navigation looks like in the Jupyter notebook:

folder_navigation

The first red circle is the home button and the other three are folders and you can click to enter. Like we mention at SciPy you cannot go into folders that are “parent” to the folder where you started the jupyter notebook. You can only forward from there. The “home” icon will always bring you back to the folder where you started.

Hope that helps!

PS: I just realized that maybe you are expecting a GUI interface. I am not sure if JupyterLab will have that. (JupyterLab is still experimental and I have not tested it yet.)

http://jupyterlab-tutorial.readthedocs.io/en/latest/index.html

@ocefpaf - yes, that was everything. The error came right after I activated the environment. I then tried to run the compliance checker anyway and it seemed to work.

(I) C:\Users\jennifer.bosch>compliance-checker --test=acdd sal.nc
Running Compliance Checker on the dataset from: sal.nc


--------------------------------------------------------------------------------

                     The dataset scored 23 out of 66 points

                             during the acdd check

--------------------------------------------------------------------------------

                               Scoring Breakdown:



                                 High Priority

--------------------------------------------------------------------------------

    Name                            :Priority: Score
Conventions                             :3:     1/2
keywords                                :3:     0/1
summary                                 :3:     0/1
title                                   :3:     1/1
varattr                                 :3:    20/28


                                Medium Priority

--------------------------------------------------------------------------------

… blah blah blah