ptolemais hermiou was established on the west bank of the nile at the site of the egyptian village of psoï ( in the thinis nome by the ptolemaic ruler ptolemy i soter sometime after 312 bce to be the capital of upper egypt.