Found the problem!
Removing the begin....rescue -> end statement in offset.rb and trying again led me to line 61,
61: vecs << vec
It said that vec did not exist, and I noticed the cde before it was checking if vec3 was valid. I changed it to
61: vecs << vec3
and it worked!
Note: This is for the Failed to create offset error. Other errors may not be related to this