The code uses the imp module, which was deprecated and turned into importlib in Python 3.12. To use pynt, we must use Python 3.11 (or a version below).
Workaround: with the package manager uv, we can specify which Python version to use. Thus, install pynt like this:
uv tool install pynt --python=3.11
Now pynt will work fine.
The code uses the
impmodule, which was deprecated and turned intoimportlibin Python 3.12. To use pynt, we must use Python 3.11 (or a version below).Workaround: with the package manager uv, we can specify which Python version to use. Thus, install pynt like this:
Now
pyntwill work fine.