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

Grade.py configuration not working #33

Open
nickjm opened this issue Jun 1, 2018 · 1 comment
Open

Grade.py configuration not working #33

nickjm opened this issue Jun 1, 2018 · 1 comment

Comments

@nickjm
Copy link

nickjm commented Jun 1, 2018

https://github.com/edx/xqueue-watcher/blob/2a17af2bd66ee0f4ffae3147585118ac3cb868d7/conf.d/600.json#L11

Hi, I'm working on a course where we've created a custom grade.py file which we'd like to use. Unfortunately we tried adding the gradepy kwarg, however the xqwatcher service failed to start with the following error:

2018-05-29 17:59:26,213 - manager.py:128 -- enable_codejail [INFO]: configured codejail -> mit-686x /edx/app/xqwatcher/venvs/mit-686x/bin/python mit-686x
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/edx/app/xqwatcher/src/xqueue_watcher/__main__.py", line 4, in <module>
    sys.exit(main())
  File "xqueue_watcher/manager.py", line 187, in main
    manager.configure_from_directory(args.config_root)
  File "xqueue_watcher/manager.py", line 102, in configure_from_directory
    self.configure(json.load(queue_config))
  File "xqueue_watcher/manager.py", line 77, in configure
    watcher = self.client_from_config(queue_name, config)
  File "xqueue_watcher/manager.py", line 67, in client_from_config
    handler = handler(**kw)
  File "xqueue_watcher/jailedgrader.py", line 67, in __init__
    super(JailedGrader, self).__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'gradepy'

Is there a new way to specify where the grade.py file is ?

@Yashwanth-2022
Copy link

Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/tutor/xqueue-watcher/xqueue_watcher/main.py", line 4, in
sys.exit(main())
File "/home/tutor/xqueue-watcher/xqueue_watcher/manager.py", line 183, in main
manager.configure_from_directory(args.config_root)
File "/home/tutor/xqueue-watcher/xqueue_watcher/manager.py", line 99, in configure_from_directory
self.configure(json.load(queue_config))
File "/home/tutor/xqueue-watcher/xqueue_watcher/manager.py", line 74, in configure
watcher = self.client_from_config(queue_name, config)
File "/home/tutor/xqueue-watcher/xqueue_watcher/manager.py", line 64, in client_from_config
handler = handler(**kw)
TypeError: Grader.init() got an unexpected keyword argument 'gradepy'
I'm stuck with similar issue as yours. How did you resolve this issue ? Give me some insights on how to configure xqueue-watcher.

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

No branches or pull requests

2 participants