I have been unable to reproduce this. It almost looks like the UnitsContainer.__init__() is never being called. Can you provide more information about your environment?
In particular, what python packages do you have installed?
How are you installing Pyomo? git, source, pypi, etc?
Summary
Version: 6.7.2 Python-3.9 FreeBSD 14.0