Import Error : cannot Import name SpatialPooler

@rhyolight tnxs, but I have a error in the under module of nupic , first the error was Import Error : cannot Import name research.SpatialPooler then in install a package research in nupic but now th error is
Import Error : cannot Import name SpatialPooler
and have this problem in many moduls

1 Like

Check your code version with regards to WARNING: 0.7.0 breaking changes.

@way-sal I had the same issue. This may not be the “correct” fix however I’ve fixed this issue by updating the imports to,

-    "from nupic.research.spatial_pooler import SpatialPooler",
+   "from nupic.algorithms.spatial_pooler import SpatialPooler",

Generally, I just grep’d the classes on error and find and use the correct module/package where they were located.

2 Likes

@Jose_Cueto yes i fixed the issues because the version of nupic is not the same ,there is some update of moduls , this the link WARNING: 0.7.0 breaking changes

1 Like