Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 20 09:22
    josalhor closed #1123
  • Nov 20 09:22
    josalhor commented #1123
  • Nov 20 08:49
    wil93 commented #1123
  • Nov 19 16:53
    codecov[bot] commented #1143
  • Nov 19 16:52
    codecov[bot] commented #1143
  • Nov 19 16:43
    stefano-maggiolo edited #1143
  • Nov 19 16:43
    wil93 opened #1143
  • Nov 11 18:20
    edomora97 edited #1142
  • Nov 11 17:54
    codecov[bot] commented #1142
  • Nov 11 17:52
    codecov[bot] commented #1142
  • Nov 11 17:43
    stefano-maggiolo edited #1142
  • Nov 11 17:42
    edomora97 opened #1142
  • Oct 30 13:18
    codecov[bot] commented #1141
  • Oct 30 13:16
    codecov[bot] commented #1141
  • Oct 30 13:04
    codecov[bot] commented #1141
  • Oct 30 13:04
    edomora97 synchronize #1141
  • Oct 30 08:54
    codecov[bot] commented #1141
  • Oct 30 08:52
    codecov[bot] commented #1141
  • Oct 30 08:42
    codecov[bot] commented #1141
  • Oct 30 08:42
    edomora97 synchronize #1141
Andrey Vihrov
@andreyv
yeah, well, I don't like leaving any open corner cases 😄
Stefano Maggiolo
@stefano-maggiolo
true, but you have to cut a line somewhere between what you want to support and what you drop
you'll always have corner cases when dealing with turing complete arbitrary inputs
(#notatheorem)
Andrey Vihrov
@andreyv
Anyway, this renaming of exactly one file does look a bit weird
Stefano Maggiolo
@stefano-maggiolo
I think it was done to allow to run the python code from the zip file
i vaguely remember that we looked for something like that but passed due to some issue - maybe only available for a high version of py3k?
anyway, if there's a better alternative I'm not opposing
Andrey Vihrov
@andreyv
Well, without requiring packages the "correct" solution is manually writing a __main__.py file which will import the first file
Which may or may not be overkill
Stefano Maggiolo
@stefano-maggiolo
(looking at the PR I don't see any comment relative to my vague recollection)
That won't work if your submission format is main.%l 😆
Andrey Vihrov
@andreyv
true 😄
Andrey Vihrov
@andreyv
Perhaps instead of renaming the first file can be symlinked.
Oh, but it is a zip archive
RezwanArefin01
@RezwanArefin01
Is there a way to see how many participants actually logged in a contest?
Stefano Maggiolo
@stefano-maggiolo
Might be, but using SQL
The participation table has a "first logging in time" used for usaco style contests
(where time starts from first log in)
I think we set it even if the contest isn't if that style
Robin Visser
@rvisser7
Hi there. I'm trying to evaluate a submission for an output-only task (with a custom checker). After submitting, the evaluation logs throw the following error:
2019-09-26 00:06:37,821 - ERROR [Evaluation,0 8 triggeredservice::run] Unexpected error when executing operation `evaluate on 5236 against dataset 181, testcase 24' (and 12 more operations).
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/io/triggeredservice.py", line 131, in run
    self.execute(to_execute)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/EvaluationService.py", line 140, in execute
    res = self.pool.acquire_worker(self._currently_executing)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/service/workerpool.py", line 214, in acquire_worker
    JobGroup.from_operations(operations, session).export_to_dict()
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 677, in from_operations
    jobs.append(Job.from_operation(operation, object_, dataset))
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 227, in from_operation
    job = EvaluationJob.from_submission(operation, object_, dataset)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/Job.py", line 518, in from_submission
    language = get_language(submission.language)
  File "/usr/local/lib/python3.6/dist-packages/cms-1.5.dev0-py3.6.egg/cms/grading/languagemanager.py", line 48, in get_language
    raise KeyError("Language `%s' not supported." % name)
KeyError: "Language `None' not supported."
Any idea what's happening? Language shouldn't be a factor for output-only tasks?
Stefano Maggiolo
@stefano-maggiolo
is it possible you have a submission format element with a %l?
I actually can't match your stack trace with the code on github
maybe you did some local changes?
Robin Visser
@rvisser7
Yeah, we did make some minor local changes. I'll have another look
Robin Visser
@rvisser7
Ok, nvm, we fixed it. Sorry for your trouble 😂
Ilya Bychkov
@il-bychkov
image.png

Hi, guys! Thank you very much for such a great tool CMS.
I am using it to check student's homeworks.

I have a small dumb question. I dont know why, but the dashbord says every service is down.
Although I am able to edit contests, submit and have results.
Web pages of admin service, contest service are up and running.

Stefano Maggiolo
@stefano-maggiolo
this might be because you're using python 3.5?
Andrey Vihrov
@andreyv
I have an idea to check admin password strength using libpwquality (it has python bindings). Does this sound interesting?
Stefano Maggiolo
@stefano-maggiolo
imho seems a relatively week usecase (who's using passwords that are not generated by the browser these days?)
*weak
martinmarinov150402
@martinmarinov150402
hello all
I wanna ask you about Failures during evaluation
I made checker
and It seems to work to two solutions
but on third it cant evaluate
what should I do
Stefano Maggiolo
@stefano-maggiolo
hey
try debugging outside of cms - first make sure that the checker does what you think it does
read the documentation about checkers to make sure that you are following the rules
Huseyn Hajiyev
@computerbox_gitlab
hi ! i want to turn on logging service,but i have this error. how i can fix it ?
Traceback (most recent call last):
File "/usr/local/bin/cmsLogService", line 4, in <module>
import('pkg_resources').run_script('cms==1.4rc1', 'cmsLogService')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/EGG-INFO/scripts/cmsLogService", line 53, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/EGG-INFO/scripts/cmsLogService", line 47, in main
success = default_argument_parser("Logger for CMS.", LogService).run()
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/util.py", line 231, in default_argument_parser
return cls(args.shard)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/service/LogService.py", line 55, in init
Service.init(self, shard)
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/io/service.py", line 99, in init
self.initialize_logging()
File "/usr/local/lib/python3.6/dist-packages/cms-1.4rc1-py3.6.egg/cms/io/service.py", line 137, in initialize_logging
mode='w', encoding='utf-8')
File "/usr/lib/python3.6/logging/init.py", line 1032, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.6/logging/init.py", line 1061, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/var/local/log/cms/LogService-0/2019-10-17-11-30-40.log'
Stefano Maggiolo
@stefano-maggiolo
most likely you missed some steps in the installation
prerequisite script in particular