finaly i found another postgres module that works when converted to .exe : pg8000 for the moment everything works in .exe as in .py.