Failed to load entrypoint 'android = tutorandroid.plugin'

Hello!

I am using the latest tutor (12.1.3). With it, I have successfully updated from the previous version.
But after installing android plugin (pip install tutor-android) tutor doesn’t work.

I’ve already made sure that I don’t have any other binary other than ~ / .local / bin / tutor

 Installing collected packages: tutor-android
 Successfully installed tutor-android-12.0.0
 ubuntu@edx:~$ tutor
 Failed to load entrypoint 'android = tutorandroid.plugin' from distribution tutor-android 12.0.0
 Traceback (most recent call last):
   File "/home/ubuntu/.local/bin/tutor", line 8, in <module>
     sys.exit(main())
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/commands/cli.py", line 29, in main
     add_plugin_commands(cli)
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/commands/plugins.py", line 141, in add_plugin_commands
     for plugin in plugins.iter_installed():
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/plugins.py", line 401, in iter_installed
     yield from Plugins.iter_installed()
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/plugins.py", line 362, in iter_installed
     for plugin in PluginClass.iter_installed():
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/plugins.py", line 199, in iter_installed
     for plugin in cls.iter_load():
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/plugins.py", line 233, in iter_load
     yield cls(entrypoint)
   File "/home/ubuntu/.local/lib/python3.8/site-packages/tutor/plugins.py", line 220, in __init__
     super().__init__(entrypoint.name, entrypoint.load())
   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2444, in load
     self.require(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2467, in require
     items = working_set.resolve(reqs, env, installer, extras=self.extras)
   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 792, in resolve
     raise VersionConflict(dist, req).with_context(dependent_req)
 pkg_resources.ContextualVersionConflict: (PyYAML 5.3.1 (/usr/lib/python3/dist-packages), Requirement.parse('pyyaml>=5.4.1'), {'kubernetes'})
> ubuntu@edx:~$

By the way, I am confused that tutor-openedx also appeared in the list of packages after installing tutor-android:

ubuntu@edx:~$ pip list
.......
tutor                  12.1.3
tutor-android          12.0.0
tutor-openedx          12.1.3
........

I changed the installation method to the recommended one. This solved my problem.

For the record, you should be able to pip-install tutor by first upgrading Pyyaml:

pip install --user --upgrade pyyaml

I don’t know exactly why tutor-openedx is installed in your environment. It is no longer a dependency of tutor-android since v12.0.0. You are free to uninstall it.