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.

Home Page:http://numenta.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to install nupic on ubuntu 18.04,experiencing mysql client error

xalekx opened this issue · comments

Following the steps shown in the following link https://discourse.numenta.org/t/installing-nupic-on-ubuntu-12/2159 I have installed nupic.
However, when i try to run the hot_gym example run.py with python run.py i the following error.

This script runs a swarm on the input data (rec-center-hourly.csv) and creates a model parameters file in the `model_params` directory containing the best model found by the swarm. Dumps a bunch of crud to stdout because that is just what swarming does at this point. You really don't need to pay any attention to it. ================================================= = Swarming on rec-center-hourly data... = Medium swarm. Sit back and relax, this could take awhile. ================================================= Generating experiment files in directory: /home/aleksandar/work/Numenta/nupic/examples/opf/clients/hotgym/prediction/one_gym/swarm... Writing 314 lines... Writing 114 lines... done. None WARNING:nupic.database.client_jobs_dao:[] First failure in <function connect at 0x7fb54e53d848>; initial retry in 0.1 sec.; timeoutSec=300. Caller stack: File "swarm.py", line 111, in <module> swarm(INPUT_FILE) File "swarm.py", line 103, in swarm modelParams = swarmForBestModelParams(SWARM_DESCRIPTION, name) File "swarm.py", line 80, in swarmForBestModelParams verbosity=0 File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/swarming/permutations_runner.py", line 271, in runWithConfig return _runAction(runOptions) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/swarming/permutations_runner.py", line 212, in _runAction returnValue = _runHyperSearch(runOptions) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/swarming/permutations_runner.py", line 141, in _runHyperSearch search = _HyperSearchRunner(runOptions) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/swarming/permutations_runner.py", line 412, in __init__ self.__cjDAO = _clientJobsDB() File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/swarming/permutations_runner.py", line 376, in _clientJobsDB return cjdao.ClientJobsDAO.get() File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/support/decorators.py", line 56, in exceptionLoggingWrap return func(*args, **kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/database/client_jobs_dao.py", line 548, in get cjDAO.connect() File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/support/decorators.py", line 56, in exceptionLoggingWrap return func(*args, **kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/support/decorators.py", line 234, in retryWrap timeoutSec, ''.join(traceback.format_stack()), exc_info=True) Traceback (most recent call last): File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/support/decorators.py", line 208, in retryWrap result = func(*args, **kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/database/client_jobs_dao.py", line 633, in connect with ConnectionFactory.get() as conn: File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/database/connection.py", line 167, in get return cls._connectionPolicy.acquireConnection() File "/home/aleksandar/.local/lib/python2.7/site-packages/nupic/database/connection.py", line 553, in acquireConnection dbConn = self._pool.connection(shareable=False) File "/home/aleksandar/.local/lib/python2.7/site-packages/DBUtils/PooledDB.py", line 331, in connection con = self.steady_connection() File "/home/aleksandar/.local/lib/python2.7/site-packages/DBUtils/PooledDB.py", line 279, in steady_connection *self._args, **self._kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/DBUtils/SteadyDB.py", line 134, in connect failures, ping, closeable, *args, **kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/DBUtils/SteadyDB.py", line 186, in __init__ self._store(self._create()) File "/home/aleksandar/.local/lib/python2.7/site-packages/DBUtils/SteadyDB.py", line 190, in _create con = self._creator(*self._args, **self._kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/pymysql/__init__.py", line 88, in Connect return Connection(*args, **kwargs) File "/home/aleksandar/.local/lib/python2.7/site-packages/pymysql/connections.py", line 626, in __init__ self._connect() File "/home/aleksandar/.local/lib/python2.7/site-packages/pymysql/connections.py", line 818, in _connect 2003, "Can't connect to MySQL server on %r (%s)" % (self.host, e)) OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ((1251, u'Client does not support authentication protocol requested by server; consider upgrading MySQL client'))")

I have opened the repo after cloning it and set the src/nupic/support/nupic-default username and password to the ones i wish to use.
I exposed env varaible NUPIC and NTA_CONF_PATH from the location of the git nupic master folder.