numenta / NAB

The Numenta Anomaly Benchmark
GNU Affero General Public License v3.0
1.93k stars 868 forks source link

Cannot run numenta detector in python 2 #346

Open breznak opened 5 years ago

breznak commented 5 years ago

according to Readme in branch #341

I needed a few changes to get nupic (numenta detector) install at all.

Then it seems to be running, but does not at all?

Finished processing dependencies for nab==1.0 (env2) mmm@mmm-U2442:/mnt/store/devel/HTM/NAB$ python nab/detectors/numenta/run.py -d numenta --detect {'dataDir': 'data', 'detectors': [], 'numCPUs': None, 'profilesFile': 'config/profiles.json', 'resultsDir': 'results', 'skipConfirmation': False, 'windowsFile': 'labels/combined_windows.json'} Proceed? (y/n): y Running detection step (env2) mmm@mmm-U2442:/mnt/store/devel/HTM/NAB$ echo $? 0

Notice the detectors field is empty?

breznak commented 5 years ago

See https://github.com/iandanforth/NAB/pull/8 but it does not fix the issue, just makes me able to install nupic.

iandanforth commented 5 years ago

Fascinating bug. See https://bugs.python.org/issue10981.

The easiest way to fix this is to simply re-add --detect as a no-op argument which will disambiguate it from --detectors and let others who may be used to typing it by habit suffer no ill effects.

breznak commented 5 years ago

Tips had how did you figure this! :) Bugs never cease to amaze us. Thanks for providing a fix