Traceback (most recent call last):
File "/home/du/.local/bin/pdm", line 8, in <module>
sys.exit(main())
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 295, in main
return Core().main(args or sys.argv[1:])
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 208, in main
raise cast(Exception, err).with_traceback(traceback) from None
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 203, in main
self.handle(project, options)
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 157, in handle
command.handle(project, options)
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm_plugin_torch/main.py", line 405, in handle
results[api] = do_lock(
File "/data/home/du/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm_plugin_torch/main.py", line 183, in do_lock
data = format_lockfile(project, mapping, dependencies)
TypeError: format_lockfile() missing 2 required positional arguments: 'groups' and 'strategy'
It look like the internal API of PDM changed.
pyproject.toml is as follows