Skip to content

Example task do not build (Exception: Couldn't find generator and others) #14

Description

@CristianCantoro

Description: Trying to build the tasks with CMS uninstalled is not working. Are these examples supposed to build?

Steps to reproduce:

  1. clone the repository: git clone https://github.com/cms-dev/con_test.git
  2. make a task: cd con_test/batch && cmsMake -a

Expected:
The task should have been build successfully.

Actual:
It didn't (see the errors below).

Logs

$ cmsMake -a                         
2023-07-09 21:05:05,648 - WARNING [<unknown>] No configuration file found: falling back to default values.
Traceback (most recent call last):
  File "venv/cms/bin/cmsMake", line 11, in <module>
    load_entry_point('cms==1.4rc1', 'console_scripts', 'cmsMake')()
  File "venv/cms/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmstaskenv/cmsMake.py", line 730, in main
    actions = build_action_list(base_dir, task_type, yaml_conf)
  File "venv/cms/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmstaskenv/cmsMake.py", line 562, in build_action_list
    gen_actions, in_out_files = build_gen_list(base_dir, task_type, yaml_conf)
  File "venv/cms/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmstaskenv/cmsMake.py", line 397, in build_gen_list
    raise Exception("Couldn't find generator")
Exception: Couldn't find generator

I have tried adding a file called generator.cpp, but I was getting the same error. The error disappeared if I renamed the file generatore.cpp (Italian name).

At that point, though, another error popped up, which was the lack of validator. Fixing also that lead to this error:

$ cmsMake -a      
2023-07-09 21:34:41,768 - WARNING [<unknown>] No configuration file found: falling back to default values.
Traceback (most recent call last):
  File "venv/cms/bin/cmsMake", line 11, in <module>
    load_entry_point('cms==1.4rc1', 'console_scripts', 'cmsMake')()
  File "venv/cms/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmstaskenv/cmsMake.py", line 731, in main
    exec_tree, generated_list = build_execution_tree(actions)
  File "venv/cms/lib/python3.6/site-packages/cms-1.4rc1-py3.6.egg/cmstaskenv/cmsMake.py", line 614, in build_execution_tree
    raise Exception("Target %s not unique" % (exe))
Exception: Target sol/solution not unique

disappeared

System Information

CMS version: v1.4.rc1 (latest stable)
Was CMS installed: no
Using a virtualenv: yes
Postgres version: N/A
Distribution and version: N/A

Activity

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