So I just installed NuPIC following the instructions from Matt’s February ‘Installing NuPIC on Ubuntu’ video. As I result I had 879 tests passed, 2 failed and 24 skipped. I wanted to show the errors I got to find out: 1) do they mean the software won’t work or not in certain circumstances; and if so 2) what can I do to fix them? As I said I did everything instructed in the video. Thanks!!
Error 1
-------------------------------- Captured stdout ---------------------------------
ERR: Matching Python module for TPRegion not found. [/home/travis/build/numenta/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 431]
-------------------------------- Captured stderr ---------------------------------
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(py.test:2192): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Error 2
-------------------------------- Captured stdout ---------------------------------
ERR: Matching Python module for TPRegion not found. [/home/travis/build/numenta/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 431]
-------------------------------- Captured stderr ---------------------------------
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(py.test:2243): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Please run the command you used to run the tests again. Paste it, and the entire contents of the console output into gist or pastebin for analysis. Thanks.
It will take me some time to get to this. I’m bookmarking it. In the meantime, maybe someone else can help out? The confusing part of the error is right here:
You may have a matplotlib problem or even an nvidia problem? But I did not know our unit tests depended upon matplotlib. Any insight would be valuable. Someone could create a new issue about these errors.
ERR: Matching Python module for TPRegion not found. [/root/bamboo-agent-home/xml-data/build-dir/NUP-CORE-NCRM/src/nupic/engine/RegionImplFactory.cpp line 444]
Traceback (most recent call last):
File "network.py", line 52, in <module>
network.addRegion("TM", "py.TPRegion", json.dumps(tmParams))
File "/home/mark/Projects/NuPIC/venv/local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 639, in addRegion
engine_internal.Network.addRegion(self, name, nodeType, nodeParams)
File "/home/mark/Projects/NuPIC/venv/local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1167, in addRegion
return _engine_internal.Network_addRegion(self, *args, **kwargs)
RuntimeError: Matching Python module for TPRegion not found.
You might have the wrong version of nupic.bindings installed. Can you please run the instructions I linked in the last message and show me your stdout?
I just installed nupic 1.0.3 / nupic.bindings 1.0.0 (via pip install nupic==1.0.3 --user and ran the complete network example here and had no problems:
Oh wow, you’re right! I updated the main example program to run (because we run it in our test suite), but I did not update the code snippets. Those don’t get run in tests. I will have a fix in a PR soon. Thanks for reporting!