Error trying to enable xqueue plugin

I recently upgraded to 3.6.1 and am now trying to enable the xqueue plugin. After running the following commands successfully:

$ tutor plugins enable xqueue
Plugin xqueue enabled
Configuration saved to /home/todd/.local/share/tutor/config.yml
You should now re-generate your environment with `tutor config save`.

$ tutor config save
Configuration saved to /home/todd/.local/share/tutor/config.yml
Environment generated in /home/todd/.local/share/tutor/env

Running: $ tutor local quickstart

results in:

Plugin xqueue: running init for service mysql-client...
Error loading template xqueue/hooks/mysql-client/init
Traceback (most recent call last):
  File "/home/todd/.local/bin/tutor", line 11, in <module>
    load_entry_point('tutor-openedx', 'console_scripts', 'tutor')()
  File "/home/todd/code/tutor/tutor/commands/cli.py", line 23, in main
    cli()
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/todd/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/todd/code/tutor/tutor/commands/local.py", line 39, in quickstart
    init.callback(root)
  File "/home/todd/code/tutor/tutor/commands/local.py", line 171, in init
    scripts.initialise(runner)
  File "/home/todd/code/tutor/tutor/scripts.py", line 57, in initialise
    runner.run(service, plugin_name, "hooks", service, "init")
  File "/home/todd/code/tutor/tutor/scripts.py", line 13, in run
    command = self.render(*path)
  File "/home/todd/code/tutor/tutor/scripts.py", line 17, in render
    return env.render_file(self.config, *path).strip()
  File "/home/todd/code/tutor/tutor/env.py", line 159, in render_file
    return Renderer.render_file(config, os.path.join(*path))
  File "/home/todd/code/tutor/tutor/env.py", line 57, in render_file
    template = cls.environment(config).get_template(path)
  File "/home/todd/.local/lib/python3.6/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/home/todd/.local/lib/python3.6/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/home/todd/.local/lib/python3.6/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/home/todd/.local/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: xqueue/hooks/mysql-client/init

Any help would be greatly appreciated!

Hi @ToddLichty! Thanks for raising this issue. This was due to an incorrect packaging of the tutor-xqueue plugin on pypi. Please upgrade to the latest version (0.1.1) by running pip install -U tutor-xqueue. Then run tutor local quickstart again.

@regis This fixed the issue. Thanks for the fast turnaround on the fix!

1 Like

Hi @progtlk!

  • Please don’t post new problems in older topics. Instead, create your very own topic.
  • Don’t post images without asking a question.
  • Don’t post screenshots – instead, copy-paste the complete error trace.

sorry about that, let me process correctly