Describe the bug
If you try to run otter commands from python 3.12 venv, you'll get a "ModuleNotFoundError: No module named 'pkg_resources'". pkg_resources is part of setuptools which used to be included in new venv virtual environments prior to python 3.12, but it was removed in 3.12. The easy fix is update the installation instructions to pip install setuptools in a new venv before you pip install otter-grader.
Describe the bug If you try to run otter commands from python 3.12 venv, you'll get a "ModuleNotFoundError: No module named 'pkg_resources'".
pkg_resources
is part ofsetuptools
which used to be included in new venv virtual environments prior to python 3.12, but it was removed in 3.12. The easy fix is update the installation instructions topip install setuptools
in a new venv before youpip install otter-grader
.To Reproduce
Then download the tutorial, move into tutorial directory and try to run
otter assign demo.ipynb dist
.Expected behavior Installation instructions are complete and otter commands run on tutorial without error.
Versions Please provide your Python and Otter versions. The Otter can be obtained using
from otter import __version__
python 3.12.4 otter 5.5.0Additional context Add any other context about the problem here.