I am facing a problem when I try to enable or install plugins.
I’m installed open edX locally using tutor on a Windows 10 machine using a virtual environment.
I tried to enable the forum plugin but I get the following error:
(tutor_env) PS C:\Users\crts06\tutor_env> tutor plugins enable forum
Error applying action: func=<function discover_package..load at 0x00000224B3A08EA0> contexts=[‘plugins’]’
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in run_code
File "C:\Users\crts06\tutor_env\Scripts\tutor.exe_main.py", line 7, in
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\commands\cli.py”, line 27, in main
cli() # pylint: disable=no-value-for-parameter
^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\core.py”, line 783, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\click\decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\commands\plugins.py”, line 141, in enable
plugins.load(plugin)
File "C:\Users\crts06\tutor_env\Lib\site-packages\tutor\plugins_init.py", line 80, in load
hooks.Actions.PLUGIN_LOADED.do(name)
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\core\hooks\actions.py”, line 116, in do
self.do_from_context(None, *args, **kwargs)
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\core\hooks\actions.py”, line 135, in do_from_context
callback.do(
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\core\hooks\actions.py”, line 36, in do
self.func(*args, **kwargs)
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutor\plugins\v1.py”, line 78, in load
importlib.import_module(entrypoint.value)
File "C:\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 995, in exec_module
File “”, line 488, in _call_with_frames_removed
File “C:\Users\crts06\tutor_env\Lib\site-packages\tutorforum\plugin.py”, line 8, in
import pkg_resources
ModuleNotFoundError: No module named ‘pkg_resources’
The plugins are showing to be installed when I try to list them but not enabled.
and trying to install the plugin also gives the following error:
(tutor_env) PS C:\Users\crts06\tutor_env> tutor plugins install forum
Installing pip requirements:
forum
tutor-forum>=17.0.0,<18.0.0
pip install --requirement ‘C:\Users\crts06\AppData\Local\Temp\tutor-reqs-_tni_988.txt’
ERROR: Could not open requirements file: [Errno 13] Permission denied: ‘C:\Users\crts06\AppData\Local\Temp\tutor-reqs-_tni_988.txt’
Error: Command failed with status 1: pip install --requirement C:\Users\crts06\AppData\Local\Temp\tutor-reqs-_tni_988.txt