Skip to content

cmt-config can't find components #37

Open

Description

@mdpiper

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

Activity

  1. mdpiper commented on Oct 22, 2018

    @mdpiper
    MemberAuthor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions