Swarm failed after test passed

In trying to run swarm.py (within …/hotgym/prediction/one_gym) I’m getting this error. >

“Can’t connect to MySQL server on %r (%s)” % (self.host, e))
pymysql.err.OperationalError: (2003, ‘Can’t connect to MySQL server on ‘localhost’ ((1045, u"Access denied for user ‘root’@‘localhost’ (using password: NO)"))’)

At first I got the same error from the test_db.py validation script, but I fixed that and got ‘Connection Successful’, by hard coding my password into the file in place of this line:


It seems that this line returns empty (which is the default password), but I did set a password in setting up mysql. Would anyone know where I can change the output of this Configuration.get() line so it returns my actual password instead of empty? Or where I could hard-code around it? Thanks!!

See this file:


Heed the warning:

<!-- Do not modify this file directly.  Instead, copy entries that you -->
<!-- wish to modify from this file into nupic-site.xml and change them -->
<!-- there.  If nupic-site.xml does not already exist, create it.      -->

Alright this certainly helps! So to my understanding I should:

  1. Instead of modifying nupic-default.xml, make a nupic-site.xml file in the same folder

  2. In this new file put only what I want to change from the default file (which is the currently empty MySQL password):


Does this sound like all I should need? Thanks once again :slight_smile:

That’s right, but the XML in nupic-site.xml will probably need to be well-formed.

Do you think that making the nupic-site file from a copy of the other file with the blank password space replaced with my password would be well formed?

It should be. Are you getting an error?