numenta / nupic-legacy

Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
http://numenta.org/
GNU Affero General Public License v3.0
6.34k stars 1.56k forks source link

Same OLD JSON issue with Windows 7 #3768

Closed anuragupadhyaya closed 7 years ago

anuragupadhyaya commented 7 years ago
Results from all experiments:
----------------------------------------------------------------
Generating experiment files in directory: c:\users\uanurag\appdata\local\temp\tmpomtwql...
Writing  314 lines...
Writing  114 lines...
done.
None
json.loads(jobInfo.results) raised an exception.  Here is some info to help with debugging:
jobInfo:  _jobInfoNamedTuple(jobId=1012, client=u'GRP', clientInfo=u'', clientKey=u'', cmdLine=u'$HYPERSEARCH', params=u'{"hsVersion": "v2", "maxModels": null, "persistentJobGUID": "52516d0f-87c3-11e7-a8ec-89e41f37a5e2", "useTerminators": false, "description": {"inferenceArgs": {"predictionSteps": [1], "predictedField": "temperature_1"}, "iterationCount": 10000, "swarmSize": "small", "includedFields": [{"fieldName": "timestamp", "fieldType": "datetime"}, {"minValue": 0.0, "fieldName": "temperature_1", "fieldType": "float", "maxValue": 73.0}], "streamDef": {"info": "temperature_1", "version": 1, "streams": [{"info": "SensorOne", "source": "file://C://Users//uanurag//Desktop//Jupyter Workspace//Edge Heater//Sensor_22.csv", "columns": ["*"]}]}, "inferenceType": "TemporalMultiStep"}}', jobHash='RQm\x10\x87\xc3\x11\xe7\x81\x99\x89\xe4\x1f7\xa5\xe2', status=u'notStarted', completionReason=None, completionMsg=None, workerCompletionReason=u'success', workerCompletionMsg=None, cancel=0, startTime=None, endTime=None, results=None, engJobType=u'hypersearch', minimumWorkers=1, maximumWorkers=4, priority=0, engAllocateNewWorkers=1, engUntendedDeadWorkers=0, numFailedWorkers=0, lastFailedWorkerErrorMsg=None, engCleaningStatus=u'notdone', genBaseDescription=None, genPermutations=None, engLastUpdateTime=datetime.datetime(2017, 8, 23, 5, 24, 22), engCjmConnId=None, engWorkerState=None, engStatus=None, engModelMilestones=None)
jobInfo.results:  None
EXCEPTION:  expected string or buffer
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-1fb4c7be5e7d> in <module>()
     30     "predictedField": "temperature_1"},
     31   "iterationCount": 10000,
---> 32   "swarmSize": "small" }, {'maxWorkers': 4, 'overwrite': True})
     33 model = ModelFactory.create(model_params)

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\site-packages\nupic\swarming\permutations_runner.py in runWithConfig(swarmConfig, options, outDir, outputLabel, permWorkDir, verbosity)
    269   _validateOptions(runOptions)
    270 
--> 271   return _runAction(runOptions)
    272 
    273 

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\site-packages\nupic\swarming\permutations_runner.py in _runAction(runOptions)
    210   # Run HyperSearch
    211   elif action in ("run", "dryRun", "pickup"):
--> 212     returnValue = _runHyperSearch(runOptions)
    213   else:
    214     raise Exception("Unhandled action: %s" % action)

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\site-packages\nupic\swarming\permutations_runner.py in _runHyperSearch(runOptions)
    153     replaceReport=runOptions["replaceReport"],
    154     hyperSearchJob=search.peekSearchJob(),
--> 155     metricsKeys=search.getDiscoveredMetricsKeys())
    156   secs = time.time() - startTime
    157   hours = int(secs) / (60 * 60)

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\site-packages\nupic\swarming\permutations_runner.py in generateReport(cls, options, replaceReport, hyperSearchJob, metricsKeys)
    820 
    821     try:
--> 822       results = json.loads(jobInfo.results)
    823     except Exception, e:
    824       print "json.loads(jobInfo.results) raised an exception.  " \

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\json\__init__.pyc in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    337             parse_int is None and parse_float is None and
    338             parse_constant is None and object_pairs_hook is None and not kw):
--> 339         return _default_decoder.decode(s)
    340     if cls is None:
    341         cls = JSONDecoder

C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\json\decoder.pyc in decode(self, s, _w)
    362 
    363         """
--> 364         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    365         end = _w(s, end).end()
    366         if end != len(s):

TypeError: expected string or buffer
anuragupadhyaya commented 7 years ago

I have tried setting an environment variable to <C:\Users\uanurag\AppData\Local\Continuum\Anaconda3\envs\Python27\lib\site-packages\nupic> and it didn't help.

rhyolight commented 7 years ago

I'm sorry, but we do not support Anaconda, and we only build in CI on Windows 10. I'm afraid we can't help you out here.

rhyolight commented 7 years ago

@anuragupadhyaya By the way, this forum post might help you.