Error when importing ROOT in python3

This looks like the same problem as in PyROOT at LXplus, which has been fixed already. Please file a bug with MacPorts for it. It’s most likely a problem related to the fact that libraries and their respective dictionaries must be in the same directory (a new requirement since ROOT 6.18).