Skip to content

cml: command not found #1324

Open
Open

Description

I am a new user.
When the ci cd pipeline runs
it throws the error as cml:command not found.

Requirement already satisfied: six>=1.5 in /usr/lib/python3.10/site-packages (from python-dateutil>=2.7->matplotlib->-r requirements.txt (line 3)) (1.16.0)
$ python train.py
0.852
$ cat metrics.txt >> report.md
$ echo '![](./plot.png "Confusion Matrix")' >> report.md
$ cml comment create report.md
bash: cml: command not found
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1

my ci cd pipeline as follows

train-and-report:
  image: iterativeai/cml:0-dvc2-base1
  script:
    - pip install -r requirements.txt
    - python train.py # generate plot.png
    # Create CML report
    - cat metrics.txt >> report.md
    - echo '![](./plot.png "Confusion Matrix")' >> report.md
    - cml comment create report.md
  tags:
    - runner-tester
   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions