Looks like a regression in setuptools-rust 0.12, and it's been fixed, but the fix hasn't been released yet (as of 0.12.1).
For the moment, I'm not sure if there's anything that can be done other than downgrading to setuptools-rust 0.11 (see https://archive.archlinux.org/packages/p/python-setuptools-rust/ if you don't still have the old version cached).
Pinned Comments
bmwinger commented on 2025-07-12 01:43 (UTC)
If you get a module not found error for portmod or any of its dependencies after the python version has updated, you need to re-install those packages (portmod depends on a few python packages that are rarely updated). See https://wiki.archlinux.org/title/Python#Module_not_found_after_Python_version_update