Looks like the problem at this point is that you have installed NuPIC at 0.5.7 from Pypi, but you have the codebase checked out that is tip of master. Follow these instructions to sync you code checkout with the installation version before running any example code or tests.