upgrading macports on OSX mountain lion

Like many other I ran into issues after upgrading to mountain lion (OSX 10.8).  The install and upgrade of the OS went smoothly, and the upgrade installed the latest version of xcode. I ran into issues with macports when I ran an upgrade from the terminal.   After the upgrade finished I attempted to upgrade my…