Help with a basic python error

thanks @learner is very helpful , but what version of nupic do you use ? because i have a problem of modules , maybe my version of nupic can’t read some under moduls