cms-dev / cms-dev/cms

[cmsMake] TypeError: load() missing 1 required positional argument: 'Loader'

Open
#1,546 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

Description:
cmsMake fails with TypeError: load() missing 1 required positional argument: 'Loader'.

I have asked on the Telegram support channel and I have been instructed to use task-maker-rust instead of cmsMake. My understanding is that cmsMake should be deprecated.

Steps to reproduce:

  1. run cmsMake

Expected: cmsMake runs successfully.

Actual:

$ cmsMake -a
2025-08-30 01:18:07,544 - INFO [<unknown>] Using configuration file /usr/local/etc/cms.conf.
/home/cms/cms_venv/lib/python3.12/site-packages/cms/plugin.py:24: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
Traceback (most recent call last):
  File "/home/cms/cms_venv/bin/cmsMake", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/cms/cms_venv/lib/python3.12/site-packages/cmstaskenv/cmsMake.py", line 727, in main
    yaml_conf = parse_task_yaml(base_dir)
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cms/cms_venv/lib/python3.12/site-packages/cmstaskenv/cmsMake.py", line 124, in parse_task_yaml
    conf = yaml.load(yaml_file)
           ^^^^^^^^^^^^^^^^^^^^
TypeError: load() missing 1 required positional argument: 'Loader'
Logs

N/A

System Information

CMS version: v1.5.1
How was CMS installed: virtualenv, Python 3.13.7
Postgres version: N/A
Distribution and version: Ubuntu 24.04.3 LTS (noble)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting cmstaskenv/cmsMake.py, especially parse_task_yaml at the reported line where yaml.load is called. Reproduce the cmsMake command with the stated environment, then determine whether the intended outcome is to repair cmsMake or deprecate it in favor of task-maker-rust. Done means the chosen behavior is documented and the command no longer produces the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.