The specs command uses the sys module, but this import was missing.