AnomalyDetection :- No model named model_factory

Hi,

I am not able to run example hot gym program. I am getting “ImportError: No module named model_factory”

from nupic.frameworks.opf.model_factory import ModelFactory

My NuPIC version is:-

nupic 0.5.7
nupic.bindings 0.4.13

Regards,
Rajesh

Hi,

I have upgraded to 0.6.0. This version also the same issue.

nupic 0.6.0
nupic.bindings 0.6.0

from nupic.frameworks.opf.model_factory import ModelFactory
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named model_factory

Regards,
Rajesh

Hello @Madabhattula_Rajesh welcome to the forums.

See breaking changes in 0.7.0.dev0 (specifically this one) and how to fix.

Hi,

What is the equalivant of the following in nupic 1.0.6.dev0 with nupic.bindings 1.0.6

from nupic.frameworks.opf.modelfactory import ModelFactory

I get the following error when I try to run htmengine

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/afang/.local/lib/python2.7/site-packages/htmengine/model_swapper/model_runner.py", line 41, in <module>
    from nupic.frameworks.opf.modelfactory import ModelFactory
ImportError: No module named modelfactory

Thanks
scaviator

1 Like

Found the issue. Needed to replace modelfactory with model_factory. It’s working now.

1 Like