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

cmt-config can't find components #37

Open
mdpiper opened this issue Oct 22, 2018 · 1 comment
Open

cmt-config can't find components #37

mdpiper opened this issue Oct 22, 2018 · 1 comment

Comments

@mdpiper
Copy link
Member

mdpiper commented Oct 22, 2018

The cmt-config program doesn't show output for installed components. For example:

$ cmt-config > wmt-config.yaml
✓ Hydrotrend

The Hydrotrend component is installed, but cmt-config doesn't show its info:

$ cat wmt-config.yaml
components: {}
host:
  environ:
    PATH: /home/csdms/anaconda3/envs/wmt-analyst/bin:/usr/bin:/bin
  hostname: siwenna.colorado.edu
  os_name: Linux
  os_release: 3.10.0-693.5.2.el7.x86_64
  os_version: '#1 SMP Fri Oct 20 20:32:50 UTC 2017'
  platform: x86_64
  prefix: /home/csdms/anaconda3/envs/wmt-analyst
  python_version: 3.6.6

@mdpiper
Copy link
Member Author

mdpiper commented Oct 22, 2018

@mcflugen I think your quick diagnosis is right. Here's line 43 of cmt_config.py:

module = importlib.import_module(".".join(["pymt", "components"]))

which is no longer how components are imported in PyMT.

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

No branches or pull requests

1 participant