As far as I am concerned, pamlX is not maintained anymore, and this issue might be related to package incompatibilities in new operating systems. Running all PAML programs from the terminal is the best way to ensure best performance :)
In addition, you can follow our latest protocol,
Beginner's Guide on the Use of PAML to Detect Positive Selection, which hopefully will help you understand how to run CODEML from the terminal under various models implemented in the program. Note that you can
clone our GitHub repository `positive-selection` to reproduce all the analyses we go through in the protocol -- we even include a section explaining how we parsed the raw data!