CML 0.7.5: Cannot read property 'map' of undefined
See original GitHub issueStarting today CI runs using gh actions iterative/setup-cml@v1
and cml-runner
are failing with
cml-runner \
--cloud aws \
--cloud-region eu-west-1 \
--cloud-type g4dn.xlarge \
--labels=$label \
--cloud-hdd-size 100 \
--single \
--no-reuse \
--cloud-aws-security-group cicd
{"level":"error","message":"Cannot read property 'map' of undefined","name":"YError","stack":"YError: Cannot read property 'map' of undefined\n at /usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:29913\n at j (/usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:4952)\n at /usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:29809\n at /usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:4753\n at Array.reduce (<anonymous>)\n at C (/usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:4551)\n at M.applyMiddlewareAndGetResult (/usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:8688)\n at M.runCommand (/usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:7206)\n at Jt.[runYargsParserAndExecuteCommands] (/usr/local/lib/node_modules/@dvcorg/cml/node_modules/yargs/build/index.cjs:1:55967)\n at Jt.parse (/usr/local/...
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top GitHub Comments
As I said, I have been using the very, very recently updated Docker Hub Image. I have tried it again, even removing the image locally and pulling it anew. I am (and was) using the latest version. Please compare the digest: 14bc2458143b0b for tag 0-dvc2-base1-gpu
Still get the same error.
I wanted to make sure, that “my” container is really using the bugfix. After all I am very aware the problem might be on my side. Gotta admit I got lost a bit. I saw that in the bugfix of issue #770 cml/package.json was updated from “0.7.5” to “0.7.6” - however the only cml/package.json I found in my container looked totally different and mentioned CML 0.7.5:
So I reckoned I am on the wrong track and tried querying NPM:
Then I tried installing 0.7.6 and ran into massive trouble - maybe I took wrong turn here. Or your build process failed unnoticed…?
I rebuilt the container and ran cml --version:
To me it feels like the bugfix hasn’t made it into the Docker Hub image.
Thanks for the quick fix 😄