Rigify generate error
It appears that your meta rig does not have a bone named hips, which the script expects. 

check that you haven't renamed any bones in your metarig. If you do, you will have to revert the corresponding bones back to their original names. You may want to create a new metarig to compare to in order to do this.