I am getting this stack trace when I start pyramid pserve:
% python $(which pserve) ../etc/development.ini Traceback
I've had this problem too, I had just forgotten to type workon myproject in the terminal before executing my program.