Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CristianCantoro opened this issue Jul 9, 2023 · 1 comment

Comments

@CristianCantoro
Copy link

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

@CristianCantoro
Copy link
Author

To clarify, if I follow the instruction in the README.md:

  1. import the users with: cmsImportUser --all -L italy_yaml .
  2. Import the contest and the tasks with: cmsImportContest -i -L italy_yaml .

Everything works.

The problem is that I am trying to create a new communication task, and I do not know how I am supposed to test and build this type of task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant