{"action":"created","issue":{"url":"https://api.github.com/repos/numenta/nupic/issues/2732","repository_url":"https://api.github.com/repos/numenta/nupic","labels_url":"https://api.github.com/repos/numenta/nupic/issues/2732/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/2732/comments","events_url":"https://api.github.com/repos/numenta/nupic/issues/2732/events","html_url":"https://github.com/numenta/nupic/issues/2732","id":115064223,"node_id":"MDU6SXNzdWUxMTUwNjQyMjM=","number":2732,"title":"Can't run the OHG tutorial.","user":{"login":"alsmith","id":6310490,"node_id":"MDQ6VXNlcjYzMTA0OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6310490?v=4","gravatar_id":"","url":"https://api.github.com/users/alsmith","html_url":"https://github.com/alsmith","followers_url":"https://api.github.com/users/alsmith/followers","following_url":"https://api.github.com/users/alsmith/following{/other_user}","gists_url":"https://api.github.com/users/alsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/alsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alsmith/subscriptions","organizations_url":"https://api.github.com/users/alsmith/orgs","repos_url":"https://api.github.com/users/alsmith/repos","events_url":"https://api.github.com/users/alsmith/events{/privacy}","received_events_url":"https://api.github.com/users/alsmith/received_events","type":"User","site_admin":false},"labels":[{"id":34780065,"node_id":"MDU6TGFiZWwzNDc4MDA2NQ==","url":"https://api.github.com/repos/numenta/nupic/labels/question","name":"question","color":"cc317c","default":true},{"id":69248362,"node_id":"MDU6TGFiZWw2OTI0ODM2Mg==","url":"https://api.github.com/repos/numenta/nupic/labels/type:examples","name":"type:examples","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":{"login":"rhyolight","id":15566,"node_id":"MDQ6VXNlcjE1NTY2","avatar_url":"https://avatars3.githubusercontent.com/u/15566?v=4","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"assignees":[{"login":"rhyolight","id":15566,"node_id":"MDQ6VXNlcjE1NTY2","avatar_url":"https://avatars3.githubusercontent.com/u/15566?v=4","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2015-11-04T14:30:14Z","updated_at":"2018-10-18T06:00:23Z","closed_at":"2017-08-19T15:52:34Z","author_association":"NONE","body":"Try as I might, I haven't been able to even get the hot gym tutorial going, and I'm out of ideas with how to fix it as the error message that comes back is not particularly informative... any clues would be much apprecated!\n\nSteps to repro:\n\n```\n% git clone https://github.com/numenta/nupic.git\n% cd nupic/examples/opf/clients/hotgym/prediction/one_gym\n% ./swarm.py\n./swarm.py\nThis script runs a swarm on the input data (rec-center-hourly.csv) and\ncreates a model parameters file in the `model_params` directory containing\nthe best model found by the swarm. Dumps a bunch of crud to stdout because\nthat is just what swarming does at this point. You really don't need to\npay any attention to it.\n\n=================================================\n= Swarming on rec-center-hourly data...\n= Medium swarm. Sit back and relax, this could take awhile.\n=================================================\nGenerating experiment files in directory: /u/ajs/nupic/examples/opf/clients/hotgym/prediction/one_gym/swarm...\nWriting  313 lines...\nWriting  114 lines...\ndone.\nNone\nSuccessfully submitted new HyperSearch job, jobID=1014\nEvaluated 0 models\nHyperSearch finished!\nWorker completion message: None\n\nResults from all experiments:\n----------------------------------------------------------------\nGenerating experiment files in directory: /tmp/tmpUWNeZJ...\nWriting  313 lines...\nWriting  114 lines...\ndone.\nNone\njson.loads(jobInfo.results) raised an exception.  Here is some info to help with debugging:\njobInfo:  _jobInfoNamedTuple(jobId=1014, client=u'GRP', clientInfo=u'', clientKey=u'', cmdLine=u'$HYPERSEARCH', params=u'{\"hsVersion\": \"v2\", \"maxModels\": null, \"persistentJobGUID\": \"40036c4a-8300-11e5-bddb-e8de27a798c5\", \"useTerminators\": false, \"description\": {\"includedFields\": [{\"fieldName\": \"timestamp\", \"fieldType\": \"datetime\"}, {\"maxValue\": 53.0, \"fieldName\": \"kw_energy_consumption\", \"fieldType\": \"float\", \"minValue\": 0.0}], \"streamDef\": {\"info\": \"kw_energy_consumption\", \"version\": 1, \"streams\": [{\"info\": \"Rec Center\", \"source\": \"file://rec-center-hourly.csv\", \"columns\": [\"*\"]}]}, \"inferenceType\": \"TemporalMultiStep\", \"inferenceArgs\": {\"predictionSteps\": [1], \"predictedField\": \"kw_energy_consumption\"}, \"iterationCount\": -1, \"swarmSize\": \"medium\"}}', jobHash=\"@\\x03tV\\x83\\x00\\x11\\xe5\\xbd\\xdb\\xe8\\xde'\\xa7\\x98\\xc5\", 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(2015, 11, 4, 14, 28), engCjmConnId=None, engWorkerState=None, engStatus=None, engModelMilestones=None)\njobInfo.results:  None\nEXCEPTION:  expected string or buffer\nTraceback (most recent call last):\n  File \"./swarm.py\", line 109, in <module>\n    swarm(INPUT_FILE)\n  File \"./swarm.py\", line 101, in swarm\n    modelParams = swarmForBestModelParams(SWARM_DESCRIPTION, name)\n  File \"./swarm.py\", line 78, in swarmForBestModelParams\n    verbosity=0\n  File \"/usr/lib/python2.7/site-packages/nupic-0.3.5-py2.7.egg/nupic/swarming/permutations_runner.py\", line 277, in runWithConfig\n    return _runAction(runOptions)\n  File \"/usr/lib/python2.7/site-packages/nupic-0.3.5-py2.7.egg/nupic/swarming/permutations_runner.py\", line 218, in _runAction\n    returnValue = _runHyperSearch(runOptions)\n  File \"/usr/lib/python2.7/site-packages/nupic-0.3.5-py2.7.egg/nupic/swarming/permutations_runner.py\", line 161, in _runHyperSearch\n    metricsKeys=search.getDiscoveredMetricsKeys())\n  File \"/usr/lib/python2.7/site-packages/nupic-0.3.5-py2.7.egg/nupic/swarming/permutations_runner.py\", line 826, in generateReport\n    results = json.loads(jobInfo.results)\n  File \"/usr/lib/python2.7/site-packages/nupic-0.3.5-py2.7.egg/nupic/swarming/object_json.py\", line 163, in loads\n    json.loads(s, object_hook=objectDecoderHook, **kwargs))\n  File \"/usr/lib/python2.7/json/__init__.py\", line 351, in loads\n    return cls(encoding=encoding, **kw).decode(s)\n  File \"/usr/lib/python2.7/json/decoder.py\", line 366, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\nTypeError: expected string or buffer\n% \n```\n\nThe database connection works out fine...\n\n```\n% python $HOME/nupic/examples/swarm/test_db.py\n\nThis script will validate that your MySQL is setup correctly for NuPIC.\nMySQL is required for NuPIC swarming. The settings are defined in a\nconfiguration file found in $NUPIC/src/nupic/support/nupic-default.xml\nOut of the box those settings contain MySQL's default access\ncredentials.\n\nThe nupic-default.xml can be duplicated to define user specific changes,\ncalling the copied file $NUPIC/src/nupic/support/nupic-site.xml\nRefer to the nupic-default.xml for additional instructions.\n\nDefaults: localhost, 3306, root, no password\n\nRetrieved the following settings from NuPIC configuration:\n    host   :     localhost\n    port   :     3306\n    user   :     nupic\n    passwd :     <not saying>\n\nConnection successful!!\n% \n```\n"},"comment":{"url":"https://api.github.com/repos/numenta/nupic/issues/comments/430885090","html_url":"https://github.com/numenta/nupic/issues/2732#issuecomment-430885090","issue_url":"https://api.github.com/repos/numenta/nupic/issues/2732","id":430885090,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDg4NTA5MA==","user":{"login":"Richardn2002","id":8529852,"node_id":"MDQ6VXNlcjg1Mjk4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8529852?v=4","gravatar_id":"","url":"https://api.github.com/users/Richardn2002","html_url":"https://github.com/Richardn2002","followers_url":"https://api.github.com/users/Richardn2002/followers","following_url":"https://api.github.com/users/Richardn2002/following{/other_user}","gists_url":"https://api.github.com/users/Richardn2002/gists{/gist_id}","starred_url":"https://api.github.com/users/Richardn2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Richardn2002/subscriptions","organizations_url":"https://api.github.com/users/Richardn2002/orgs","repos_url":"https://api.github.com/users/Richardn2002/repos","events_url":"https://api.github.com/users/Richardn2002/events{/privacy}","received_events_url":"https://api.github.com/users/Richardn2002/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T06:00:23Z","updated_at":"2018-10-18T06:00:23Z","author_association":"NONE","body":"I once encountered the problem and solved it by the solution above ,but recently i encountered it again and the solution didn't work.\r\nAfter 2 days I find that deleting the 'capnp' folder from site-packages works. Write a note here for others to see :)"}}
{"actor":{"display_login":"Richardn2002"}}